Brings the led_strip example into the cpp app, targeting the ESP32-C3: - Access point led-XXXXXX (open) plus a Wi-Fi client configured from the web Settings tab, with credentials stored in NVS and reconnect backoff - mDNS as led.local with an HTTP service on port 80 - HTTP server with an embedded web UI and a JSON API for patterns and Wi-Fi - Pattern runner for solid, rainbow, chase, breathe, blink, pulse, transition and circle on a 119-LED WS2812 strip (GPIO 10) Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
18 lines
391 B
C
18 lines
391 B
C
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
|
|
struct wifi_creds_t {
|
|
char ssid[33];
|
|
char pass[65];
|
|
};
|
|
|
|
/** @brief Read saved Wi-Fi client credentials. ESP_ERR_NVS_NOT_FOUND if none are saved. */
|
|
esp_err_t settings_load_wifi(wifi_creds_t *c);
|
|
|
|
/** @brief Save Wi-Fi client credentials to NVS. */
|
|
esp_err_t settings_save_wifi(const wifi_creds_t *c);
|