bt_gatt_read_value_cb

The callback prototype to indicate that bt_gatt_read_value_async has completed.

Synopsis:

#include <btapi/btgatt.h>
 
typedef void(* bt_gatt_read_value_cb)(int instance, uint16_t handle, uint16_t offset, uint8_t *data, uint16_t size, uint8_t more, bt_gatt_att_error_t error, void *user_data);

Arguments:

instance

The identifier used to reference the connected primary service.

handle

The handle of the value to be read.

offset

The offset to begin reading from.

data

A pointer to the data that was read.

size

The size of the data array.

more

Flag to indicate if there is more data to be read.

error

The ATT result of the operation.

user_data

The pointer to be returned when the callback is executed.

Since:

BlackBerry 10.3.0

Library:

libbtapi (For the qcc command, use the -l btapi option to link against this library)

Description: