Any time!
Yes. This is correct way.
I do not completelly undersand what you mean. But I think you need the following.
Declare variables in global section
Dim Device as BFBluetoothDeviceX
Then in procedure write following code
Set Device = BFBluetoothDiscoveryX.SelectDevice(False)
if TypeName(Device) <> "Nothing" then
BFBluetoothSerialPortClientX.Address = Device.Address
BFBluetoothSerialPortClientX.Open
end if
Then you can use Device variable in any place of your code whitout preveously selecting the device.
Also you can use OnDisconnect event to detect when remote device disconnected.
P.S. If I not answer to your question, please re-ask. Thank you
