Function WriteCharacteristic

Synopsis

#include <bta/include/bta_gatt_queue.h>

static void WriteCharacteristic(uint16_t conn_id, uint16_t handle, std::vector< uint8_t > value, tGATT_WRITE_TYPE write_type, GATT_WRITE_OP_CB cb, void *cb_data)

Description

No description yet.

Source

Lines 168-179 in bta/gatt/bta_gattc_queue.cc. Line 42 in bta/include/bta_gatt_queue.h.

void BtaGattQueue::WriteCharacteristic(uint16_t conn_id, uint16_t handle,
                                       std::vector<uint8_t> value,
                                       tGATT_WRITE_TYPE write_type,
                                       GATT_WRITE_OP_CB cb, void* cb_data) {
  gatt_op_queue[conn_id].push_back({.type = GATT_WRITE_CHAR,
                                    .handle = handle,
                                    .write_type = write_type,
                                    .write_cb = cb,
                                    .write_cb_data = cb_data,
                                    .value = std::move(value)});
  gatt_execute_next_op(conn_id);
}





Add Discussion as Guest

Log in to DocsForge