Initialize the resources required for the Bluetooth library.


#include <btapi/btspp.h>
int bt_spp_init()


BlackBerry 10.0.0



libbtapi (For the qcc command, use the -l btapi option to link against this library)


This function initializes resources needed for the library to function. If you are using a version before BlackBerry 10.3.0, you must call this function before calling any other function in the library. Starting in BlackBerry 10.3.0, this function is called internally so you don't have to call it, but it's safe if you do.


0 when initialization is successful, -1 with the errno value set otherwise. An errno of ENOMEM indicates that there was insufficient memory to initialize resources. If the errno is set to any other value than what is listed, a system error has occurred.

Last modified: 2014-06-24

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

comments powered by Disqus