Thank you for replying
I have currently 2 routines:
Code: Select all
void disConnect()
{
// WiFi.disconnect(); //disconnect WiFi as it's no longer needed (this appear to remove the credentials)
WiFi.mode(WIFI_OFF);
btStop();
}
void reConnect()
{
WiFi.mode(WIFI_AP);
WiFi.begin();
delay(15);
}
When I run
disConnect();
and immediately after
reConnect();
it works well.
When I run
disConnect();
and 900mS later
reConnect();
as i would need it in the program to save power, it does not reconnect.
I did not try your suggestion:
wifi_on, false?
I never have heared of this option.
What is the purpose of it and the difference with
WiFi.mode(WIFI_OFF);
Where is the useful reference for the WiFi library of the ESP32 describing the procedures?
Thank you.
Laszlo