Need help with ESP32 BLE with deep sleep

Posts: 3
Joined: Sun May 17, 2020 9:22 pm

Need help with ESP32 BLE with deep sleep

Postby pipe2path » Mon May 18, 2020 12:50 am

I am looking to communicate between 2 ESP32 devices. The server (with temperature sensor) should sleep after updating it's characteristic. The client should be able to read the value sent.

I am able to get it working without deep sleep, where the characteristic is updated in the loop() section of the Arduino code, and the value is picked up by the client in the notifyCallback() method. However, if I move the notify() code of the server, into the "setup()" portion of my Arduino sketch, the client does not read the value. In fact the "notifyCallback()" method never executes.

Any idea? Could someone please help with sample code if implemented a deep sleep BLE server/client scenario?


Posts: 1211
Joined: Wed Jun 14, 2017 9:00 pm

Re: Need help with ESP32 BLE with deep sleep

Postby chegewara » Tue May 19, 2020 2:40 am

It is not possible to use bluetooth with esp32 in deep sleep, because radio is turned off.

Who is online

Users browsing this forum: No registered users and 7 guests