FastLED 3.9.15
Loading...
Searching...
No Matches
Server.ino File Reference

Detailed Description

HTTP Server Example for FastLED.

Demonstrates minimal HTTP server with route handlers using fl::asio::HttpServer.

ROUTES: GET / - Hello message GET /status - LED status (JSON) POST /color - Set LED color (JSON body: {"r":255,"g":0,"b":0}) GET /ping - Health check

LED STATUS: Blue (pulse) - Server starting Green (solid) - Server running Cyan (flash) - Request received Purple (flash) - Response sent Red (solid) - Error

USAGE:

  1. Compile: bash compile posix –examples Server
  2. Run: .build/meson-quick/examples/Server.exe
  3. Test: uv run python examples/Asio/Server/test_client.py
  4. Or: curl http://localhost:8080/

Definition in file Server.ino.

#include "FastLED.h"
#include "ServerReal.h"
+ Include dependency graph for Server.ino:

Go to the source code of this file.