mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-31 20:24:17 +00:00
RC Calibration
This commit is contained in:
@@ -276,11 +276,15 @@ static void ledc_init (void) {
|
||||
static void wifi_init()
|
||||
{
|
||||
ESP_ERROR_CHECK(esp_netif_init());
|
||||
//ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
|
||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
ESP_ERROR_CHECK( esp_wifi_start());
|
||||
ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
|
||||
|
||||
|
||||
|
||||
//ESP_ERROR_CHECK( esp_wifi_set_mode(ESPNOW_WIFI_MODE) );
|
||||
|
||||
@@ -296,12 +300,11 @@ static void wifi_init()
|
||||
};
|
||||
// ESP_ERROR_CHECK( esp_wifi_init(wifi_config) );
|
||||
//ESP_ERROR_CHECK( esp_wifi_set_config(ESPNOW_WIFI_IF, &wifi_config) );
|
||||
ESP_ERROR_CHECK( esp_wifi_start());
|
||||
|
||||
|
||||
//ESP_ERROR_CHECK( esp_wifi_set_mode(CONFIG_ESPNOW_WIFI_MODE_STATION_SOFTAP) );
|
||||
//
|
||||
//ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
|
||||
//ESP_ERROR_CHECK( esp_wifi_connect() );
|
||||
////ESP_ERROR_CHECK( esp_wifi_connect() );
|
||||
}
|
||||
|
||||
static void led_task (void *arg) {
|
||||
|
Reference in New Issue
Block a user