ble_att_svr_read_local() function
Reads a locally registered attribute. If the specified attribute handle corresponds to a GATT characteristic value or descriptor, the read is performed by calling the registered GATT access callback.
Arguments
attr_handle
The 16-bit handle of the attribute to read.
out_om
On success, this is made to point to a newly-allocated mbuf containing the attribute data read.
Return value
0 on success; NimBLE host ATT return code if the attribute access callback reports failure; NimBLE host core return code on unexpected error.