-->
Page 1 of 2

Problems switching from AP mode to STA mode in run mode

PostPosted: Thu Nov 14, 2019 5:50 am
by FRANCISCOGIMENO1000
Hello friends, see if someone has happened to you.

In an esp8266 that is in STA mode I change it to AP mode and it works fine, but when I try to change it back to STA mode it doesn't connect to Wi-Fi.

I have to restart it and put it in STA mode and then it connects without problems.

The code is fine, because I use it when I restart it and it connects.


I tried a lot of things without result.

Greetings and thank you.
Fran

Re: Problems switching from AP mode to STA mode in run mode

PostPosted: Thu Nov 14, 2019 4:32 pm
by davydnorris
Have you tried putting it into no wifi mode first? Turn off the wifi then back on in STA mode?

Re: Problems switching from AP mode to STA mode in run mode

PostPosted: Fri Nov 15, 2019 3:49 am
by FRANCISCOGIMENO1000
Yes, and nothing.

STA to AP mode is fine, but if I am in AP and pass it to STA it does not connect to Wi-Fi.

I've tried changing modes directly, turning off the chip's Wi-Fi, activating it and setting it to STA and nothing.

If I restart it works fine in any mode.

I have tried several ESPs and the same result.

I use the library version ESP8266 Arduino Core ESP 2.50.

Re: Problems switching from AP mode to STA mode in run mode

PostPosted: Sun Nov 17, 2019 3:03 am
by eriksl
Moved to the Arduino section.