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.
1 parent 401a3c8 commit e08b200Copy full SHA for e08b200
features/FEATURE_BLE/targets/TARGET_Maxim/MaximGattServer.cpp
@@ -146,6 +146,12 @@ 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
+ {
152
+ currAtt->settings |= ATTS_SET_VARIABLE_LEN;
153
+ }
154
155
if (p_char->getValueAttribute().getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
156
currAtt->settings |= ATTS_SET_UUID_128;
157
}
0 commit comments