FastLED 3.10.9
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 25 of file response_stream.h.

29 {
30 writer.beginObject();
31 writer.member("jsonrpc", "2.0");
32 writer.key("result");
33 if (writeResult) {
34 writeResult(writer);
35 } else {
36 writer.valueNull();
37 }
38 if (includeId) {
39 writer.key("id");
41 }
42 writer.endObject();
43}
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: