Open
Description
If user pass invalid settings for WiFi, device will locked before setup()
and never returns control to other code.
Some way to control over WiFi connection required. This may be at least a predefined timeout. A more complex way is external flag controlled by "hardware" timer and/or WiFi event handlers.
Both ESP8266 and ESP32 code in gatewayTransportInit()
copied from trivial sample code
(latest development git, compiled with esp8266 2.3.0):
MySensors/core/MyGatewayTransportEthernet.cpp
Lines 133 to 136 in e0988e6
and
MySensors/core/MyGatewayTransportEthernet.cpp
Lines 153 to 156 in e0988e6
- This loop will never ends if (for example) wrong password provided.
wait
potentially may produce unexpected results because transport not ready here (see ESP8266Gateway do not connect to Access Point #946)- User code in
setup
andloop
never be executed so no way to reconfig or restart device