bt_spp_init()

Initialize the resources required for the Bluetooth library.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

Library:

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

Description:

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.

Returns:

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