From 4ad3bec1eadd7c6154734c90736bffd49f65b3b6 Mon Sep 17 00:00:00 2001 From: TilCreator Date: Mon, 28 May 2018 20:52:21 +0200 Subject: [PATCH] Add little delay to make sure the client gets the success message --- wifimgr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wifimgr.py b/wifimgr.py index 387866c..be7d63a 100644 --- a/wifimgr.py +++ b/wifimgr.py @@ -214,6 +214,9 @@ def handle_configure(client, request): profiles = {} profiles[ssid] = password write_profiles(profiles) + + time.sleep(5) + return True else: response = """\ @@ -290,4 +293,3 @@ def start(port=80): handle_not_found(client, url) finally: client.close() -