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   [ 5 posts ]
Author Message
 Post subject: Error when programming garden node
PostPosted: Wed Jul 24, 2019 12:54 pm 

Joined: Wed Jul 24, 2019 12:48 pm
Posts: 5
Hi, I sm new to the opengarden kit, and I am trying to program a node with the simple sketch found on the side (see at the bottom of message temperature sensor). I get the following error messages when trying to compile the sketch with the ATtyne 84 board selected in the IDE.
I am using IDE 1.8.9 on osx, and I installed the opengrden libraries V2.4 in the Library folde.
Can Anyone help ?
Thanks !
Alain

In file included from /Users/knc/Documents/Arduino/libraries/OpenGardenNode/OpenGardenNode.h:32:0,
from /Users/knc/Documents/Arduino/OPenGardenTempSensor/OPenGardenTempSensor.ino:25:
/Users/knc/Documents/Arduino/libraries/OpenGardenNode/Ports.h:697:49: error: 'Serial' was not declared in this scope
InputParser (byte size, Commands*, Stream& =Serial);
^
/Users/knc/Documents/Arduino/libraries/OpenGardenNode/Ports.h:698:60: error: 'Serial' was not declared in this scope
InputParser (byte* buf, byte size, Commands*, Stream& =Serial);
^
exit status 1
Error compilando para la tarjeta ATtiny24/44/84.

THIS IS THE SKETCH:

* Version: 2.2
* Design: David Gascón
* Implementation: Victor Boria, Luis Martin & Jorge Casanova
*/

#include <OpenGardenNode.h>

Payload nodePacket;

void setup() {
//Initialize the transceiver
OpenGardenNode.initRF(1); //Write here the number for your node ID (1, 2 or 3)
OpenGardenNode.initSensors(); //Initialize sensors power
}

void loop() {
OpenGardenNode.sensorPowerON(); //Turns on the sensor power supply
OpenGardenNode.readSensors(); //Read all node sensors
OpenGardenNode.sensorPowerOFF(); //Turns off the sensor power supply

OpenGardenNode.sendPackage(); // Send data via RF asking for ACK
OpenGardenNode.nodeWait(6); //Enter low power mode for 60 seconds (max: 60 seconds)
}


Top
 Profile  
 
 Post subject: Re: Error when programming garden node
PostPosted: Fri Jul 26, 2019 11:27 am 

Joined: Wed Jul 24, 2019 12:48 pm
Posts: 5
SOLVED
Hi again, I found out that the problem was due to the ATtiny library. If you are using a current version of the Arduino IDE, you should install the ATtiny library from drazzy (http://drazzy.com/package_drazzy.com_index.json) rather than the older library from Mellis.

I can now program the ATtyni but I am running into a new problem, and will open e new thread....


Top
 Profile  
 
 Post subject: Re: Error when programming garden node
PostPosted: Fri Jul 26, 2019 12:25 pm 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

Glad to hear that you solved the issue!

The libraries were developed using Arduino 1.0.5. or 1.0.6, they are old but we recommend using those version to avoid incompatibilities. You can find more information in the following guide
https://www.cooking-hacks.com/documenta ... onitoring/

Regards


Top
 Profile  
 
 Post subject: Re: Error when programming garden node
PostPosted: Fri Jul 26, 2019 12:40 pm 

Joined: Wed Jul 24, 2019 12:48 pm
Posts: 5
Hi,
Yes, I read that the libraries were developed for the arduino 1.0.5, my problem is that for some reason this version will not install on my mac with osx 10.14.5. If using Arduino 1.0.5 or 1.0.6 is the only way to make this work, I will look into finding a solution.
Thanks


Top
 Profile  
 
 Post subject: Re: Error when programming garden node
PostPosted: Tue Jul 30, 2019 10:23 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
We're sorry for the inconveniences.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 5 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:
cron


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.