| 73 | *****************************************************************************/ |
| 74 | |
| 75 | void MultiIconPlugin::getTopics(JsonArray& topics) const |
| 76 | { |
| 77 | uint8_t slotId; |
| 78 | |
| 79 | for (slotId = 0U; slotId < _MultiIconPlugin::View::MAX_ICON_SLOTS; ++slotId) |
| 80 | { |
| 81 | JsonObject jsonSlot = topics.createNestedObject(); |
| 82 | |
| 83 | jsonSlot["name"] = String(TOPIC_SLOT) + "/" + slotId; |
| 84 | jsonSlot["extra"]["ha"] = TOPIC_SLOT_EXTRA_HA_FILE_NAME; |
| 85 | } |
| 86 | |
| 87 | (void)topics.add(TOPIC_SLOTS); |
| 88 | } |
| 89 | |
| 90 | bool MultiIconPlugin::getTopic(const String& topic, JsonObject& value) const |
| 91 | { |