ayushsharma82 / NetWizard

No need to hard-code WiFi credentials ever again. (ESP32, RP2040+W)
https://netwizard.pro
GNU Affero General Public License v3.0
50 stars 6 forks source link

ESP32 not work - compiler error from WiFi.h class #17

Open benjamincermak opened 1 month ago

benjamincermak commented 1 month ago

Defineded class "WiFi.h" for ESP32 class to differnt to "ESP8266WiFi.h"

Error in NetWizard.h

.pio/libdeps/esp32-s3-devkitm-1/NetWizard/src/NetWizard.cpp:194:14: error: invalid conversion from 'uint8_t' {aka 'unsigned char'} to 'uint8_t' {aka 'unsigned char'} [-fpermissive]

.pio/libdeps/esp32-s3-devkitm-1/NetWizard/src/NetWizard.cpp:268:37: error: 'class WiFiClass' has no member named 'AP'

.pio/libdeps/esp32-s3-devkitm-1/NetWizard/src/NetWizard.cpp:416:37: error: no matching function for call to 'WiFiClass::disconnect(bool, bool, int)'

and many more

ayushsharma82 commented 1 month ago

The current PIO platform for esp32 doesn’t contain the latest Arduino SDK ‘yet’. Please use this platform as we did here: https://github.com/livegrid/OpenMatrix/blob/84d444250567d9d0ed715a6f54851040aeb418bc/platformio.ini#L12

Using this platform will resolve your errors.