Change the property of IAS characteristic 16/162516/1
authorinjun.yang <injun.yang@samsung.com>
Mon, 20 Nov 2017 04:20:27 +0000 (13:20 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 4 Dec 2017 05:20:56 +0000 (14:20 +0900)
[Problem] Write property is not permitted on IAS
[Cause & Measure] Change the property as per IAS specification.
  Write -> WriteWithoutResponse property

Change-Id: I22687ea06359035913de687a7f474be5f1a57125
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
profiles/proximity/immalert.c

index d69eae4..1032ccc 100644 (file)
@@ -320,8 +320,8 @@ void imm_alert_register(struct btd_adapter *adapter)
          */
         bt_uuid16_create(&uuid, ALERT_LEVEL_CHR_UUID);
         charc = gatt_db_service_add_characteristic(service, &uuid, BT_ATT_PERM_WRITE,
-                                               BT_GATT_CHRC_PROP_WRITE,
-                                                NULL,
+                                               BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP,
+                                               NULL,
                                                imm_alert_alert_lvl_write, imadapter);
        if (!charc)
                goto err;