Hey guys,
I know how this topic has been beat to death but I can't, for the life of me figure out how to make this happen.
My tablet needs to communicate with a BT device that is set-up as the master and configured to auto-connect/reconnect.
In the Android "RFO Basic", I simply use the following:
I wonder if there is a bare-bones example that will let me achieve the same in B4A?
Of course, I understand that the B4A equivalent will be event driven.
I know how this topic has been beat to death but I can't, for the life of me figure out how to make this happen.
My tablet needs to communicate with a BT device that is set-up as the master and configured to auto-connect/reconnect.
In the Android "RFO Basic", I simply use the following:
B4X:
BT.Open
'No need to "BT.Connect" because the other device is auto-connecting
'"to the last paired device"
Do
BT.Status s
If s = 3
'I can now send/receive data. Moving out of range makes 's' < 3 so I simply wait
'for s = 3 and comms resume.
Endif
Until
BT.Close
I wonder if there is a bare-bones example that will let me achieve the same in B4A?
Of course, I understand that the B4A equivalent will be event driven.