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!!!
Need Help with Xbee XBP24-B packet transmission
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- don007
- Posts: 1
- Joined: Sat Nov 24, 2012 9:37 am
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Need Help with Xbee XBP24-B packet transmission
Strings are composed of characters which are 8-bit bytes. C++ will allow you to cast a character to a uint8_t.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?
http://www.cplusplus.com/doc/tutorial/typecasting/
Please be positive and constructive with your questions and comments.