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

◆ sendAsyncStreamRequest()

void sendAsyncStreamRequest ( )

Definition at line 321 of file RpcBidirectional.ino.

321 {
322 Serial.println(">>> [CLIENT] Testing ASYNC_STREAM mode: streamData(5)");
323
324 fl::json request;
325 request["jsonrpc"] = "2.0";
326 request["method"] = "streamData";
327 fl::json params;
328 params.push_back(5);
329 request["params"] = params;
330 request["id"] = requestId++;
331
332 waitingForResponse = true;
333 clientTransport->writeResponse(request);
334}
int requestId
fl::unique_ptr< fl::net::http::HttpStreamClient > clientTransport
bool waitingForResponse
void push_back(const json &value) FL_NOEXCEPT
Definition json.h:745
#define Serial
Definition serial.h:304

References clientTransport, fl::json::push_back(), requestId, Serial, and waitingForResponse.

Referenced by loop().

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