From 69d9fd36d6c0fdd80ad132578811c7d0eac12a67 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 13 Apr 2020 14:58:24 +0200 Subject: [PATCH 1/3] html for apple to mitigate handling POST failure --- .../enduser_setup/enduser_setup_apple.html | 322 ++++++++++++++++++ 1 file changed, 322 insertions(+) create mode 100644 app/modules/enduser_setup/enduser_setup_apple.html diff --git a/app/modules/enduser_setup/enduser_setup_apple.html b/app/modules/enduser_setup/enduser_setup_apple.html new file mode 100644 index 0000000000..9ecbd17240 --- /dev/null +++ b/app/modules/enduser_setup/enduser_setup_apple.html @@ -0,0 +1,322 @@ + + + + + + WiFi Login + + + + +
+
+
+
+

Connect device to your Wi-Fi

+ + + + + +
+
+

Success!

+
+

Your device has successfully connected to the Wi-Fi network.

You may now close this web page.

+
+
+
+

Trying...

+ +
+
+

Updating Status...

+
+ + + + \ No newline at end of file From 11e3ab49d08fabe92a0a36cef17d7ede926088cd Mon Sep 17 00:00:00 2001 From: Gregor Date: Fri, 17 Apr 2020 20:51:43 +0200 Subject: [PATCH 2/3] Add note about alternate enduser_setup.html --- docs/modules/enduser-setup.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/modules/enduser-setup.md b/docs/modules/enduser-setup.md index 86060d7a73..317ba5b6cd 100644 --- a/docs/modules/enduser-setup.md +++ b/docs/modules/enduser-setup.md @@ -6,6 +6,14 @@ This module provides a simple way of configuring ESP8266 chips without using a serial interface or pre-programming WiFi credentials onto the chip. +!!! attention "ATTENTION apple users" + + Due to bug [#2931](https://github.com/nodemcu/nodemcu-firmware/issues/2931) on most apple devices the configuration currently does not work. + But there is a **workaround**. We supply an alternative html file which uses another method to transfer the login credentials. + With this workaround no additional inputs will be possible and no eus_params.lua will be written. The credentials will be stored in the ESP flash. + + Just copy `enduser_setup_apple.html` from [here](../../app/modules/enduser_setup/enduser_setup_apple.html) to the ESP and rename it to `enduser_setup.html`. + After running [`enduser_setup.start()`](#enduser_setupstart), a wireless network named "SetupGadget_XXXXXX" will starting. This prefix can be overridden in `user_config.h` by defining `ENDUSER_SETUP_AP_SSID`. Connect to that SSID From f91ad0c3ab38c9371ce21d8a9aa9374f12dd824f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Sat, 18 Apr 2020 18:03:26 +0200 Subject: [PATCH 3/3] Rephrashe Apple warning --- docs/modules/enduser-setup.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/modules/enduser-setup.md b/docs/modules/enduser-setup.md index 317ba5b6cd..2450ff6f45 100644 --- a/docs/modules/enduser-setup.md +++ b/docs/modules/enduser-setup.md @@ -6,13 +6,12 @@ This module provides a simple way of configuring ESP8266 chips without using a serial interface or pre-programming WiFi credentials onto the chip. -!!! attention "ATTENTION apple users" +!!! attention "ATTENTION Apple users" - Due to bug [#2931](https://github.com/nodemcu/nodemcu-firmware/issues/2931) on most apple devices the configuration currently does not work. - But there is a **workaround**. We supply an alternative html file which uses another method to transfer the login credentials. - With this workaround no additional inputs will be possible and no eus_params.lua will be written. The credentials will be stored in the ESP flash. + Due to bug [#2931](https://github.com/nodemcu/nodemcu-firmware/issues/2931) the configuration does currently not work for many Safari browsers (iOS & macOS). + As a **workaround** there is alternative HTML file which uses another method to transfer the login credentials. It does not support sending arbitrary additional configuration parameters and likewise no `eus_params.lua` will be written. The WiFi credentials will be stored in the ESP flash. - Just copy `enduser_setup_apple.html` from [here](../../app/modules/enduser_setup/enduser_setup_apple.html) to the ESP and rename it to `enduser_setup.html`. + Just copy [enduser_setup_apple.html](../../app/modules/enduser_setup/enduser_setup_apple.html) to the ESP file system and rename it to `enduser_setup.html`. After running [`enduser_setup.start()`](#enduser_setupstart), a wireless network named "SetupGadget_XXXXXX" will starting. This prefix can be overridden