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

◆ WLED() [2/2]

fl::WLED::WLED ( RequestSource source,
ResponseSink sink )
inline

Construct WLED with custom I/O callbacks.

Parameters
sourceFunction that returns next JSON-RPC request (or nullopt if none)
sinkFunction that handles outgoing JSON-RPC responses

Example: fl::WLED wled( [&]() { return parseJsonRpcFromSerial(); }, [](const fl::json& r) { writeJsonRpcToSerial(r); } );

Definition at line 270 of file wled.h.

270: Remote(source, sink) {}
Remote(RequestSource source, ResponseSink sink)
Construct with I/O callbacks.

References fl::Remote::Remote().

+ Here is the call graph for this function: