Error Compiling with my HUZZAH ESP8266

I'm quite new to coding and Arduino so I apologize beforehand if I have any trouble understanding. I just wanted some assistance as to why my code won't compile.

Arduino: 1.8.15 (Windows 10), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from C:\Users\nz450\OneDrive\Documents\Arduino\adafruitio_15_temp_humidity\adafruitio_15_temp_humidity.ino:7:

C:\Users\nz450\OneDrive\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_FONA.h:75:16: error: extra qualification 'AdafruitIO_FONA::' on member 'networkStatus' [-fpermissive]

   75 |   aio_status_t AdafruitIO_FONA::networkStatus() {

      |                ^~~~~~~~~~~~~~~

Multiple libraries were found for "Dhcp.h"

 Used: C:\Users\nz450\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\Ethernet

 Not used: C:\Program Files (x86)\Arduino\libraries\Ethernet

exit status 1

Error compiling for board Adafruit Feather HUZZAH ESP8266.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

It certainly looks like a strange line of code to me, but I was not able to reproduce the error. Have you made any modifications to the ESP8266 boards platform, Adafruit IO Arduino library, or adafruitio_15_temp_humidity example sketch?

I have built the circuit close to what is shown here: Arduino Wiring | Adafruit IO Basics: Temperature & Humidity | Adafruit Learning System

To my knowledge, I have not made any changes to the library and the only changes to the humidity sketch would be the necessary edits (such as the Wifi name/password as well as the Adafruit keys). The only difference is that I have moved my data pin to 12 instead of 2 as shown on the website I sent.

@noelzeyar, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

Looks like the problem is in a library. Maybe a version conflict?

I would check Tools->Board:->Boards manager... to see if there is an update for the ESP8266 boards and check Tools->Manage Libraries... to see if there is an update for the Adafruit_IO_Arduino library.

Both my board (version 3.0.2) and my Adafruit IO Arduino library (version 4.1.1) are updated to the most recent version.

I also used those versions while attempting to reproduce the issue. In case anyone wants convenient access to the code in question, it is here:

https://github.com/adafruit/Adafruit_IO_Arduino/blob/4.1.1/src/AdafruitIO_FONA.h#L75

Notice that networkStatus() is being defined inline in the AdafruitIO_FONA class. From my understanding, this makes the AdafruitIO_FONA:: scoping prefix on the function signature superfluous at the very least.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.