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

◆ sendAsyncRequest()

void sendAsyncRequest ( )

Definition at line 306 of file RpcBidirectional.ino.

306 {
307 Serial.println(">>> [CLIENT] Testing ASYNC mode: longTask(1000)");
308
309 fl::json request;
310 request["jsonrpc"] = "2.0";
311 request["method"] = "longTask";
312 fl::json params;
313 params.push_back(1000);
314 request["params"] = params;
315 request["id"] = requestId++;
316
317 waitingForResponse = true;
318 clientTransport->writeResponse(request);
319}
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: