|
This function makes the adapter stop scanning for other devices.
Input:
None.
Returns: INT
1
|
-
|
_BT_OK
|
|
Success
|
0
|
-
|
_BT_ERR_NOT_SUPPORTED
|
|
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.
|
-13
|
-
|
_BT_ERR_STATE
|
|
Scanning is already stopped.
|
Declaration:
FUNCTION btScanStop : INT;
Example:
INCLUDE rtcu.inc
PROGRAM test;
btPower();
BEGIN
...
btScanStop();
...
END;
END_PROGRAM;
|