MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setScriptTopic

Method setScriptTopic

app/src/MQTT/Publisher.cpp:1704–1711  ·  view source on GitHub ↗

* @brief Sets the per-script override topic (empty == fall back to topicBase). */

Source from the content-addressed store, hash-verified

1702 * @brief Sets the per-script override topic (empty == fall back to topicBase).
1703 */
1704void MQTT::Publisher::setScriptTopic(const QString& topic)
1705{
1706 if (m_scriptTopic == topic)
1707 return;
1708
1709 m_scriptTopic = topic;
1710 markConfigChanged();
1711}
1712
1713/**
1714 * @brief Sets the script language (0 = JavaScript, 1 = Lua).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected