ble_att_svr_write_local

int
ble_att_svr_write_local(
          uint16_t  attr_handle,
    struct os_mbuf *om
)

Description

Writes a locally registered attribute. This function consumes the supplied mbuf regardless of the outcome. If the specified attribute handle coresponds to a GATT characteristic value or descriptor, the write is performed by calling the registered GATT access callback.

Parameters

ParameterDescription
attr_handleThe 16-bit handle of the attribute to write.
omThe value to write to the attribute.

Returned values

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