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

◆ reportError() [2/2]

void fl::Remote::reportError ( const fl::string & message)

Send an error notification to the remote peer.

This is an unsolicited JSON-RPC notification (no request ID) that bypasses normal RPC flow. Use this for error-only state reporting where logging would fail due to serial backpressure. Format: {"jsonrpc":"2.0","method":"__error","params":{"message":"..."}}

Definition at line 135 of file remote.cpp.hpp.

135 {
136 fl::json params = fl::json::object();
137 params.set("message", message);
138 reportError(params);
139}
void reportError(const fl::string &message) FL_NO_EXCEPT
Send an error notification to the remote peer.
void set(const fl::string &key, const json &value) FL_NO_EXCEPT
Definition json.h:866
static json object() FL_NO_EXCEPT
Definition json.h:857

References fl::FL_NO_EXCEPT, fl::json::object(), reportError(), and fl::json::set().

Referenced by reportError().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: