def METHOD_NAME(mode, status, ip):
    global MESSAGE
    print("Network: {}".format(WIFI_CONFIG.SSID))
    status_text = "Connecting..."
    if status is not None:
        if status:
            status_text = "Connection successful!"
        else:
            status_text = "Connection failed!"
    print(status_text)
    print("IP: {}".format(ip))
    MESSAGE = "{}".format(ip)