diff options
author | Gowtham Anandha Babu <gowtham.ab@samsung.com> | 2017-07-25 20:29:59 +0530 |
---|---|---|
committer | Gowtham Anandha Babu <gowtham.ab@samsung.com> | 2017-07-25 20:29:59 +0530 |
commit | b0d8700be3706be97444677825fec1ee420953ec (patch) | |
tree | 14dcb4886a4d70098764e44e84a520d043af2963 | |
parent | 62a59e754fac129280f139c815d6709e3234ae2a (diff) | |
download | bluetooth-b0d8700be3706be97444677825fec1ee420953ec.tar.gz bluetooth-b0d8700be3706be97444677825fec1ee420953ec.tar.bz2 bluetooth-b0d8700be3706be97444677825fec1ee420953ec.zip |
[GATT Server] Delivery the specific error code to central devicesubmit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen/20170725.234514accepted/tizen/unified/20170727.190509accepted/tizen/4.0/unified/20170816.020257accepted/tizen/4.0/unified/20170816.013913
[Problem] Unalbe to pass application error code to central device
[Cause & Measure] Pass the specific error code to central device
[Checking Method] Reponse with the specific error to central device
Change-Id: I169fa6456ad3421029868209c1df7850a2e5104f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
-rw-r--r-- | src/bluetooth-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 7cf1d62..a7fb862 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -2173,7 +2173,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us if (cb == NULL) { bluetooth_gatt_send_response(read_req->req_id, BLUETOOTH_GATT_ATT_REQUEST_TYPE_READ, - BLUETOOTH_ERROR_INTERNAL, 0, NULL, 0); + BLUETOOTH_ATT_ERROR_INTERNAL, 0, NULL, 0); return; } @@ -2197,7 +2197,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us bluetooth_gatt_send_response(value_change->req_id, BLUETOOTH_GATT_ATT_REQUEST_TYPE_WRITE, - BLUETOOTH_ERROR_INTERNAL, 0, NULL, 0); + BLUETOOTH_ATT_ERROR_INTERNAL, 0, NULL, 0); return; } |