Post a new topicPost a reply Page 1 of 1   [ 4 posts ]
Author Message
 Post subject: Zigbee send/recieve example compilation error
PostPosted: Wed Jan 04, 2012 6:59 pm 

Joined: Fri Nov 25, 2011 2:28 pm
Posts: 62
Hello, and happy new year.

I'm have a peculiar compilation error and I would appreciate some advice.

When I try to compile the example "WaspXBeeZB_2_sending_receiving" I get a undeclared error on line 133. `error: 'xbee' was not declared in this scope.

The line in question:
XBee.println(xbee.packet_finished[xbee.pos-1]->SD,HEX);
appears the same online as does the rest of the code.

I re-downloaded and overwrote my api's etc and have only edited headers, and no Xbee / 802.15.4 libraries at all.

Thanks.


Top
 Profile  
 
 Post subject: Re: Zigbee send/recieve example compilation error
PostPosted: Thu Jan 05, 2012 11:12 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7455
Hi,

Yes, there have been changes in teh API library, and this example has not been updated. Please, change the object called "xbee" for "xbeeZB" and everything will be solved. For example:
Code:
XBee.println(xbee.packet_finished[xbee.pos-1]->SD,HEX);

should be
Code:
XBee.println(xbeeZB.packet_finished[xbeeZB.pos-1]->SD,HEX);


Regards


Top
 Profile  
 
 Post subject: Re: Zigbee send/recieve example compilation error
PostPosted: Thu Jan 05, 2012 12:02 pm 

Joined: Fri Nov 25, 2011 2:28 pm
Posts: 62
Thanks, that allowed it to compile, I had tried to change it to `XbeeZB' before but had a no such member function error.

Thank you.


Top
 Profile  
 
 Post subject: Re: Zigbee send/recieve example compilation error
PostPosted: Mon Jan 09, 2012 12:44 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7455
OK, perfect!


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