i'm developping code for my ESP32 running Arduino C++-code.
I have one device that is partially running on battery. To use as less battery-energy as possible I use a ESP32-board which consumes 15 µA in deepsleep-mode.
I recongnised if I execute code in this way
Code: Select all
pushsafer.sendEvent(PushSaferData) ;
esp_deep_sleep_start();
I added a delay(5000); to make it work
Code: Select all
pushsafer.sendEvent(PushSaferData) ;
delay(5000);
esp_deep_sleep_start();
is there any kind of function that reports "notification send" / "sending notification failed"
so I could code something like this
Code: Select all
pushsafer.sendEvent(PushSaferData) ;
while ( !pushsafer.sendEventFinished(3000) ) {
yield(); // wait for finished "signal" has arrived either successfull or if unsuccessfull with a timeout of 3000 milliseconds
}
esp_deep_sleep_start();
With power-on the ESP32 consumes 50 mA which is 3000 times more than in deepsleep-mode (0,015 mA)
best regards Stefan