BLE indicate call-back for deep-sleep

Hi, at the moment I am working on a IoT project with a ESP32-C3 module and am using the Arduino BLE library for communication of my sensor data. The library is working fine and I am using an indicate to transmit data. For example see below the temperature characteristic:

BLEUnsignedCharCharacteristic temperatureChar(CHARACTERISTIC_UUID, BLERead | BLEIndicate);

What I now want to know is when the data has arrived at the receiving side so I can put my sensor in deep-sleep. My question is what call-back to use for this function?

Hopefully someone can give me a clue.

Thanks,

Tjerk

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.