Bluetooth not connecting after waking up from deepsleep...
Posted: Wed Dec 22, 2021 8:52 pm
Hi,
I'm using an ESP32 with the latest version of MicroPython. This is a client for a bluetooth sensor. Everything works fine. I can read values from the remote bluetooth-sensor. I can even disconnect and connect again (my client is based on the ble_sample.py from the MicroPython examples).
Now the problem starts: Once the reading is done I put the machine into deepsleep for 60 seconds. The ESP32 wakes up from sleep, it initialises Bluetooth in the exact same way like before. It scan for devices, find the sensor, trying to connect, but the connection never succeeded.
This is reproducible and repeat as long as I'm waking up from deepsleep. As soon as I power-cycle the ESP32 or press the reset button everything works fine. Until it got trapped in the deepsleep-not-working-cycle again.
Any ideas?
Thanks, Carsten
I'm using an ESP32 with the latest version of MicroPython. This is a client for a bluetooth sensor. Everything works fine. I can read values from the remote bluetooth-sensor. I can even disconnect and connect again (my client is based on the ble_sample.py from the MicroPython examples).
Now the problem starts: Once the reading is done I put the machine into deepsleep for 60 seconds. The ESP32 wakes up from sleep, it initialises Bluetooth in the exact same way like before. It scan for devices, find the sensor, trying to connect, but the connection never succeeded.
This is reproducible and repeat as long as I'm waking up from deepsleep. As soon as I power-cycle the ESP32 or press the reset button everything works fine. Until it got trapped in the deepsleep-not-working-cycle again.
Any ideas?
Thanks, Carsten