FastLED 3.10.6
Loading...
Searching...
No Matches

◆ streamJsonRpcResultEnvelope()

void fl::streamJsonRpcResultEnvelope ( fl::JsonStreamWriter & writer,
const fl::json & requestId,
bool includeId,
const fl::JsonStreamCallback & writeResult )
inline

Definition at line 41 of file response_stream.h.

45 {
46 writer.beginObject();
47 writer.member("jsonrpc", "2.0");
48 writer.key("result");
49 if (writeResult) {
50 writeResult(writer);
51 } else {
52 writer.valueNull();
53 }
54 if (includeId) {
55 writer.key("id");
57 }
58 writer.endObject();
59}
int requestId
void beginObject() FL_NO_EXCEPT
void key(const char *k) FL_NO_EXCEPT
void member(const char *k, const char *s) FL_NO_EXCEPT
void streamJsonRpcId(fl::JsonStreamWriter &writer, const fl::json &id) FL_NO_EXCEPT

References FL_NO_EXCEPT, requestId, and streamJsonRpcId().

Referenced by fl::Rpc::handle().

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