Retrieve the Attribute Protocol Maximum Transmit Unit (ATT_MTU) for a provided handle.
Synopsis:
#include <btapi/btgatt.h>
int bt_gatt_get_mtu(int instance)
Arguments:
- instance
-
The identifier used to reference the connected primary service.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Returns:
The MTU value for the given instance when the function is completed successfully,
-1 with the
errno set otherwise. The error codes that can be returned are as follows:
- EDEADLK: A potential deadlock has been avoided.
- EINVAL: The arguments passed are invalid or the connection to the remote Bluetooth-enabled device is unavailable.
- ENODEV: Unable to find the service connection defined by the instance argument.
- ENOMEM: Insufficient memory to perform the request.
- ESRVRFAULT: An internal error has occurred.