btPairClearAll (Function)

Top  Previous  Next

Architecture:

X32 / NX32

Device support:

MX2 pro, DX4 pro, AX9 pro, MX2 turbo/encore/warp, AX9 turbo

Firmware version:

1.08


This function is used to remove all device pairings.

For more information about pairing, please see btConnect or btListen.

 

 

Input:

None

 

Return: INT

0

- Success.

-1

- Bluetooth library is not open.

 

Declaration:

FUNCTION btPairClearAll : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Open the Bluetooth library
btOpen(name := "RTCU MX2");
 
// Set the Pin for incoming connections
btSetPin(pin := "1234");
 
// Remove all device pairs
btPairClearAll();
 
...
 
END_PROGRAM;