FastLED 3.9.15
Loading...
Searching...
No Matches
ClientValidationReal.h File Reference
#include "fl/stl/asio/http/server.h"
#include "fl/net/http/fetch.h"
#include "fl/task/executor.h"
#include <FastLED.h>
+ Include dependency graph for ClientValidationReal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DATA_PIN   2
 
#define NUM_LEDS   10
 
#define SERVER_PORT   8081
 

Enumerations

enum  TestState {
  SERVER_STARTING , TEST_JSON , TEST_GET , TEST_PING ,
  ALL_PASSED , FAILED
}
 

Functions

void loop ()
 
Serial print ("Error: ")
 
Serial println (server.last_error().c_str())
 
void setup ()
 
FastLED show ()
 
void test_get_endpoint ()
 
void test_json_endpoint ()
 
void test_ping_endpoint ()
 
void updateLEDs ()
 

Variables

bool done = false
 
 else
 
fl::CRGB leds [NUM_LEDS]
 
fl::HttpServer server
 
TestState state = SERVER_STARTING
 
uint32_t test_start_time = 0
 
int tests_failed = 0
 
int tests_passed = 0