TX and RX question

145 views
Skip to first unread message

懿修李

unread,
May 8, 2013, 11:18:19 AM5/8/13
to lib...@googlegroups.com
hi attie

if i want to get the RX package data 
i must use the conCallbackGet()?? 
have another way can get the package data without conCallbackGet()??

i have multiple receivers/transmitters(router) and a transmitters (coordinator)(PC)  
xbee mode is s2

can change the tx address without use the xbee_conNew()??

sorry my english isnt good.

thank.

YI-HSIU

Attie Grande

unread,
May 8, 2013, 1:15:19 PM5/8/13
to 懿修李, libxbee
Hello,

You can either use callbacks to retrieve data (see the sample here) or you can use xbee_conRx() - man page here.

The Tx address is tied to the module, so you can only transmit a message from the module's address.
If you wanted to receive data from multiple remote modules, then you should use xbee_conNew() once for each remote module.

If you really want to have all of the data coming into a single connection (not advised), you can set the catchall flag... see here.

I hope that helps!

Attie


--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/ZmUln-CZLyMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

懿修李

unread,
May 15, 2013, 5:38:29 AM5/15/13
to lib...@googlegroups.com, 懿修李
thank Attie

i want to use the conRX() to retrieve data 
print the pkt's address and data 

i try write some code but i not success can gave me a simple?

thank

YI-HSIU

Attie Grande

unread,
May 16, 2013, 4:57:51 PM5/16/13
to 懿修李, libxbee
Hello,

Please see the new sample code that I've uploaded:

I hope it helps.
Attie

YI-HSIU

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages