feat: Wi-Fi access point with a setting, password and boot button
The controller runs an AP (SSID = hostname, 192.168.5.1) next to ESP-NOW, on by default. Network settings gain an on/off switch (ap_enabled) and an optional WPA2 password (ap_password, 8-63 chars; empty is open). A button on D7 (GPIO44) held at boot forces the AP on. Wi-Fi now starts before Ethernet, and a missing W5500 no longer aborts the boot: the web server and mDNS start anyway so the AP stays usable. Network tuning found while testing over the AP: HTTP backlog 10 and 12 open sockets (the default 5 dropped the 6th SYN, a 1 s stall on every page load), larger TCP and Wi-Fi buffers, and IPv6 link-local addresses so mDNS answers AAAA queries (browsers waited about a second for them). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9989dd3062
commit
f85021d40d
11 files changed
+197
-22
No files matched your search
+4
-2
@@ -30,8 +30,10 @@ typedef struct {
|
||||
uint32_t sim_dropped; // frames discarded by the lossy-link test mode
|
||||
} espnow_stats_t;
|
||||
|
||||
// Start Wi-Fi (no AP) on the configured channel and ESP-NOW; hooks beat_set_callback
|
||||
esp_err_t espnow_tx_init(void);
|
||||
// Start Wi-Fi on the configured channel and ESP-NOW; hooks beat_set_callback.
|
||||
// ap_ssid non-NULL also runs an access point of that name (192.168.5.1): WPA2 with
|
||||
// ap_password (8-63 chars), open when it is NULL or empty.
|
||||
esp_err_t espnow_tx_init(const char *ap_ssid, const char *ap_password);
|
||||
|
||||
// Queue a bulk frame (<= 240 bytes). mac NULL broadcasts. Unicast frames are
|
||||
// retried; they never go out within the hold-off window after a beat.
|
||||
|
||||
Reference in new issue
Block a user