|
FastLED 3.9.15
|
HTTP Server Loopback Test for FastLED @filter: (platform is native)
Tests HTTP server by making client requests from the same process. Demonstrates server and client interaction within a single .ino file.
TEST SEQUENCE:
LED STATUS: Blue (pulse) - Server starting Yellow (flash) - Tests running Green (solid) - All tests passed Red (solid) - Test failed
USAGE: bash test Loopback –examples
ARCHITECTURE:
Definition in file Loopback.ino.
Include dependency graph for Loopback.ino:Go to the source code of this file.
Macros | |
| #define | DATA_PIN 2 |
| #define | NUM_LEDS 10 |
Enumerations | |
| enum | AppState { SERVER_STARTING , WAITING_FOR_TESTS , TESTS_RUNNING , ALL_PASSED , FAILED } |
Functions | |
| void | loop () |
| void | setup () |
| void | updateLEDs () |
Variables | |
| fl::CRGB | leds [NUM_LEDS] |
| fl::HttpServer | server |
| uint32_t | startup_time = 0 |
| AppState | state = SERVER_STARTING |
| LoopbackTestRunner | testRunner |