mirror of https://github.com/ARMmbed/mbed-os.git
allow writes at an offset
parent
1b78b46a73
commit
cde0e6b183
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue