0

adafruit_00_publish compiling error on HUZZAH
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

adafruit_00_publish compiling error on HUZZAH

by Timmcg55 on Wed Feb 13, 2019 3:39 pm

How can this happen? I kind of thought one would be compatible with the other, no?


"In file included from D:\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_ESP8266.h:18:0,

from D:\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_WiFi.h:32,

from sketch\config.h:20,

from D:\Arduino\Goal Folder\adafruitio_00_publish_TPM\adafruitio_00_publish_TPM.ino:8:

D:\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23:31: fatal error: ArduinoHttpClient.h: No such file or directory

#include "ArduinoHttpClient.h"

^

compilation terminated.

exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266."

Timmcg55
 
Posts: 2
Joined: Mon Jan 14, 2019 3:24 pm

Re: adafruit_00_publish compiling error on HUZZAH

by franklin97355 on Wed Feb 13, 2019 7:28 pm

Do you have the ArduinoHttpClient library installed?

franklin97355
 
Posts: 20103
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: adafruit_00_publish compiling error on HUZZAH

by Timmcg55 on Fri Feb 15, 2019 10:41 am

franklin97355,
Thanks for the reply.
I downloaded and added the library "ArduinoHttpClient.h" to my sketch, but I still have compiling errors.
Remember this is an actual Adafruit example sketch and I'm using the Adafruit Huzzah. It just seems they should work together without any editing.

Here is the error message. It is long and I really don't know how to sort it all out just yet.

"D:\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp: In constructor 'AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char*, const char*, const char*, const char*)':
D:\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 D:\Arduino\libraries\ArduinoHttpClient\src/ArduinoHttpClient.h:8:0,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.h:18,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp:14:

D:\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 D:\Arduino\libraries\ArduinoHttpClient\src/HttpClient.h:10:0,
from D:\Arduino\libraries\ArduinoHttpClient\src/ArduinoHttpClient.h:8,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.h:18,
from D:\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp:14:

C:\Users\mcguinness\AppData\Local\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;

^
C:\Users\mcguinness\AppData\Local\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;

^
C:\Users\mcguinness\AppData\Local\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 "ESP8266WiFi.h"
Used: D:\Arduino\libraries\ESP8266WiFi
Not used: C:\Users\mcguinness\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi
exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266.

Timmcg55
 
Posts: 2
Joined: Mon Jan 14, 2019 3:24 pm

Re: adafruit_00_publish compiling error on HUZZAH

by brubell on Fri Feb 15, 2019 3:55 pm

Firmware Beta 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 beta firmware.

Instructions to downgrade to 2.4.x are found on: https://learn.adafruit.com/adafruit-io- ... roject-7-1

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

Please be positive and constructive with your questions and comments.