bt: Bluetooth functions

Top  Previous  Next

The Bluetooth library functions are used to discover, connect, transmit, and receive data in wireless fashion from the external Bluetooth smart antenna.

Connect the Bluetooth smart antenna to the device and use the functions listed below to make wireless connections, send, and receive data.

 

Note: The NX32L devices feature an internal Bluetooth module, which is not compatible with this API, but instead uses the NX32L Bluetooth API.

 


btOpen

Opens the Bluetooth module and library functions.


btClose

Closes the Bluetooth module and library functions.


btIsOpen

Gets the open status.


btSearch

Makes a search for other Bluetooth devices in the area.


btGetDeviceAddress

Gets the address of a found device.


btGetDeviceName

Gets the name of a found or connected device.


btGetDeviceType

Gets the type of a found device.


btConnect

Connects to a device.


btListen

Listens for an incoming connection.


btDisconnect

Disconnects a connected device.


btConnection

Gets the status of a connection.


btSignalLevel

Gets the signal level of a connection.


btSendData

Sends data to a connected device.


btReceiveData

Receives data from a connected device.


btSetPin

Sets the PIN for incoming connections.


btHsOpen

Opens the headset audio connection.


btHsClose

Closes the headset audio connection.


btHsConnected

Gets the audio connection status.

 

btHsRingAccept

Stops the ringing in the headset and opens the audio connection.

 

btHsRingReject

Stops the ringing in the headset and closes the audio connection.


btPairClear

Removes a specific device pairing.


btPairClearAll

Removes all device pairings.


btSetLED

Sets the status LED on the Bluetooth smart antenna.