WiFi driver must be managed by arduino, use arduino to init the driver for esp32 core.
This commit is contained in:
parent
cf2a20fbd4
commit
382299a828
@ -47,11 +47,8 @@ void setup() {
|
||||
|
||||
#if defined(ESP_PLATFORM)
|
||||
// Init the wifi driver on ESP32
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
esp_err_t err = esp_wifi_init(&cfg);
|
||||
if(err){
|
||||
log_e("esp_wifi_init %d", err);
|
||||
}
|
||||
WiFi.mode(WIFI_MODE_MAX);
|
||||
WiFi.mode(WIFI_MODE_NULL);
|
||||
#endif
|
||||
|
||||
Serial.begin(SERIAL_BAUD_RATE);
|
||||
|
Loading…
Reference in New Issue
Block a user