ble_gattc_write_flat

int
ble_gattc_write_flat(
            uint16_t  conn_handle,
            uint16_t  attr_handle,
          const void *data,
            uint16_t  data_len,
    ble_gatt_attr_fn *cb,
                void *cb_arg
)

Description

Initiates GATT procedure: Write Characteristic Value (flat buffer version).

Parameters

ParameterDescription
conn_handleThe connection over which to execute the procedure.
attr_handleThe handle of the characteristic value to write to.
valueThe value to write to the characteristic.
value_lenThe number of bytes to write.
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.