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

◆ loop()

void loop ( )

Definition at line 378 of file RpcBidirectional.ino.

378 {
379 uint32_t now = millis();
380
381 // Server is managed by serverThread - no update needed here
382
383 // Update client
384 clientTransport->update(now);
385 clientRemote->update(now);
386
387 // Process client responses
389 if (response) {
390 handleClientResponse(*response);
391 }
392
393 // Send requests periodically
395 lastRequestTime = now;
396
397 switch (currentMode) {
398 case TEST_SYNC:
401 break;
402
403 case TEST_ASYNC:
406 break;
407
411 Serial.println("\n--- Test cycle complete, starting over ---\n");
412 break;
413 }
414 }
415
416 delay(10);
417}
@ TEST_ASYNC_STREAM
@ TEST_ASYNC
@ TEST_SYNC
const uint32_t REQUEST_INTERVAL
void sendAsyncRequest()
fl::unique_ptr< fl::Remote > clientRemote
fl::unique_ptr< fl::net::http::HttpStreamClient > clientTransport
void sendSyncRequest()
TestMode currentMode
void sendAsyncStreamRequest()
uint32_t lastRequestTime
void handleClientResponse(const fl::json &response)
bool waitingForResponse
fl::u32 uint32_t
Definition s16x16x4.h:219
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Optional< T > optional
Definition optional.h:16
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
#define Serial
Definition serial.h:304

References clientRemote, clientTransport, currentMode, handleClientResponse(), lastRequestTime, REQUEST_INTERVAL, sendAsyncRequest(), sendAsyncStreamRequest(), sendSyncRequest(), Serial, TEST_ASYNC, TEST_ASYNC_STREAM, TEST_SYNC, and waitingForResponse.

+ Here is the call graph for this function: