0

Error compiling - Adafruit IO Temperature & Humidity Example
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Error compiling - Adafruit IO Temperature & Humidity Example

by Josephcmasi on Sun Feb 10, 2019 3:26 pm

Hello.
I am new to programming and electronics but have been making decent progress over the past few weeks thanks to the tutorials.

I setup and got my ESP8266 with a DHT22 up and running in about an hour.
It worked fine for about a week then stopped sending info to my IO dashboard.

I rebooted the board with no luck.
I then got the great idea to recompile and upload the code and that's when things took a turn for the worse.

I continuously get errors when trying to compile and upload.
Nothing changed - I was tinkering around all day yesterday and re-installed OSX and all my programs on my Mac with no luck :(

Below is the errors I get. I tried everything I could think of and search for online; including updating the installed libraries and making sure nothing was BETA.
By no means am I giving up - Just waned to see if anyone else has experienced this.
All help is greatly appreciated.


In file included from /Users/USERNAME/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8:0,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_WiFi.h:32,
from sketch/config.h:21,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/examples/adafruitio_15_temp_humidity/adafruitio_15_temp_humidity.ino:19:
/Users/USERNAME/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h: In member function 'virtual void HttpClient::flush()':
/Users/USERNAME/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 Adafruit Feather HUZZAH ESP8266.

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by adafruit_support_carter on Sun Feb 10, 2019 4:17 pm

There may be two unrelated problems here. Not sure why your board stopped working. The compile issue seems like something changed with your Arduino IDE setup. Try going back and loading just the basic blink example sketch to see if that loads and runs OK.

adafruit_support_carter
 
Posts: 9887
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by Josephcmasi on Sun Feb 10, 2019 4:21 pm

Thanks for the reply!

Basic blink, connecting to my wireless network, etc. all work fine.

The only issue I am having is with the temp & humidity example.

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by adafruit_support_carter on Sun Feb 10, 2019 4:45 pm

You're using this sketch? Modified only for your wifi and IO key?
https://github.com/adafruit/Adafruit_IO ... p_humidity

adafruit_support_carter
 
Posts: 9887
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by Josephcmasi on Sun Feb 10, 2019 5:17 pm

Yes
Tried copying / pasting the sketch from the link and got the following error when compiling:

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

In file included from /Users/USERNAME/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8:0,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
from /Users/USERNAME/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_WiFi.h:32,
from sketch/config.h:21,
from /var/folders/d2/x9kg_q7j7lxdg8lmrk8k_zj80000gn/T/arduino_modified_sketch_76678/adafruitio_15_temp_humidity.ino:19:
/Users/USERNAME/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h: In member function 'virtual void HttpClient::flush()':
/Users/USERNAME/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 Adafruit Feather HUZZAH ESP8266.

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

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by adafruit_support_carter on Sun Feb 10, 2019 5:26 pm

I just did a test compile and it worked OK for me. Something has become corrupted with your Arduino install. What version are you currently showing for all the libraries?

* ArduinoHHTPClient = ?
* Adafruit IO Arduino = ?

adafruit_support_carter
 
Posts: 9887
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by Josephcmasi on Sun Feb 10, 2019 6:32 pm

ArduinoHHTPClient = 0.3.1

Adafruit IO Arduino = 2.7.23

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by adafruit_support_carter on Mon Feb 11, 2019 1:19 pm

Thanks. That all seems fine. It may be related to the Board Support Package:
https://github.com/adafruit/Adafruit_IO ... -462358438

You mention making sure nothing was Beta. Did that include the BSP?

adafruit_support_carter
 
Posts: 9887
Joined: Tue Nov 29, 2016 2:45 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by Josephcmasi on Tue Feb 12, 2019 7:05 pm

Yes
Verified everything was GA releases - No BETA firmware/libraries/board manager is running.

My Arduino guru (A.K.A. my father) thinks the libraries might be messed up.
Now that all my snow shoveling is done I'm going to dive deeper into resolving the issue.

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by Josephcmasi on Tue Feb 12, 2019 8:34 pm

RESOLVED - Deleted and re-installed the ArduinoHttpClient library

Temp & Humidity sensor is back up and running!!

Josephcmasi
 
Posts: 7
Joined: Sat Jan 26, 2019 9:59 pm

Re: Error compiling - Adafruit IO Temperature & Humidity Exa

by adafruit_support_carter on Wed Feb 13, 2019 3:33 pm

Excellent. That can happen. Glad you were able to resolve it.

adafruit_support_carter
 
Posts: 9887
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.