Function WriteDescriptor

Synopsis

#include <bta/include/bta_gatt_queue.h>

static void WriteDescriptor(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 181-192 in bta/gatt/bta_gattc_queue.cc. Line 46 in bta/include/bta_gatt_queue.h.

void BtaGattQueue::WriteDescriptor(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_DESC,
                                    .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