ESP_ATMod icon indicating copy to clipboard operation
ESP_ATMod copied to clipboard

Migration to Arduino Core 3.x

Open JiriBilek opened this issue 3 years ago • 4 comments

So far, the version 0.3.x was compiled with the old core v. 2.7.4. The current core 3.0.2 introduced some breaking changes. This issue will address them.

  1. ESP_ATMod does not reconnect to APs (https://github.com/JiriBilek/ESP_ATMod/issues/11)
  2. Bad AT+CIPSTATUS (reply +CIPSTATUS:2,"SSL","(IP unset)",0,0,0) after connecting to and transferring data from web server.

The changes will be made to the branch Core_3 (https://github.com/JiriBilek/ESP_ATMod/tree/Core_3). They will result in a new version (probably 0.4).

JiriBilek avatar Oct 14 '22 14:10 JiriBilek

I use 3.0.2. I don't use SSL connection so I can't comment about that part.

I was expecting problems with automatic joining AP at start, because I know it is off by default in 3.0+, but they didn't occur. I assumed because of how WiFiEspAT library's SetupPersistentWiFiConnection example, which I use for it, works. And I hade to run it multiple times as I switched between normal AT firmware and ESP_ATMod to compare results.

JAndrassy avatar Oct 14 '22 17:10 JAndrassy

2. Bad AT+CIPSTATUS (reply +CIPSTATUS:2,"SSL","(IP unset)",0,0,0) after connecting to and transferring data from web server.

The problem is in the core. I have reported it.

JiriBilek avatar Oct 15 '22 12:10 JiriBilek

With the update of core to 3.1 problems appeared:

error: use of deleted function 'BearSSL::X509List& BearSSL::X509List::operator=(const BearSSL::X509List&)' https://github.com/JiriBilek/ESP_ATMod/blob/1ecacadb6e8897af5acc2ba8980fc1891356394a/ESP_ATMod/command.cpp#L2950

warning: 'WiFiClient WiFiServer::available(uint8_t*)' is deprecated: Renamed to accept(). [-Wdeprecated-declarations] https://github.com/JiriBilek/ESP_ATMod/blob/1ecacadb6e8897af5acc2ba8980fc1891356394a/ESP_ATMod/ESP_ATMod.ino#L416

JiriBilek avatar Jan 20 '23 09:01 JiriBilek

the warning is expected. I made the 'rename' of server.available() to accept() in the ESP8266WiFi library. but it is just a warning

JAndrassy avatar Jan 20 '23 10:01 JAndrassy

Resolved by #31

JiriBilek avatar Aug 01 '24 06:08 JiriBilek