Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By lucasromeiro
#77603
Pablo2048 wrote:Also be aware of naturality of ESP8266 SOC - it is one radio chip so if you want to connect to AP (in STA mode) the AP of ESP channel changes when it looks after STA SSID.

Interesting, can you explain me better?
Maybe that's the problem

Mine is using AP + STA. Like you.
My code is simple, I only do this to configure, in this order:
WiFi.softAP (ssidwebserver, passwordwebserver);
WiFi.begin (ssid, password);

ps: I do not use: WiFi.mode (WIFI_AP_STA);

I'm a beginner, I'm probably stumbling on some nonsense.
Thanks for listening
User avatar
By Pablo2048
#77608 There is many articles about this behavior - you hav just to search it for. For example:
https://github.com/esp8266/Arduino/issues/817
https://github.com/esp8266/Arduino/issues/2441
https://github.com/esp8266/Arduino/issues/1661
I'm using WIFI_AP_STA. If your code is so simple then create MCVE so we can check it. Nothing else can bring you further in solving your problem.
User avatar
By lucasromeiro
#77633
Pablo2048 wrote:There is many articles about this behavior - you hav just to search it for. For example:
https://github.com/esp8266/Arduino/issues/817
https://github.com/esp8266/Arduino/issues/2441
https://github.com/esp8266/Arduino/issues/1661
I'm using WIFI_AP_STA. If your code is so simple then create MCVE so we can check it. Nothing else can bring you further in solving your problem.


Thank you for your help!
Nice, it seems to be EXACTLY my problem!
Since it uses only one radio for both functions, the STA mode forces the AP mode to follow its channel setting ...
I'm thinking how can I solve this, so I read, I need to change the softAP channel.
I'll try to make this command every 10 seconds if I do not have an active connection. What do you think?
WiFi.softAP (ssid, password, wifi_get_channel(), 0);