|
This function checks if the device is discoverable, i.e. visible to other devices.
Input:
None.
Returns: INT
1
|
-
|
|
|
The device is visible
|
0
|
-
|
_BT_ERR_NOT_SUPPORTED
|
|
The device is not visible or the API is not supported.
|
-1
|
-
|
_BT_ERR_NOT_OPEN
|
|
The adapter is not powered(see btPower).
|
-5
|
-
|
_BT_ERR_NO_ADAP
|
|
Could not find adapter.
|
Declaration:
FUNCTION btIsDiscoverable : INT;
Example:
INCLUDE rtcu.inc
PROGRAM test;
btPower();
BEGIN
...
IF btIsDiscoverable() = 1 THEN
...
END_IF;
.
...
END;
END_PROGRAM;
|