bt_spp_close_server()

Disconnect the link and deregister the Serial Port Profile (SPP) server.

Synopsis:

#include <btapi/btspp.h>
 
int bt_spp_close_server(char *service_uuid)

Since:

BlackBerry 10.0.0

Arguments:

service_uuid

The UUID of the service to deregister.

Library:

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

Description:

This function requires that you use the Universally Unique Identifier (UUID) that you used to register the server. You opened the server using bt_spp_open_server() or bt_spp_open_server_ex().

Returns:

0 when the link is disconnected and the SPP server is deregistered successfully, -1 with errno set otherwise. The errno can be set to one of the following values:
  • EINVAL: An invalid argument was specified.
  • EPERM: The bt_spp_init() function has not been called or has failed.

Last modified: 2014-06-24



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

comments powered by Disqus