ESP32 after Wifi and bluetooth off - not able to connect to Wifi again.
Posted: Tue Sep 25, 2018 1:01 pm
i tired it like it is described in this article on gidhub https://github.com/espressif/arduino-esp32/issues/1077
i stoped wifi and bluetooth on the first core of the ESP with the commands in the loop()
WiFi.mode(WIFI_OFF);
btStop();
but after the lines below there is only a short connection and disconnects after a second.
the wifi connection is executed from the second core.
WiFi.mode(WIFI_STA);
WiFi.config(local_ip, gateway_ip, subnet_mask, dns_ip);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED)
{
Serial.println(WiFi.status());
delay(500);
}
would be nice if anybody could help me here.
i stoped wifi and bluetooth on the first core of the ESP with the commands in the loop()
WiFi.mode(WIFI_OFF);
btStop();
but after the lines below there is only a short connection and disconnects after a second.
the wifi connection is executed from the second core.
WiFi.mode(WIFI_STA);
WiFi.config(local_ip, gateway_ip, subnet_mask, dns_ip);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED)
{
Serial.println(WiFi.status());
delay(500);
}
would be nice if anybody could help me here.