allow writes at an offset

pull/13449/head
Paul Szczeanek 2020-08-18 08:59:00 +01:00
parent 1b78b46a73
commit cde0e6b183
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ ble_error_t GattServer::insert_characteristic_value_attribute(
} }
if (properties & WRITABLE_PROPERTIES) { if (properties & WRITABLE_PROPERTIES) {
attribute_it->settings |= ATTS_SET_WRITE_CBACK; attribute_it->settings |= ATTS_SET_WRITE_CBACK;
attribute_it->settings |= ATTS_SET_ALLOW_OFFSET;
} }
if (value_attribute.getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) { if (value_attribute.getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
attribute_it->settings |= ATTS_SET_UUID_128; attribute_it->settings |= ATTS_SET_UUID_128;