I've read so many posts I'm confused. Every answer is different in some way. I just want to send a 0xa4 and a (0xa7 & 0x00) Using Astream.write I guess I'm to used to other compilers but 0x?? is normally understood as a hex word. 16 bits, two bytes.
I'm new to B4A so please excuse me but as I said I've searched for a long time and found many ways to do this. None work as I expect. I can send o-scope image if needed. I'm really missing something.
Dim b As String
B = "0XA4"
AStream.Write(BConv.HexToBytes (b))
I've tried every byets to hex, hex to bytes ect....none actually send the correct value.
I know I've made an error so ples point me in the right direction
Thank you
I'm new to B4A so please excuse me but as I said I've searched for a long time and found many ways to do this. None work as I expect. I can send o-scope image if needed. I'm really missing something.
Dim b As String
B = "0XA4"
AStream.Write(BConv.HexToBytes (b))
I've tried every byets to hex, hex to bytes ect....none actually send the correct value.
I know I've made an error so ples point me in the right direction
Thank you