MySensor.h error
-
Hi Everybody,
What's wrong with this library? I'am trying everything (replacing the IDE, the library, type of board, etc) without success.
Could any one help me?
Thank you very much!
Nicolas**Arduino:1.6.9 (Windows 10), Tarjeta:"Arduino/Genuino Uno"
C:\Users\Nicolás RodrÃguez To\Documents\Arduino\IrrigationController\IrrigationController.ino:88:22: fatal error: MySensor.h: No such file or directory
compilation terminated.
exit status 1
Error compilación en tarjeta Arduino/Genuino Uno.Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.**
-
@nicorodri did you install librairies as mentionned here in section "Installing the sensor libraries"
-
@nicorodri I ran into the same problem today, when I tried to compile the sketch in the API documentation. There might be a bug in that sketch. It's saying:
#include <MySensor.h>
Which should be:
#include <MySensors.h>
At least it got it working for me. Maybe @hek is able to verify the bug and adjust the example sketch stated here https://www.mysensors.org/download/sensor_api_20
-
the header file is renamed to MySensors.h now, to comply with the library name (which is MySensors)
I believe that the examples on github (here and here) should be changed to use the new file name..
-
@tbowmo glad that it's confirmed. I was beginning to think I'm getting crazy
-
@theol, Thanks, I'll update the main site accordingly.
Edit: done
-
@hek Thank you. Does this name change mean, that I can keep 1.5 and 2.0 beside eachother? Would be great and handy for the next couple of months/weeks
-
No, wouldn't recommend it. Besides the folder name was MySensors in 1.5.4 as well.
https://github.com/mysensors/MySensors/tree/1.5.4/libraries/MySensors