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

◆ onState()

void fl::net::OTA::onState ( StateCallback callback)

Set state callback (called on state transitions)

Parameters
callbackCallback function (supports lambdas, function pointers, functors)

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

59 {
60 if (!mImpl) {
61 mImpl = platforms::IOTA::create();
62 }
63 mImpl->onState(callback);
64}
fl::shared_ptr< fl::platforms::IOTA > mImpl
Definition ota.h:211

References mImpl.