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

◆ sendSyncRequest()

void sendSyncRequest ( )

Definition at line 290 of file RpcBidirectional.ino.

290 {
291 Serial.println(">>> [CLIENT] Testing SYNC mode: add(2, 3)");
292
293 fl::json request;
294 request["jsonrpc"] = "2.0";
295 request["method"] = "add";
296 fl::json params;
297 params.push_back(2);
298 params.push_back(3);
299 request["params"] = params;
300 request["id"] = requestId++;
301
302 waitingForResponse = true;
303 clientTransport->writeResponse(request);
304}
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: