Error compiling for board Adafruit Feather HUZZAH ESP8266.

I am having a problem uploading code to a Feather Huzzah Esp8266. This code has been uploaded in the past with no issues. I think the issue is with the Adafruit Si7021 code sonce its the last thing to compile before it crashes with the error. I have pasted the error below.

Thanks, P.

Arduino: 1.8.13 (Windows 10), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"


Using board 'huzzah' from platform in folder: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4

Using core 'esp8266' from platform in folder: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4

Detecting libraries used...


Alternatives for Adafruit_MQTT.h: [Adafruit_MQTT_Library-1.0.3@1.0.3 Adafruit_MQTT_Library@2.1.0]


  -> candidates: [Adafruit_MQTT_Library-1.0.3@1.0.3 Adafruit_MQTT_Library@2.1.0]


Multiple libraries were found for "ArduinoHttpClient.h"

 Used: C:\Users\USERNAME\Arduino\Arduino\libraries\ArduinoHttpClient

 Not used: C:\Users\USERNAME\Arduino\Arduino\libraries\ArduinoHttpClient-master

Multiple libraries were found for "Adafruit_MQTT.h"

 Used: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_MQTT_Library

 Not used: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_MQTT_Library-1.0.3

Multiple libraries were found for "WiFi.h"

 Used: C:\Program Files (x86)\Arduino\libraries\WiFi

 Not used: C:\Users\USERNAME\Arduino\Arduino\libraries\WiFiNINA

Using library Adafruit_MQTT_Library at version 2.1.0 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_MQTT_Library 

Using library Adafruit_IO_Arduino at version 4.0.2 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_IO_Arduino 

Using library ArduinoHttpClient at version 0.4.0 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\ArduinoHttpClient 

Using library ESP8266WiFi at version 1.0 in folder: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi 

Using library WiFi at version 1.2.7 in folder: C:\Program Files (x86)\Arduino\libraries\WiFi 

Using library Adafruit_SGP30_Sensor at version 2.0.0 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_SGP30_Sensor 

Using library Adafruit_BusIO at version 1.7.1 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_BusIO 

Using library Wire at version 1.0 in folder: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Wire 

Using library SPI at version 1.0 in folder: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SPI 

Using library Adafruit_Si7021_Library at version 1.4.0 in folder: C:\Users\USERNAME\Arduino\Arduino\libraries\Adafruit_Si7021_Library 

exit status 1

Error compiling for board Adafruit Feather HUZZAH ESP8266.

Are the "..." places where you removed text? If so, please post the full output.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.

OK Still having an issue. I have uploaded the errors as a file. I tried the generic board as well as the Adafruit Feather HUZZAH ESP8266 board. Same results.

 Used: C:\Users\USERNAME\Documents\Arduino\libraries\Adafruit_Si7021-master
 Not used: C:\Users\USERNAME\Documents\Arduino\libraries\Adafruit_Si7021_Library
exit status 1
Error compiling for board Generic ESP8266 Module.

esp8266_errs.txt (6.07 KB)

OK, the error is caused by you using the WiFi library. This library was written for the long retired Arduino WiFi Shield, which uses completely different technology from your ESP8266-based Feather Huzzah board.

There is a library specifically written for the ESP8266 named ESP8266WiFi. So you'll need to modify your sketch to use that library instead of the WiFi library.

If you want help with that, you'll need to post your sketch, as well as telling us where we can find all the libraries the sketch uses.