ESP32 after Wifi and bluetooth off - not able to connect to Wifi again.

weicks
Posts: 7
Joined: Tue Sep 25, 2018 12:37 pm

ESP32 after Wifi and bluetooth off - not able to connect to Wifi again.

Postby weicks » 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.

Who is online

Users browsing this forum: No registered users and 72 guests