9Views0Replies

Author Options:

Problem compiling button_input_led_output.? Answered

Hi, I am getting the following error when compiling:

G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp: In constructor 'AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char*, const char*, const char*, const char*)':

G:\MasterDocuments\Projects\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 G:\MasterDocuments\Projects\Arduino\libraries\ArduinoHttpClient\src/ArduinoHttpClient.h:8:0,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.h:18,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp:14:

G:\MasterDocuments\Projects\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 G:\MasterDocuments\Projects\Arduino\libraries\ArduinoHttpClient\src/HttpClient.h:10:0,

from G:\MasterDocuments\Projects\Arduino\libraries\ArduinoHttpClient\src/ArduinoHttpClient.h:8,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.h:18,

from G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino\src\wifi\AdafruitIO_ESP8266.cpp:14:

C:\Users\Tom.Thornton\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\Tom.Thornton\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\Tom.Thornton\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;

^

Using library Adafruit_IO_Arduino at version 2.7.23 in folder: G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_IO_Arduino
Using library Adafruit_MQTT_Library at version 0.20.4 in folder: G:\MasterDocuments\Projects\Arduino\libraries\Adafruit_MQTT_Library
Using library ArduinoHttpClient at version 0.4.0 in folder: G:\MasterDocuments\Projects\Arduino\libraries\ArduinoHttpClient
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Tom.Thornton\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

My first attempt was for the NodeMCU, followed by the Huzzah. I then rolled back the AdafruitIO_ESP8266 library, followed by the ArduinoHttpClient. I will try rolling back again, and again to see if it corrects the problem. I will also try rolling back Arduino IDE 1.8.9, the current version.

Or... Maybe you have a better idea, workaround, or fix that I am unaware of.

Thanks for the class. My experience with network communications at this level is extremely limited. I've always done hardwired simple communications. I look forward to being able to limit my IOT communications to the LAN, and only have access to the internet through the controlling Raspberry Pi.

Discussions