ble_att_svr_write_local() function
Writes a locally registered attribute. This function consumes the supplied mbuf regardless of the outcome. If the specified attribute handle corresponds to a GATT characteristic value or descriptor, the write is performed by calling the registered GATT access callback.
Arguments
attr_handle
The 16-bit handle of the attribute to write.
om
The value to write to the attribute.
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.