Page 1 of 1

Need help with ESP32 BLE with deep sleep

Posted: Mon May 18, 2020 12:50 am
by pipe2path
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?

Thanks.

Re: Need help with ESP32 BLE with deep sleep

Posted: Tue May 19, 2020 2:40 am
by chegewara
It is not possible to use bluetooth with esp32 in deep sleep, because radio is turned off.