add characteristic isFixedLen()

This commit is contained in:
hathach committed 2020-02-21 11:48:16 +07:00
1 parent 7f96cc2ffc
commit 79efcb88ef
2 files changed
+6

No files matched your search

@@ -127,6 +127,11 @@ uint16_t BLECharacteristic::getMaxLen(void)
return _max_len;
}
bool BLECharacteristic::isFixedLen(void)
{
return _attr_meta.vlen == 0;
}
void BLECharacteristic::setFixedLen(uint16_t fixed_len)
{
if ( fixed_len )