Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

Need Help with Xbee XBP24-B packet transmission
Moderators: adafruit_support_bill, adafruit

Need Help with Xbee XBP24-B packet transmission

by don007 on Sat Nov 24, 2012 9:40 am

I have Xbee XBP24-B module and i am using it with Arduino Uno.i want to make a packet with following configuration. it is like a structure or 2D string array. now making this kind of message is not a problem. This is a 10 field message and i think Xbee only allows uint8_t type to be sent over the air using ZBTxRequest message. So is there any API or way to send a structure of string type over the air?

Field = Datatype (max length)
1 = string field (2)
2 = string field (4)
3 = string field (8 )
4 = string field (8 )
5 = string field (8 )
6 = string field (8 )
7 = string field (10)
8 = string field (10)
9 = string field (10)
10 = string field (10)

much appreciated!!!
don007
 
Posts: 1
Joined: Sat Nov 24, 2012 9:37 am

Re: Need Help with Xbee XBP24-B packet transmission

by adafruit_support_bill on Sun Nov 25, 2012 9:51 am

This is a 10 field message and i think Xbee only allows uint8_t type to be sent over the air using ZBTxRequest message. So is there any API or way to send a structure of string type over the air?

Strings are composed of characters which are 8-bit bytes. C++ will allow you to cast a character to a uint8_t.
http://www.cplusplus.com/doc/tutorial/typecasting/

adafruit_support_bill
 
Posts: 37483
Joined: Sat Feb 07, 2009 10:11 am