bt_spp_deinit()

Clean up resources used by the library.

Synopsis:

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

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 closes all connections and services created by the user and cleans up resources initialized by bt_spp_init(). Normally all the resources are internally freed if the user calls bt_spp_close() for the client side, bt_spp_close_server() for the server side, or POSIX close() for both. If, for any reason, a service or connection might not be properly closed, you can close it by calling this function. Note that this behaviour is different from that of the versions before BlackBerry 10.3.0, where bt_spp_deinit() would fail in case of any active connection pending.

Returns:

0 when de-initialization is completed.

Last modified: 2014-06-24



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

comments powered by Disqus