I have a seekbar, which needs to send it's value over bluetooth.
I'm paired up and using the serial tutorial I think I'm nearly there.
But the serial tutorial sends text both ways, I just need to send a hex byte (seekbar.Value in Hexdecimal)) from tablet to PC.
Dim buffer() As Byte = Array As Byte(123) 'creates an array of bytes with one byte. The byte decimal value is 123.
It will be very difficult to use decimal to represent hex.. it will need high level of imagination or additional conversion code.
Is it possible to do something like:
B4X:
Dim buffer() As Byte = Array As Byte(7F, 2D, D3, 01) 'INSTEAD OF THE ABOVE CODE?