FastLED 3.9.15
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 115 of file remote.cpp.hpp.

115 {
116 fl::json params = fl::json::object();
117 params.set("message", message);
118 reportError(params);
119}
void reportError(const fl::string &message)
Send an error notification to the remote peer.
void set(const fl::string &key, const json &value) FL_NOEXCEPT
Definition json.h:701
static json object() FL_NOEXCEPT
Definition json.h:692

References 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: