Deregister the local service from the Generic Attribute (GATT) server.
Synopsis:
#include <btapi/btgattsrv.h>
int bt_gatt_srv_deregister_service(int instance)
Arguments:
- instance
-
The identifier used to reference the service.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Returns:
EOK when the service is successfully deregistered,
-1 with the
errno set otherwise. The error codes that can be returned are as follows:
- EDEADLK: A potential deadlock has been avoided.
- ENODEV: Unable to find the local service defined by the instance argument.
- ENOMEM: Insufficient memory was available to perform the request.
- ESRVRFAULT: An internal error has occurred.