This basic sketch just keeps trying to connect to Wi-Fi in a loop. If the CONNECTED_DELAY value is set low enough (like 500), the WiFi.begin(); call inside the loop() function will cause the device to reboot. I did some digging and the reboot happens when executing the EMW10xxInterface::connect function.
However, if CONNECTED_DELAY is set to something like 2000, the device will not reboot.
Hi @JerryYangKai, sorry I forgot a crucial part. The reboot happens when re-connecting to the network after losing Wi-Fi connection with a low CONNECTED_DELAY value. To lose and regain the connection I used a mobile Wi-Fi hotspot and simply turned it off and on.
Steps to reproduce:
Allow device to connect to Wi-Fi
Lose connection to Wi-Fi network (e.g. make device go out of range, shut off Wi-Fi network, or turn off mobile hotspot)
Wait until device reports "No wifi connection" or green connection light is off
Regain network connection (e.g. turn mobile hotspot back on)
At Step 4, device seems to either reboot or regain network connection without rebooting depending on the CONNECTED_DELAY.
This basic sketch just keeps trying to connect to Wi-Fi in a loop. If the
CONNECTED_DELAY
value is set low enough (like500
), theWiFi.begin();
call inside theloop()
function will cause the device to reboot. I did some digging and the reboot happens when executing theEMW10xxInterface::connect
function.However, if
CONNECTED_DELAY
is set to something like2000
, the device will not reboot.Hi @JerryYangKai, sorry I forgot a crucial part. The reboot happens when re-connecting to the network after losing Wi-Fi connection with a low
CONNECTED_DELAY
value. To lose and regain the connection I used a mobile Wi-Fi hotspot and simply turned it off and on.Steps to reproduce:
At Step 4, device seems to either reboot or regain network connection without rebooting depending on the
CONNECTED_DELAY
.Removed from https://github.com/VSChina/mbed-az3166-driver/issues/2