You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sketch only seems to work once. Let me explain.
I flash your code, unmodified, to an ESP32 (in this case, its a CAN32 board, using a ESP32-WROOM-32U module, using the SparkFun ESP32 Thing board profile in the Arduino IDE), it starts fine. I connect to it from a phone, and I can send/receive messages without any issues. I can disconnect from the ESP AP, reconnect, and it still works. So far so good.
However, If I restart the ESP32 (reset button or power cycle), as soon as my phone tries to reconnect to it, I get the following error over and over in the serial term:
If I turn off WiFi on my phone, so it does not attempt a connection, the sketch boots fine, but repeats the boot loop seen above as soon as a client tries to connect again.
The only way I have found to get the code to work again (once) is to erase the ESP32's flash with esptool.py --port COM3 erase_flash, then flash the code to the ESP32 again. Again, that only works once, until the board is reset.
This sketch only seems to work once. Let me explain.
I flash your code, unmodified, to an ESP32 (in this case, its a CAN32 board, using a ESP32-WROOM-32U module, using the SparkFun ESP32 Thing board profile in the Arduino IDE), it starts fine. I connect to it from a phone, and I can send/receive messages without any issues. I can disconnect from the ESP AP, reconnect, and it still works. So far so good.
However, If I restart the ESP32 (reset button or power cycle), as soon as my phone tries to reconnect to it, I get the following error over and over in the serial term:
If I turn off WiFi on my phone, so it does not attempt a connection, the sketch boots fine, but repeats the boot loop seen above as soon as a client tries to connect again.
The only way I have found to get the code to work again (once) is to erase the ESP32's flash with
esptool.py --port COM3 erase_flash
, then flash the code to the ESP32 again. Again, that only works once, until the board is reset.Update: After typing up all of the above, I found this, which seems extremely relevant: espressif/arduino-esp32#2025 (comment)
And it seems this suggestion fixes the problem: espressif/arduino-esp32#2025 (comment)
The text was updated successfully, but these errors were encountered: