BLE: Fix security requirements in GattCharacteristic.

pull/6932/head
Vincent Coubard 2018-05-15 12:17:34 +01:00
parent 2860365a3c
commit 2c7ed993ec
1 changed files with 1 additions and 1 deletions

View File

@ -1412,7 +1412,7 @@ public:
writeAuthorizationCallback(),
_update_security(SecurityRequirement_t::NONE) {
_valueAttribute.allowWrite(isWritable(_properties));
_valueAttribute.allowWrite(isReadable(_properties));
_valueAttribute.allowRead(isReadable(_properties));
if (_properties & BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES) {
_valueAttribute.setWriteSecurityRequirement(