diff --git a/wifimgr.py b/wifimgr.py index 387866c..cef009b 100644 --- a/wifimgr.py +++ b/wifimgr.py @@ -6,6 +6,7 @@ import time ap_ssid = "WifiManager" ap_password = "tayfunulu" ap_authmode = 3 # WPA2 +linkToNextWebinterface = True NETWORK_PROFILES = 'wifi.dat' @@ -202,11 +203,19 @@ def handle_configure(client, request): ESP successfully connected to WiFi network %(ssid)s. - + """ % dict(ssid=ssid) + if linkToNextWebinterface: + response += """\ +

+ To new Interface
+ (You must be connected to the set network to follow this Link) +

+ """ % dict(ip=wlan_sta.ifconfig()[0]) + response += """\

- """ % dict(ssid=ssid) + """ send_response(client, response) try: profiles = read_profiles()