earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
1.98k stars 412 forks source link

how i can run Example "ConnectWithWPA" #375

Closed kendo55 closed 2 years ago

kendo55 commented 2 years ago

how i can run Example "ConnectWithWPA"

  1. I included the "WiFiNINA" library over Sketch -> include Library -> manage Libraries and she was installed in /libraries/WiFiNINA

  2. if I compile "ConnectWithWPA" Example those Errors are reportet: .......... ConnectWithWPA:18:14: error: 'WL_IDLE_STATUS' was not declared in this scope 18 | int status = WL_IDLE_STATUS; // the WiFi radio's status | ^~~~~~ D:\projekte\RP2040\sketchbook\ConnectWithWPA\ConnectWithWPA.ino: In function 'void setup()': ConnectWithWPA:28:7: error: 'WiFi' was not declared in this scope 28 | if (WiFi.status() == WL_NO_MODULE) { | ^~~~ ConnectWithWPA:28:24: error: 'WL_NO_MODULE' was not declared in this scope 28 | if (WiFi.status() == WL_NO_MODULE) { | ^~~~ etc... ......

  3. I tried to move the Library to "D:\arduino-1.8.16_RP2040_SDK\portable\packages\rp2040\hardware\rp2040\1.9.8\libraries" like in ESP32 environment.. but no sucess!

  4. I removed the root Lib: D:\arduino-1.8.16_RP2040_SDK\libraries\WiFi

no sucess!

JAndrassy commented 2 years ago

https://github.com/earlephilhower/arduino-pico/issues/373

kendo55 commented 2 years ago

@jandrassy thanks! i will work on a solution....

Claupio commented 2 years ago

Renaming the file WiFiNINA.h to WiFiNINA2.h and obviusly change the include in the example; for me it works (compile) but the tcp and udp doesn't work

JAndrassy commented 2 years ago

Renaming the file WiFiNINA.h to WiFiNINA2.h and obviusly change the include in the example; for me it works (compile) but the tcp and udp doesn't work

does it work with the Arduino core for Nano Connect?

Claupio commented 2 years ago

it works with this core but I don't know if this works also in the official arduino core

khoih-prog commented 2 years ago

You can use this new WiFiNINA_Generic releases v1.8.14-2, without having to modify anything.

Have a look at WiFiWebClientRepeating on ARDUINO_NANO_RP2040_CONNECT


Releases v1.8.14-2

  1. Add support to Nano_RP2040_Connect using arduino-pico core
  2. Update Packages' Patches