bt_gatt_srv_read_req_cb

This definition has been deprecated.

Synopsis:

#include <btapi/btgattsrv.h>
 
typedef void(* bt_gatt_srv_read_req_cb)(int instance, const char *bdaddr, uint8_t type, uint16_t handle, uint16_t len, void *userData);

Since:

BlackBerry 10.2.0

Arguments:

instance

The identifier used to reference the service.

bdaddr

The address of the remote Bluetooth device.

type

The device type identifier. Refer to constants prefixed with BT_DEVICE_TYPE_.

handle

The handle of the attribute which is being read from.

len

The length of data that is being requested.

userData

Pointer to user data passed in during the connection request.

Library:

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

Description:

Deprecated:

BlackBerry 10.3.0. Use bt_gatt_srv_read_request_cb instead.

A call to bt_gatt_srv_send_read_rsp() must be made to accept or reject the request. This can be done either from within or outside the callback.