bt_gatt_srv_init()
Initialize resources required for the Generic Attribute (GATT) server.
Synopsis:
#include <btapi/btgattsrv.h>
int bt_gatt_srv_init(void)
Arguments:
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)Description:
The function also starts a new thread. Most callbacks invoked in the new thread are thread safe unless otherwise specified. You must call this function before calling any other functions in this file.
Returns:
- EACCESS: Insufficient permissions to initialize functionality.
- ENOMEM: Insufficient memory was available to perform the request.
- ENOTSUP: The current library version is not supported.
- ESRVRFAULT: An internal error has occurred.
Last modified: 2014-05-14