[GATT Server] Delivery the specific error code to central device 16/140616/1 accepted/tizen/4.0/unified/20170816.013913 accepted/tizen/4.0/unified/20170816.020257 accepted/tizen/unified/20170727.190509 submit/tizen/20170725.234514 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Tue, 25 Jul 2017 14:59:59 +0000 (20:29 +0530)
committerGowtham Anandha Babu <gowtham.ab@samsung.com>
Tue, 25 Jul 2017 14:59:59 +0000 (20:29 +0530)
[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>
src/bluetooth-common.c

index 7cf1d62..a7fb862 100644 (file)
@@ -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;
                }