Adabox003 error compiling

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bbonen
 
Posts: 3
Joined: Wed Mar 22, 2017 5:14 pm

Adabox003 error compiling

Post by bbonen »

I am trying to upload the example sketch adafruitio_06_digital_in from the adafruit io library and get the error:

Code: Select all

In file included from C:\Users\Ben\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/wifi/AdafruitIO_ESP8266.h:18:0,

                 from C:\Users\Ben\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_WiFi.h:27,

                 from sketch\config.h:20,

                 from C:\Users\Ben\AppData\Local\Temp\arduino_modified_sketch_528088\adafruitio_06_digital_in.ino:19:

C:\Users\Ben\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:16:27: fatal error: Adafruit_MQTT.h: No such file or directory

 #include "Adafruit_MQTT.h"

                           ^

compilation terminated.

exit status 1
Error compiling for board Adafruit HUZZAH ESP8266.
I have made no changes to the sketch except entering my network and adafruit io info.

User avatar
bbonen
 
Posts: 3
Joined: Wed Mar 22, 2017 5:14 pm

Re: Adabox003 error compiling

Post by bbonen »

I have solved the problem, to use the example code you need to install these libraries:
ArduinoHTTPClient
Adafruit_MQTT

User avatar
dameetch
 
Posts: 15
Joined: Sat Feb 07, 2015 12:49 pm

Re: Adabox003 error compiling

Post by dameetch »

I was having the same issue! Thanks for posting!

User avatar
Xi119
 
Posts: 1
Joined: Wed Mar 22, 2017 9:16 pm

Re: Adabox003 error compiling

Post by Xi119 »

I was also experiencing the same issue, however now its complaining, or getting hung up on, my esp8266 wifi library. Got any Ideas? this is what happens:

Using library ESP8266WiFi at version 1.0 in folder: C:\Users\david\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\libraries\ESP8266WiFi
exit status 1
Error compiling for board Adafruit HUZZAH ESP8266.

User avatar
bbonen
 
Posts: 3
Joined: Wed Mar 22, 2017 5:14 pm

Re: Adabox003 error compiling

Post by bbonen »

I do not have very much experience in this, but what I can suggest is:
Try it on a different computer
Try reinstalling the library
Try rebooting your computer

User avatar
MOJOJOJOD
 
Posts: 1
Joined: Fri Mar 24, 2017 12:28 am

Re: Adabox003 error compiling

Post by MOJOJOJOD »

Awesome! Thanks for this! I will try this fix later, it was bugging the mess outta me.

User avatar
Nisa
 
Posts: 3
Joined: Sun Feb 08, 2015 6:01 pm

Re: Adabox003 error compiling

Post by Nisa »

Thank you for posting this, was my missing piece to getting that sketch to work.

May I ask what led you down that path to finding it?

Thank you in advance for your information

User avatar
segmentation
 
Posts: 8
Joined: Wed Jan 11, 2017 8:34 pm

Re: Adabox003 error compiling

Post by segmentation »

Verified the same. The tutorials don't seem to mention that these two libraries are needed as well. Might be good to update them?

User avatar
jiambor
 
Posts: 2
Joined: Sat Mar 25, 2017 10:58 pm

Re: Adabox003 error compiling

Post by jiambor »

Thanks for that. I was stuck on that for a while, but now I am getting

\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:26:4: error: #error "This sketch requires Adafruit MQTT Library v0.17.0 or higher. Please install or upgrade using the Library Manager."

#error "This sketch requires Adafruit MQTT Library v0.17.0 or higher. Please install or upgrade using the Library Manager."

But when I look in the library manager, it says I have 0.17.0 installed.

User avatar
jiambor
 
Posts: 2
Joined: Sat Mar 25, 2017 10:58 pm

Re: Adabox003 error compiling

Post by jiambor »

Fixed my issue by uninstalling the Arduino IDE and deleting the Arduino folder in my Documents folder. I then reinstalled the Arduino IDE and the libraries. Was able to compile\pass the check after that.

Locked
Please be positive and constructive with your questions and comments.

Return to “AdaBox! Show us what you made!”