FastLED 3.9.15
Loading...
Searching...
No Matches
AutoResearchOta.h
Go to the documentation of this file.
1// examples/AutoResearch/AutoResearchOta.h
2//
3// OTA autoresearch for ESP32: WiFi Soft AP + OTA HTTP server testing.
4// Used by `bash autoresearch --ota`.
5//
6// The ESP32 creates a WiFi Soft AP with known credentials,
7// then starts an OTA HTTP server with Basic Auth.
8// The host Python script connects to the AP and tests HTTP endpoints.
9
10#pragma once
11
12// WiFi AP configuration constants for OTA autoresearch
13#define AUTORESEARCH_OTA_SSID "FastLED-OTA-Test"
14#define AUTORESEARCH_OTA_PASSWORD "otavalid8"
15#define AUTORESEARCH_OTA_AP_IP "192.168.4.1"
16#define AUTORESEARCH_OTA_OTA_PASSWORD "testota123"
17#define AUTORESEARCH_OTA_HOSTNAME "fastled-ota-test"
18#define AUTORESEARCH_OTA_PORT 80
19
20// Forward declarations
21namespace fl {
22class json;
23}
24
27 bool wifi_ap_active = false;
28 bool ota_active = false;
29};
30
35
39
AutoResearchOtaState & getOtaState()
Get current OTA autoresearch state.
fl::json stopOta()
Stop OTA server and WiFi AP, release all resources.
fl::json startOta()
Start WiFi Soft AP and OTA HTTP server.
State for OTA autoresearch.
Base definition for an LED controller.
Definition crgb.hpp:179