0

[SOLVED] Adafruit IO, Examples wont compile
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

[SOLVED] Adafruit IO, Examples wont compile

by blaablaaguy on Sat Dec 29, 2018 2:14 pm

Hi,

Ive created an adafruit io account, and tried to use both the Publish and Subscribe examples for the AdafruitIO arduino library after filling in the wifi details, username and api key. However, when I try to compile and upload to my esp8266 based board, I get the following error.

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from C:\Users\blaab\Documents\Arduino\libraries\ArduinoHttpClient\src/ArduinoHttpClient.h:8:0,

                 from C:\Users\blaab\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:23,

                 from C:\Users\blaab\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_ESP8266.h:18,

                 from C:\Users\blaab\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_WiFi.h:32,

                 from sketch\config.h:21,

                 from C:\Users\blaab\Documents\Arduino\libraries\Adafruit_IO_Arduino\examples\adafruitio_06_digital_in\adafruitio_06_digital_in.ino:19:

C:\Users\blaab\Documents\Arduino\libraries\ArduinoHttpClient\src/HttpClient.h: In member function 'virtual void HttpClient::flush()':

C:\Users\blaab\Documents\Arduino\libraries\ArduinoHttpClient\src/HttpClient.h:310:50: error: return-statement with a value, in function returning 'void' [-fpermissive]

     virtual void flush() { return iClient->flush(); };

                                                  ^

exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

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


Anyone have an idea of what im doing wrong? Would be very grateful for any advice, cheers
Last edited by blaablaaguy on Sat Dec 29, 2018 3:25 pm, edited 1 time in total.

blaablaaguy
 
Posts: 3
Joined: Sat Dec 29, 2018 11:50 am

Re: Adafruit IO, Examples wont compile

by blaablaaguy on Sat Dec 29, 2018 3:24 pm

Solved by Jerryn in the Adafruit Discord server, just in case someone else runs into this issue, all I needed to do was change the esp8266 board manager to version 2.4.2.

blaablaaguy
 
Posts: 3
Joined: Sat Dec 29, 2018 11:50 am

Re: [SOLVED] Adafruit IO, Examples wont compile

by adafruit2 on Sat Dec 29, 2018 5:11 pm


adafruit2
Site Admin
 
Posts: 18416
Joined: Fri Mar 11, 2005 7:36 pm

Re: [SOLVED] Adafruit IO, Examples wont compile

by brubell on Sat Dec 29, 2018 5:49 pm

There's an issue with the latest ESP8266 beta firmware which breaks Adafruit IO Arduino (specifically, it breaks ArduinoHTTPClient, a library required by Adafruit IO Arduino). There are more details on the github issue (https://github.com/esp8266/Arduino/issues/5554).

Currently, we recommend rolling the firmware back to a stable version if you installed 2.5.x Beta.

The steps for doing this are at the top of the page here: https://learn.adafruit.com/adafruit-io- ... roject-7-1

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

Please be positive and constructive with your questions and comments.