FastLED 3.9.15
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 9 of file wled.cpp.hpp.

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

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

+ Here is the call graph for this function: