diff --git a/box3_voice/main/Kconfig.projbuild b/box3_voice/main/Kconfig.projbuild index 2963391..4bd33f3 100644 --- a/box3_voice/main/Kconfig.projbuild +++ b/box3_voice/main/Kconfig.projbuild @@ -12,6 +12,16 @@ menu "Zacus BOX-3 Voice Configuration" help WiFi password. Leave empty for open networks. + config ZACUS_WIFI_CHANNEL + int "WiFi channel hint (0 = auto)" + default 0 + range 0 13 + help + Bias the STA scan to start on this channel (1-13). Set this to the + master's WiFi channel so ESP-NOW peers land co-channel — required + for the scenario relay on multi-AP / mesh networks where the same + SSID is broadcast on several channels. 0 = auto (scan all). + config ZACUS_VOICE_BRIDGE_URL string "Voice Bridge WebSocket URL" default "ws://192.168.0.119:8200/voice/ws" diff --git a/box3_voice/main/main.c b/box3_voice/main/main.c index af63310..c66d713 100644 --- a/box3_voice/main/main.c +++ b/box3_voice/main/main.c @@ -89,6 +89,7 @@ static esp_err_t wifi_init_sta(void) .ssid = CONFIG_ZACUS_WIFI_SSID, .password = CONFIG_ZACUS_WIFI_PASSWORD, .threshold.authmode = WIFI_AUTH_WPA2_PSK, + .channel = CONFIG_ZACUS_WIFI_CHANNEL, /* co-channel master for ESP-NOW relay (0 = auto) */ }, }; diff --git a/box3_voice/main/scenario_server.c b/box3_voice/main/scenario_server.c index 3c5a3b3..f476f81 100644 --- a/box3_voice/main/scenario_server.c +++ b/box3_voice/main/scenario_server.c @@ -25,7 +25,7 @@ #define TAG "scenario_srv" #define MAX_SCENARIO_BYTES (64 * 1024) -#define SPIFFS_LABEL "storage" +#define SPIFFS_LABEL "spiffs" #define SPIFFS_BASE "/spiffs" #define SCENARIO_PATH SPIFFS_BASE "/scenario.json" #define SCENARIO_BAK SPIFFS_BASE "/scenario.bak"