Send the response to a read request.
#include <btapi/btgattsrv.h>
int bt_gatt_srv_send_read_rsp(int instance, const char *addr, uint8_t type, uint16_t handle, bt_gatt_srv_att_error_t error, const uint8_t *value, uint16_t len)
BlackBerry 10.2.0
The instance number representing the local GATT service.
The address of the remote device which the response is to be sent to.
The device type identifier. Refer to constants prefixed with BT_DEVICE_TYPE_.
The handle of the attribute that the response is for.
Set to BT_ATT_ERROR_NONE if value is valid, otherwise indicate the error that has occurred.
The binary data to be sent back to the remote device.
The length of data to be sent back to the remote device.
This can be performed within the bt_gatt_srv_read_request_cb() callback function or from another thread.