Disconnect the link and deregister the Serial Port Profile (SPP) server.
#include <btapi/btspp.h>
int bt_spp_close_server(char *service_uuid)
BlackBerry 10.0.0
The UUID of the service to deregister.
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().