Hi,
I am doing a bluetooth serial project. In that there is exchange of hex data between android and external SPP based bluetooth device. I can send data to the device using:
But I cannot receive data to android.. when I use
, it works.. but the device need to send a CR LF after each set of hex numbers.
But in our device, it cannot send CR LF, So I have to use something else.... I tried with TextReader1.ReadAll, but when it is called, the phone is not responding I need to kill the app from settings... Also the TextReader1.Read is not working... Please help.
I just need to receive a set of hex numbers (without CR LF) from the device to the phone... Please send me the code for that.
Thank you
Joby
I am doing a bluetooth serial project. In that there is exchange of hex data between android and external SPP based bluetooth device. I can send data to the device using:
B4X:
TextWriter1.Write(Chr(0x05)& Chr(0x78) & Chr(0x32))
B4X:
dat = TextReader1.Readline
But in our device, it cannot send CR LF, So I have to use something else.... I tried with TextReader1.ReadAll, but when it is called, the phone is not responding I need to kill the app from settings... Also the TextReader1.Read is not working... Please help.
I just need to receive a set of hex numbers (without CR LF) from the device to the phone... Please send me the code for that.
Thank you
Joby