Issue: 'PinStatus' does not name a type compile error
Platform: Linux 64 bit IDE !.8.19 on Ubuntu Linux 20.04 LTS OS
This is turning out to be a trying challenge. After installing python on my Desktop to try and eliminate these errors my IDE crashed yesterday and burned. So I am working off fresh install.
-
Is there a definitive solution to this issue found on this site or another like Github or the Espressif site?
-
If I should delete the current WiFiNINA library and reinstall manually a replacement what is the source location for the new file? The WiFiNINA Resource library [WiFiNINA - Arduino Reference] shows 1.8.13 as the latest/greatest version. Is there a different version that addresses these compile issues? Or does a manual install provide a benefit better than going through the IDE Library Manager?
-
I found on Github this fix action at:
Fix PinStatus error on some platforms by khoih-prog · Pull Request #185 · arduino-libraries/WiFiNINA · GitHub
For file: Arduino/libraries/WiFiNINA/src/utility/wifi_drv.h
static void debug(uint8_t on);
static float getTemperature();
static void pinMode(uint8_t pin, uint8_t mode);
// Next 5 lines of code are fix for PinStatus error
#if defined(ARDUINO_ARCH_MBED)
static PinStatus digitalRead(uint8_t pin);
#else
static int digitalRead(uint8_t pin);
#endif
static void digitalWrite(uint8_t pin, uint8_t value);
static uint16_t analogRead(uint8_t adc_channel);
static void analogWrite(uint8_t pin, uint8_t value);
Error text from compiler:
In file included from /home/ed/Arduino/libraries/WiFiNINA/src/WiFiStorage.h:23,
from /home/ed/Arduino/libraries/WiFiNINA/src/WiFi.h:38,
from /home/ed/Arduino/libraries/WiFiNINA/src/WiFiNINA.h:23,
from /tmp/arduino_modified_sketch_634813/ConnectWithWPA.ino:12:
/home/ed/Arduino/libraries/WiFiNINA/src/utility/wifi_drv.h:293:12: error: 'PinStatus' does not name a type
static PinStatus digitalRead(uint8_t pin);
^~~~~~~~~
exit status 1
Error compiling for board ESP32 Wrover Module.
Inserting this code change seemed to fix the 'hiccup' at this specific code location but the subsequent compile had a tsunami of additional errors, some related to 'PinStatus.'
-
Is it necessary to relink any of the python3 stuff I installed earlier to the fresh install of IDE?
-
Should I consider moving up to the new IDE 2.0 with the hopes these current issues may not be present?
-
Is it critical to link to the exactly correct board type under Boards Manager for the ESP-WROOM-32? There is no menu selection item that explicitly matches.
thanks fellas...