btScanStop (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-200, NX-400, NX-900

Firmware version:

1.10.00

 


 

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;
 
// Turn on the Bluetooth library
btPower();
 
BEGIN
  ...
  // Stop scanning for devices

  btScanStop();
  ...
END;
 
END_PROGRAM;