Initialize resources required for the Generic Attribute (GATT) server.
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.
EOK when the initialization is successful, -1 with the errno set otherwise. The error codes that can be returned are as follows:
- 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: 2013-09-30