Skip to content

Commit e08b200

Browse files
committed
Adding variable length attributes to Maxim Feather
1 parent 401a3c8 commit e08b200

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

features/FEATURE_BLE/targets/TARGET_Maxim/MaximGattServer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ ble_error_t MaximGattServer::addService_(GattService &service)
146146
currAtt->pLen = p_char->getValueAttribute().getLengthPtr();
147147
currAtt->maxLen = p_char->getValueAttribute().getMaxLength();
148148
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+
149155
if (p_char->getValueAttribute().getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) {
150156
currAtt->settings |= ATTS_SET_UUID_128;
151157
}

0 commit comments

Comments
 (0)