Equipment: ESP32
Goals:
1)Give WiFi login details through Bluetooth Terminal
2) connect to WiFi using those details (this will automatically disconnect the device from BT)
3) Upload some data
How the error occurs: ssid and password are received from BT terminal, BT is disconnected and WiFi is successfully connected. It begins to upload the data and then the serial monitor appears to show the device crashing and rebooting with the panic'ed error message.
Important details:
-
I've tested both parts of the program separately. Connecting to WiFi using BT provided login info and uploading data both work individually
-
Removing the code that gets the login from BT and replacing it with code that provides the login data directly results in a working code with no crashing or rebooting