Fixes security permissions for characteristics which only have the WRITE_WITHOUT_RESPONSE (but no WRITE) prop defined.

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
NormanPohl
Date:
Thu Nov 06 10:00:52 2014 +0000
Parent:
69:61da91a52bd6
Commit message:
Allow writes also for characteristics which only support WRITE_WITHOUT_RESPONSE.

Changed in this revision

btle/custom/custom_helper.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 61da91a52bd6 -r 33f9dff62afe btle/custom/custom_helper.cpp
--- a/btle/custom/custom_helper.cpp	Tue Nov 04 10:42:27 2014 +0000
+++ b/btle/custom/custom_helper.cpp	Thu Nov 06 10:00:52 2014 +0000
@@ -221,7 +221,7 @@
         BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);
     }
 
-    if (char_props.write) {
+    if (char_props.write || char_props.write_wo_resp) {
         BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);
     }