Bluetooth Library

Use the C/C++ APIs to integrate Bluetooth capabilities into your applications.

Each Bluetooth library module has its own independent initialization and cleanup functions, for example, bt_device_init() and bt_device_deinit() in btdevice.h and bt_gatt_srv_init() and bt_gatt_srv_deinit() in btgattsrv.h. If an application needs to call any of the API functions in a module, it must first call the initialization function in that module; it must call the cleanup function when it finishes using that module.

If you need to access the device MAC address (bt_ldev_get_address()), you must request the read_device_identifying_information permission in the bar-descriptor.xml file of your app.

Last modified: 2014-05-14

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus