ESP-IDF 5.5 + LVGL 9 firmware that plays random public cameras from insecam.org on the T-Embed's 320x170 screen, live MJPEG where available, a new camera every 20 seconds. Knob steps through cameras, LED ring shows the countdown. Auto-detects the original vs CC1101 board, reuses Wi-Fi credentials from NVS and falls back to a captive-portal setup hotspot.
12 lines
378 B
C
12 lines
378 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
|
|
// NVS + Wi-Fi station using whatever credentials are stored in NVS.
|
|
void net_init(void);
|
|
bool net_has_credentials(void);
|
|
bool net_wait_connected(int timeout_ms);
|
|
bool net_is_connected(void);
|
|
// Opens the setup hotspot (APSTA) with a captive portal; station keeps retrying meanwhile.
|
|
void net_start_portal(void);
|
|
const char *net_ip_str(void);
|