Closed violachie closed 7 years ago
Did you install homie in library folder in sketch folder location? Skech folder location can be obtained from File->Preferences. There should be subfolder libraries and there should be homie located (and other needed libraries).
I find the homie libraries in folder Arduino/Portable/sketchbook/libraries/homie-esp8266-1.5.0 Same place with ArduinoJson, PubSubClient, etc (all the dependencies for homie mqtt), but i still need to include it in the code.
But all dependecies are in Arduino/Portable/sketchbook/libraries
and not in Arduino/Portable/sketchbook/libraries/homie-esp8266-1.5.0
?
The other dependencies library is in Arduino/Portable/sketchbook/libraries. So homie-esp8266-1.5.0 and PubSubClient, etc are in the same folder, Which is automatically located there by my Arduino IDE when I add .zip or via "manage libraries" menu.
What's your Arduino version?
I use wemos d1 mini
I mean the version of your Arduino IDE.
Oh sorry, now i am far from my computer. But I downloaded it about two months ago from Arduino website. I will confirm the version of my IDE as soon as I get home.
Hi @marvinroger
My arduino IDE version: 1.6.5
This is the folder where homie mqtt libraries are located
And this is the my "minimal" code for homie mqtt to run
`#include
void setup() { Homie.setup(); }
void loop() { Homie.loop(); }`
This is indeed not written in the getting started guide, but library to library dependencies was added in Arduino 1.6.6. Update your IDE to the latest version and you'll see it works. The 1.6.5 is a year old.
Oh, i see. Now i wonder where did i download arduino IDE from. Thanks for the answer, i will download the latest version.
Hi,
There are two questions i would like to ask:
I am new to this iot world, sorry if the question is so trivial. Thanks.