Hi, I am working with XBEE in API mode and frame data requires values larger than 0x7F. "IE:0xA2"
When I tried with Chr(0xA2), but it made a negative two byte number.
Finally I've tried making a list to store the whole frame and then converted it to bytes, but it sent 4 byte values.
Dim StreamTX(Frame.Size) As Int
For i= 0 To Frame.Size-1
StreamTX(i)=Bit.And(0xff,Frame.Get(i))
Next
by=bc.IntsToBytes(StreamTX)
Main.AStreams.Write(by)
StreamTX(): 0x7E, 0x00, 0x23, 0x10, 0x01, 0x00, 0x13, 0xA2, 0x00, 0x41, 0x7B, 0x32
This is the serial output
00 00 00 7E 00 00 00 00 00 00 00 23 00 00 00 10 00 00 00 01 00 00 00 00
00 00 00 13 00 00 00 A2 00 00 00 00 00 00 00 41 00 00 00 7B 00 00 00 32
Is there a way to send only one byte? Thanks