RM0x Wireless Module – API Documentation

Header image

Main page


Functions
BtLib C API functions

Functions

int btConnectNetworkProfile (const char *address, BtPanRole remoteRole)
 Establish a network connection via the PAN profile. More...
 
int btConnectSerialProfile (const char *address)
 Establish a serial connection via the SPP profile. More...
 
int btDeinit (void)
 Deinitialize the Bluetooth library. More...
 
int btDeviceDiscovery (BtDevice *devicelist, unsigned int maxDevices, unsigned int *noOfDevicesFound, unsigned long waitTime)
 Discover any discoverable remote Bluetooth devices. More...
 
int btDisconnect (const char *address)
 Disconnect from any connected Bluetooth profiles with a remote device. More...
 
int btGetConnectedDevices (BtDevice *devicelist, unsigned int maxDevices, unsigned int *noOfDevicesFound)
 Get a list of all remote Bluetooth devices with any connected profiles. More...
 
BOOL btGetDiscoverable (void)
 Get the Bluetooth modules's discoverability, i.e. whether it is visible to remote devices. More...
 
const char * btGetLocalAddress (void)
 Read the Bluetooth module's device address. More...
 
const char * btGetLocalName (void)
 Read the Bluetooth module's user friendly Bluetooth name, which is shown on other devices during discovery. More...
 
BOOL btGetPairable (void)
 Get the Bluetooth modules's pairability, i.e. whether other devices can pair with it. More...
 
int btGetPairedDevices (BtDevice *devicelist, unsigned int maxDevices, unsigned int *noOfDevicesFound)
 Get a list of all remote Bluetooth devices already paired. More...
 
const char * btGetPin (void)
 Get PIN used for legacy pairing. More...
 
unsigned short btGetVersion (void)
 Get version number of the Bluetooth library. More...
 
int btInit (const char *initScriptPath)
 Initialize the Bluetooth library. More...
 
int btPair (const char *address)
 Start a pairing procedure with a remote device. More...
 
int btRegisterCallback (BtCallback type, const void *callback)
 Register a pairing callback which will be called during pairing using the Secure Simple Pairing method. More...
 
int btRemoveDevice (const char *address)
 Remove one or several stored Bluetooth devices, along with the pairing information. More...
 
int btSetDiscoverable (BOOL discoverable)
 Set the Bluetooth modules's discoverability, i.e. whether it is visible to remote devices. More...
 
int btSetIoCapability (BtIoCapability capability)
 Set the IO capability of the Bluetooth module. More...
 
int btSetLocalName (const char *name)
 Write the Bluetooth module's user friendly Bluetooth name, which is shown on other devices during discovery. More...
 
int btSetPairable (BOOL pairable)
 Set the Bluetooth modules's pairability, i.e. whether other devices can pair with it. More...
 
int btSetPin (const char *pin)
 Set PIN used for legacy pairing. More...
 

Detailed Description






Top of page | Main page

Copyright © 2019 Beck IPC GmbH
Generated by Doxygen 1.8.15