mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
fix boot loop caused by competing wifi_manager and cmd_wifi
It is now possible to set a default autoexec command to automatically join wifi when wifi_manager is disabled. To test wifi stability without wifi_manager, use the following commands: nvs_set bypass_wm str -v "1" nvs_set autoexec str -v "1" nvs_set autoexec1 str -v "squeezelite -o I2S -b 500:2000 -d all=info -m nvs_set autoexec2 str -v "join <ssid> <password>" ESP32" restart Note that squeezelite occupies the "autoexec1" slot to avoid conflicts with the wifi manager web configuration page when it is re-enabled. To re-enable the wifi-manager, use the following commands: nvs_set bypass_wm str -v "0" restart -- Additional change: Credits page now has a button to enable the nvs editor even in ota mode
This commit is contained in:
@@ -543,14 +543,6 @@ char* wifi_manager_get_ap_list_json(){
|
||||
|
||||
|
||||
static void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data){
|
||||
// if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) {
|
||||
// led_blink_pushed(LED_GREEN, 250, 250);
|
||||
// esp_wifi_connect();
|
||||
// xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
|
||||
// } else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP) {
|
||||
// led_unpush(LED_GREEN);
|
||||
// xEventGroupSetBits(wifi_event_group, CONNECTED_BIT);
|
||||
// }
|
||||
|
||||
if(event_base== WIFI_EVENT){
|
||||
switch(event_id) {
|
||||
|
||||
Reference in New Issue
Block a user