Send the response to a write request.
#include <btapi/btgattsrv.h>
int bt_gatt_srv_send_write_rsp(int instance, const char *addr, uint8_t type, uint16_t handle, bt_gatt_srv_att_error_t error)
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 the write was successful, otherwise indicate the error that has occurred.
This can be performed within the bt_gatt_srv_write_request_cb() callback function or from another thread.