ble_gattc_write

int
ble_gattc_write(
            uint16_t  conn_handle,
            uint16_t  attr_handle,
      struct os_mbuf *txom,
    ble_gatt_attr_fn *cb,
                void *cb_arg
)

Description

Initiates GATT procedure: Write Characteristic Value. This function consumes the supplied mbuf regardless of the outcome.

Parameters

ParameterDescription
conn_handleThe connection over which to execute the procedure.
attr_handleThe handle of the characteristic value to write to.
txomThe value to write to the characteristic.
cbThe function to call to report procedure status updates; null for no callback.
cb_argThe optional argument to pass to the callback function.

Returned values

ValueCondition
0Success.
Core return codeUnexpected error.