0

Library errors
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Library errors

by TheBrewery on Thu Apr 11, 2019 11:09 am

Hello all,

I keep hitting this error

Arduino: 1.8.9 (Mac OS X), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled, 4M (3M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

/Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp: In constructor 'AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char*, const char*, const char*, const char*)':
/Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:22:53: error: cannot allocate an object of abstract type 'HttpClient'
_http = new HttpClient(*_client, _host, _http_port);
^
In file included from /Users/Michael/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8:0,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:14:
/Users/Michael/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h:41:7: note: because the following virtual functions are pure within 'HttpClient':
class HttpClient : public Client
^
In file included from /Users/Michael/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h:10:0,
from /Users/Michael/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
from /Users/Michael/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:14:
/Users/Michael/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:29:21: note: virtual int Client::connect(const IPAddress&, uint16_t)
virtual int connect(CONST IPAddress& ip, uint16_t port) =0;
^
/Users/Michael/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:37:22: note: virtual bool Client::flush(unsigned int)
virtual bool flush(unsigned int maxWaitMs = 0) = 0;
^
/Users/Michael/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:38:22: note: virtual bool Client::stop(unsigned int)
virtual bool stop(unsigned int maxWaitMs = 0) = 0;
^
Multiple libraries were found for "Adafruit_NeoPixel.h"
Used: /Users/Michael/Documents/Arduino/libraries/Adafruit_NeoPixel
Not used: /Users/Michael/Documents/Arduino/libraries/arduino_736759
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.


I am stumped... any advice would be greatly appriciated.

TheBrewery
 
Posts: 6
Joined: Fri Apr 05, 2019 5:34 pm

Re: Library errors

by brubell on Thu Apr 11, 2019 11:09 am

Firmware 2.5.0 for the ESP8266 breaks compatibility with ArduinoHttpClient (which is used by Adafruit IO). The Adafruit IO Arduino library is currently unsupported by this firmware. To get it working, you'll need to downgrade the firmware on the ESP8266 from 2.5.0 to 2.4.2.

For instructions on how to do this, please refer to this guide: https://learn.adafruit.com/adafruit-io- ... sketch-4-9

brubell
 
Posts: 407
Joined: Fri Jul 17, 2015 10:33 pm

Re: Library errors

by TheBrewery on Thu Apr 11, 2019 2:25 pm

Thank you!!!!!

TheBrewery
 
Posts: 6
Joined: Fri Apr 05, 2019 5:34 pm

Please be positive and constructive with your questions and comments.