HASelect improvements (#221)

* added getCurrentOption method to the HASelect

* final fixes, tests

* added support for publishing None state in the HASelect

* update select.ino

* update docs
This commit is contained in:
Dawid Chyrzyński
2024-02-05 20:44:29 +01:00
committed by GitHub
parent fdc60b57c3
commit 6cf4f11580
14 changed files with 103 additions and 19 deletions
+9
View File
@@ -28,6 +28,15 @@ bool HASerializerArray::add(ItemType item)
return true;
}
const char* HASerializerArray::getItem(const uint8_t index) const
{
if (index < 0 || index >= _itemsNb) {
return nullptr;
}
return _items[index];
}
uint16_t HASerializerArray::calculateSize() const
{
uint16_t size =