MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getTopics

Method getTopics

lib/IconTextPlugin/src/IconTextPlugin.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void IconTextPlugin::getTopics(JsonArray& topics) const
85{
86 JsonObject jsonText = topics.createNestedObject();
87
88 /* The topic contains Home Assistant support of the MQTT discovery
89 * (https://www.home-assistant.io/integrations/mqtt). See the configured
90 * JSON file.
91 *
92 * The used icon is from MaterialDesignIcons.com (namespace: mdi).
93 */
94 jsonText["name"] = TOPIC_TEXT;
95 jsonText["extra"]["ha"] = TOPIC_TEXT_EXTRA_HA_FILE_NAME;
96}
97
98bool IconTextPlugin::getTopic(const String& topic, JsonObject& value) const
99{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected