From 0e97774e4a370694e60c433e45d25bb0d1a0bec9 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 17 Jul 2014 10:42:48 +0200 Subject: [PATCH] android/gatt: Add GATT_PERM_NONE define Use this permission if no read and write is allowed. It is now set in service change characteristic. --- android/gatt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 4d16d1edf..6253d2849 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -68,6 +68,7 @@ #define GATT_PERM_WRITE_AUTHORIZATION 0x00000800 #define GATT_PERM_WRITE_SIGNED 0x00010000 #define GATT_PERM_WRITE_SIGNED_MITM 0x00020000 +#define GATT_PERM_NONE 0x10000000 #define GATT_CONN_TIMEOUT 2 @@ -6393,7 +6394,7 @@ static void register_gatt_service(void) bt_uuid16_create(&uuid, GATT_CHARAC_SERVICE_CHANGED); service_changed_handle = gatt_db_add_characteristic(gatt_db, - srvc_handle, &uuid, 0, + srvc_handle, &uuid, GATT_PERM_NONE, GATT_CHR_PROP_INDICATE, NULL, NULL, NULL); -- 2.47.3