atc1441 / E-Paper_Pricetags

GNU General Public License v3.0
231 stars 40 forks source link

Build using native Arduino toolkit fails #24

Closed jruys closed 3 years ago

jruys commented 3 years ago

Haven't had time to dive into this, opening just in case others run into this. Build using native Arduino toolkit started to fail after WifiManager merge.

Installed the library from https://github.com/tzapu/WiFiManager (not via native library manager)

Build exits with "'class WiFiClass' has no member named 'mode'" Compile errors start with "error: redeclaration of 'HTTP_DELETE' XX(0, DELETE, DELETE)"

Does WifiManager have version dependencies I may not have taken into consideration?

atc1441 commented 3 years ago

Maybe this helps ? https://github.com/atc1441/E-Paper_Pricetags/blob/main/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/platformio.ini#L19

havent tested it myself in Arduino

probonopd commented 3 years ago

Yes, you definitely need to use the feature_asyncwebserver branch of https://github.com/tzapu/WiFiManager: https://github.com/tzapu/WiFiManager/archive/refs/heads/feature_asyncwebserver.zip

jruys commented 3 years ago

Confirmed: switching to that library fixes the issue. It now compiles ok.

probonopd commented 3 years ago

Sent a pull request to clarify the instructions. Thanks for pointing this out.