Libelium is offering new technical support channels, to contact with de Technical Support team to solve any issue our doubt please contact with your sales agent or visit our contact site



Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Error de Compilación coódigos de ejemplo
PostPosted: Tue Dec 16, 2014 1:55 pm 

Joined: Tue Dec 16, 2014 1:42 pm
Posts: 1
Hola,

Acabo de adquirir un kit de Open Garden para exteriores y una vez instaladas las librerias en arduino tal y como dice el manual, al intentar realizar una prueba de lectura del sensor LDR con el ejemplo que se suministra en el zip (intento leer el valor de luninosidad del gateway) me da el siguiente error de compilación

.../sketchbook/libraries/OpenGarden/RTClib.cpp: In member function ‘uint8_t RTC_DS1307::isrunning()’:
/home/oolorin/sketchbook/libraries/OpenGarden/RTClib.cpp:148:15: error: call of overloaded ‘write(int)’ is ambiguous
/usr/share/arduino/libraries/Wire/Wire.h:55:20: note: candidates are: virtual size_t TwoWire::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:49:12: note: size_t Print::write(const char*)
/home/oolorin/sketchbook/libraries/OpenGarden/RTClib.cpp: In static member function ‘static void RTC_DS1307::adjust(const DateTime&)’:
/home/oolorin/sketchbook/libraries/OpenGarden/RTClib.cpp:158:17: error: call of overloaded ‘write(int)’ is ambiguous
/usr/share/arduino/libraries/Wire/Wire.h:55:20: note: candidates are: virtual size_t TwoWire::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:49:12: note: size_t Print::write(const char*)
sketchbook/libraries/OpenGarden/RTClib.cpp:166:17: error: call of overloaded ‘write(int)’ is ambiguous
/usr/share/arduino/libraries/Wire/Wire.h:55:20: note: candidates are: virtual size_t TwoWire::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:49:12: note: size_t Print::write(const char*)
/home/oolorin/sketchbook/libraries/OpenGarden/RTClib.cpp: In static member function ‘static DateTime RTC_DS1307::now()’:
/home/oolorin/sketchbook/libraries/OpenGarden/RTClib.cpp:172:15: error: call of overloaded ‘write(int)’ is ambiguous
/usr/share/arduino/libraries/Wire/Wire.h:55:20: note: candidates are: virtual size_t TwoWire::write(uint8_t)
/usr/share/arduino/hardware/arduino/cores/arduino/Print.h:49:12: note: size_t Print::write(const char*)

El ejemplo está dentro de Ejemplos > Open Garden > Read Gateway Sensors > Read Luminosity

Me podeis echar una mano?
Gracias de antemano.


Top
 Profile  
 
 Post subject: Re: Error de Compilación coódigos de ejemplo
PostPosted: Wed Dec 17, 2014 8:50 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hola Carlos Flores,

¿Es un Arduino nuevo? ¿Qué estructura de carpetas has creado?

Recuerda que no debes tener ninguna de las librerías que usa OpenGarden en tu carpeta de librerías.

Un saludo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.