We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1c65c9 + 0e2f5b9 commit 6c15360Copy full SHA for 6c15360
features/FEATURE_BLE/targets/TARGET_ARM_SSG/TARGET_BEETLE/source/ArmGattServer.cpp
@@ -130,6 +130,9 @@ ble_error_t ArmGattServer::addService(GattService &service)
130
currAtt->pLen = p_char->getValueAttribute().getLengthPtr();
131
currAtt->maxLen = p_char->getValueAttribute().getMaxLength();
132
currAtt->settings = ATTS_SET_WRITE_CBACK | ATTS_SET_READ_CBACK;
133
+ if (p_char->getValueAttribute().hasVariableLength()) {
134
+ currAtt->settings |= ATTS_SET_VARIABLE_LEN;
135
+ }
136
if (p_char->getValueAttribute().getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
137
currAtt->settings |= ATTS_SET_UUID_128;
138
}
0 commit comments