Humidity and Temp examples. Where are they?
edsteve last edited by
in the Arduino IDE i am missing the Dallas Temperature examples and the humidity examples. I think everybody using it. Why is it not there?
So confusing with all different libraries and versions for beginners.... Would be good if at least the examples are complete with the most used sketches.
Or am i missing something?
@edsteve some of the examples require external libraries. The Arduino IDE can't handle one library (MySensors in our case) needing something from another library (the Dht library for example). So if the temperature example was included in MySensors, it would not work unless the user manually installed the Dht library. In some cases, such as with the Dht library, some versions are not compatible with the MySensors code. So in addition to knowing to install the Dht library manually, the user would also need to know the correct version of the library and how to install that exact version.
The example sketch for the temperature sensor is available on the same page as the wiring guide for that sensor, https://www.mysensors.org/build/temp
On that page are also instructions on how to get the correct version of the Dht library.
Edit: oops you beat me to it @mfalkvidd
edsteve last edited by
Okay. So that means all the MySensor examples in the Arduino IDE only use Mysensors.h and no external library.
Thx for the info. That explains it.
Always look at the includes in the beginning of the sketch, if you don't have that file in the library folder, you need to download the appropriate library and library manager will help you find it most of the time
ludoarchi last edited by
where do we have to copy/paste the folder MysensorArduinoExemplesMaster ?
Just install mysensors library from library manager and the examples will be also showing in the arduino ide
@gohan not for the MySensorsArduinoExamples.
But I am not sure where to paste it.
my best guess would be in Arduino\libraries\MySensors\examples if you want to see them in the Arduino Ide as examples under the MySensors section
I think so too. To be clear, this is my guess:
MySensorsArduinoExamples/libraries/* goes into Arduino/libraries/
MySensorsArduinoExamples/examples/* goes into Arduino/libraries/MySensors/examples/
kimot last edited by
Look at "MockMySensors" sketch in MySensors example library.
All type of sensors has got presentation and sending or receiving function examples for them there.