The callback prototype to indicate that a remote device has requested to read data from the given handle.
#include <btapi/btgattsrv.h>
typedef void(* bt_gatt_srv_read_request_cb)(int instance, const char *bdaddr, uint8_t type, uint16_t handle, uint16_t offset, uint16_t len, void *userData);
BlackBerry 10.3.0
The identifier used to reference the service.
The address of the remote Bluetooth device.
The device type identifier. Refer to constants prefixed with BT_DEVICE_TYPE_.
The handle of the attribute which is being read from.
The offset where the read should be performed.
The length of data that is being requested.
A pointer to the user data that was passed in during the connection request.
You must call bt_gatt_srv_send_read_rsp() to accept or reject the request. This can be done from either within or outside the callback.