ble_att_svr_read_local

int
ble_att_svr_read_local(
          uint16_t   attr_handle,
    struct os_mbuf **out_om
)

Description

Reads a locally registered attribute. If the specified attribute handle coresponds to a GATT characteristic value or descriptor, the read is performed by calling the registered GATT access callback.

Parameters

ParameterDescription
attr_handleThe 16-bit handle of the attribute to read.
out_omOn success, this is made to point to a newly-allocated mbuf containing the attribute data read.

Returned values

ValueCondition
0Success.
ATT return codeThe attribute access callback reports failure.
Core return codeUnexpected error.