ESP-NOW + Wi-Fi

This commit is contained in:
2025-07-26 22:52:15 -04:00
parent add6926215
commit cfeba716a9
4 changed files with 216 additions and 1 deletions

View File

@@ -308,6 +308,8 @@ static void wifi_init()
ESP_ERROR_CHECK (esp_wifi_set_config(WIFI_IF_STA, &wifi_config));
//ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));
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_connect() );
}