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 5401cb6 + 44c5c7e commit 1c35b95Copy full SHA for 1c35b95
features/FEATURE_BLE/targets/TARGET_Maxim/MaximGattServer.cpp
@@ -146,6 +146,11 @@ ble_error_t MaximGattServer::addService_(GattService &service)
146
currAtt->pLen = p_char->getValueAttribute().getLengthPtr();
147
currAtt->maxLen = p_char->getValueAttribute().getMaxLength();
148
currAtt->settings = ATTS_SET_WRITE_CBACK | ATTS_SET_READ_CBACK;
149
+
150
+ if(p_char->getValueAttribute().hasVariableLength()) {
151
+ currAtt->settings |= ATTS_SET_VARIABLE_LEN;
152
+ }
153
154
if (p_char->getValueAttribute().getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
155
currAtt->settings |= ATTS_SET_UUID_128;
156
}
0 commit comments