ayushsharma82 / NetWizard

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

Some Error on PlatformIO #14

Closed Majid-Derhambakhsh closed 3 months ago

Majid-Derhambakhsh commented 3 months ago

Hello

PlatformIO can't compile correctly the code, i found these bugs in compiling via PlatformIO: 1- AsyncTCP RP2040W was added to the project and error when compiling it (I fixed it by removing reference from platformio.ini at AsyncTCP library) 2- Some WiFi class member was not found in PlatformIO, such as WiFi.AP.localIP(), i updated the ESP package to the latest version but this error was not fixed

ayushsharma82 commented 3 months ago

@Majid-Derhambakhsh

Regarding 1st error, the solution was already in docs. Ref: https://docs.netwizard.pro/docs/intro/installation#modifications-in-platform-io-ini . NOTE: It's necessary to delete .pio folder after adding these lines.

Now coming to your 2nd error, that's because default espressif32 platform on PIO doesn't contain the latest Arduino SDK. You can easily get around it by using a fork platform that has latest features. Just like we did here: https://github.com/livegrid/OpenMatrix/blob/main/platformio.ini#L12