
Chapter 18. Bluetooth
495
Function #12 .fcBTGetStt
Read connection status
Syntax: CALL "BT.FN3" .fcBTGetStt STATUS%
Description: This function reads the current connection status.
Parameters: (None)
Returned value: STATUS% Current connection status
STATUS%
Current Connection Status
0 Not connected.
1
Not connected.
Connection broken by the other end.
2 Connected.
3 Connected (in power-saving mode.)
4 Not connected. BHT power off.
Note: If the BHT in connection with a remote device is disconnected by the
device, "1" (Not connected. Connection broken by the other end) is
returned to STATUS%. If the BHT is turned off, "4" (Not connected. BHT
power off) is returned. In either of these cases, close the Bluetooth
communications device file once and then open it.
Run-time errors:
Error code Meaning
F0h Mismatch parameter number
F1h Mismatch parameter type
Commentaires sur ces manuels