New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP_ATMod does not reconnect to APs when using ESP8266 Arduino Core versions 3.0 or above #11
Comments
Thanks for the observation. I have to study it more as I want the library to be able to run with both cores. For that reason the Edit: According to the source there is a chance to use |
another related issue is that the current implementation of |
I try to make the commands as much as possible equal to the standard AT firmware from Espressif. The older versions of AT-firmware (e.g. ESP8266_NONOS_SDK_V2.2.1_18_06_08) don't implement this feature so I didn't implement it either. It would be easy to make @JAndrassy : I haven't looked to your code yet, are you using Edit: the ESP8266-IDF-AT_V2.2.1.0 firmware connects using TLS 1.2 so that it can be used instead of my fw (much to my regret 😊). |
the ESP8266-IDF-AT_V2.2.1.0 is very bad and they don't create new versions of AT 2 for esp8266. CWMODE should start remembered STA or SoftAP. but in esp8266 arduino I discovered problems yesterday. I investigate it. |
the problem is only with core 3. setting WiFi.mode or using enableSTA() doesn't join the AP and enableAP() doesn't start the SoftAP. enableWiFiAtBootTime() doesn't change that. I ask the esp8266 core devs if that is intended. |
I tested it again and STA joins AP at start even without enableWiFiAtBootTime(). but I removed mode from setup() in the SoftAP PR. @PixlRainbow which version of ESP_ATMod do you use? |
I haven't used ATMod in a year, the last version I used was d6ad63f |
after proper testing: |
Juraj, |
It is not a problem with start at boot but with start of persistent SoftAP or STA rejoining AP after The second problem is that in core 3.0.2 there is some error with SoftAP started with setting To replicate you have to first setup persistent settings for STA and AP with AT+CWSAP and AT+CWJAP and set mode to STA with AT+CWMODE=1. Then reset. |
correction AT+CWMODE=1 (or 3) doesn't rejoin AP in standard AT firmware. so current implementation of |
This is caused by a new breaking change to the ESP Arduino Core which was implemented this year (2021).
Persistence is now disabled by default in the new Core and WiFi also no longer reconnects at boot even if autoconnect is enabled.
enableWiFiAtBootTime()
can be added to restore the legacy behaviour.Alternatively, you can just call
WiFi.begin()
with no parameters just after you set WiFi defaults to initiate an attempt to connect to the last AP, if it exists.The text was updated successfully, but these errors were encountered: