riot_sys::bindgen

Function ble_att_svr_write_local

Source
pub unsafe extern "C" fn ble_att_svr_write_local(
    attr_handle: u16,
    om: *mut os_mbuf,
) -> c_int
Expand description

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.

@param attr_handle The 16-bit handle of the attribute to write. @param om The value to write to the attribute.

@return 0 on success; NimBLE host ATT return code if the attribute access callback reports failure; NimBLE host core return code on unexpected error.