Clean up resources used by the library.
Library:libbtapi (For the qcc command, use the -l btapi option to link against this library)
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.
0 when de-initialization is completed.
Last modified: 2014-06-24