FastLED 3.9.15
Loading...
Searching...
No Matches

◆ onBeforeReboot()

void fl::net::OTA::onBeforeReboot ( void(* callback )())

Set callback to be called before device reboots after OTA update.

Parameters
callbackCallback function to call (e.g., to save state, turn off LEDs)
Note
This callback is called after successful OTA update, before device reboots

Definition at line 66 of file ota.cpp.hpp.

66 {
67 if (!mImpl) {
68 mImpl = platforms::IOTA::create();
69 }
70 mImpl->onBeforeReboot(callback);
71}
fl::shared_ptr< fl::platforms::IOTA > mImpl
Definition ota.h:211

References mImpl.