main/alles.c
void wifi_reconfigure() {
     printf("reconfigure wifi\n");

    if(wifi_manager_config_sta){
        memset(wifi_manager_config_sta, 0x00, sizeof(wifi_config_t));
    }

    if(wifi_manager_lock_json_buffer( portMAX_DELAY )){
        wifi_manager_generate_ip_info_json( UPDATE_USER_DISCONNECT );
        wifi_manager_unlock_json_buffer();
    }

    wifi_manager_save_sta_config();
    vTaskDelay(100 / portTICK_PERIOD_MS);

    esp_restart();
}
// Called when the WIFI button is hit. Deletes the saved SSID/pass and restarts into the captive portal
Called when the WIFI button is hit. Deletes the saved SSID/pass and restarts into the captive portal
Called when the WIFI button is hit . Deletes the saved SSID / pass and restarts into the captive portal
void wifi_reconfigure() {
     printf("reconfigure wifi\n");
    if(wifi_manager_config_sta){
        memset(wifi_manager_config_sta, 0x00, sizeof(wifi_config_t));
    }
    if(wifi_manager_lock_json_buffer( portMAX_DELAY )){
        wifi_manager_generate_ip_info_json( UPDATE_USER_DISCONNECT );
        wifi_manager_unlock_json_buffer();
    }
    wifi_manager_save_sta_config();
    vTaskDelay(100 / portTICK_PERIOD_MS);
    esp_restart();
}
void wifi_reconfigure ( ) { printf ( " \n " ) ; if ( wifi_manager_config_sta ) { memset ( wifi_manager_config_sta , 0x00 , sizeof ( wifi_config_t ) ) ; } if ( wifi_manager_lock_json_buffer ( portMAX_DELAY ) ) { wifi_manager_generate_ip_info_json ( UPDATE_USER_DISCONNECT ) ; wifi_manager_unlock_json_buffer ( ) ; } wifi_manager_save_sta_config ( ) ; vTaskDelay ( 100 / portTICK_PERIOD_MS ) ; esp_restart ( ) ; }
Called when the WIFI button is hit.
Called when the WIFI button is hit .