FastLED 3.10.8
Loading...
Searching...
No Matches

◆ WLED() [1/2]

fl::WLED::WLED ( )

Construct WLED with default stub I/O callbacks.

Uses stubRequestSource() and stubResponseSink() which log FL_ERROR and serve as placeholders for real I/O implementation.

Example: fl::WLED wled;

Definition at line 11 of file wled.cpp.hpp.

12 : Remote(
13 [this]() { return stubRequestSource(); },
14 [this](const fl::json& response) { stubResponseSink(response); }
15 ) {}
Remote(RequestSource source, ResponseSink sink) FL_NO_EXCEPT
Construct with I/O callbacks.
fl::optional< fl::json > stubRequestSource() FL_NO_EXCEPT
Stub request source callback.
Definition wled.cpp.hpp:17
void stubResponseSink(const fl::json &response) FL_NO_EXCEPT
Stub response sink callback.
Definition wled.cpp.hpp:22

References fl::Remote::Remote(), fl::FL_NO_EXCEPT, and stubRequestSource().

+ Here is the call graph for this function: