arduino-libraries / WiFiNINA

140 stars 106 forks source link

error: 'PinStatus' does not name a type #184

Open yashmulgaonkar opened 3 years ago

yashmulgaonkar commented 3 years ago

Trying to compile for Adafruit PyPortal Titano:

Error: WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type

WiFiNINA at version 1.8.10

Temporary workaround: Use this instead: https://github.com/khoih-prog/WiFiNINA_Generic

FreeGoldRush commented 3 years ago

Is there an update for this? WiFiNINA_Generic compiles fine but the library just hangs when running on the PyPortal. We currently have no solution for using Wifi on our PyPortal.

EDIT: Going back to an earlier version of WiFiNINA makes this error go away and it still passes the Adafruit PyPortal test.

jhoughjr commented 3 years ago

doesn't work with platform io in cpp either.

Darvesh7 commented 3 years ago

I tried on Nano 33 iot. It is not working. I am using platform.io. My software has been working fine for many months now it wont even compile.

.pio\libdeps\nano_33_iot\WiFiNINA\src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type

Darvesh7 commented 3 years ago

Version 1.8.2 does not have this issue. Its only v1.8.3

xvs03 commented 1 year ago

Hello, I have been following the discussion. I have now installed version 1.8.12 in the Arduino IDE and I still get the compilation error. I am using an Arduino UNO WiFi Rev.2 in my project. This is an expensive original, why don't the original libraries work there.

wifi_drv.h:293:12: Error message on Arduino UNO Wifi: error: 'PinStatus' does not name a type static PinStatus digitalRead(uint8_t pin);

On the MKR WiFi 1010 the compilation with version 1.8.12 works fine.

By the way, I have tested older versions. None of them worked.

xvs03 commented 1 year ago

I have found a solution to compile the Arduino UNO WiFi Rev.2 board. You have to search for "Arduino megaAVR" in the board manager and install it, because the board is based on a completely different chip than the Arduino UNO WiFi (Rev.1). image

It would be nice if this would be published on the manufacturer's site.

ghost commented 1 year ago

I also have this issue in PIO using the following ini:

[env]
framework = arduino
lib_deps = arduino-libraries/ArduinoIoTCloud@^1.11.1
build_type = debug
lib_ldf_mode = deep+

[env:esp32dev]
platform = espressif32
board = nodemcu-32s

Now reverting to v1.8.2.