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

Method setScriptCode

app/src/MQTT/Publisher.cpp:1692–1699  ·  view source on GitHub ↗

* @brief Sets the user script source for ScriptDriven mode. */

Source from the content-addressed store, hash-verified

1690 * @brief Sets the user script source for ScriptDriven mode.
1691 */
1692void MQTT::Publisher::setScriptCode(const QString& code)
1693{
1694 if (m_scriptCode == code)
1695 return;
1696
1697 m_scriptCode = code;
1698 markConfigChanged();
1699}
1700
1701/**
1702 * @brief Sets the per-script override topic (empty == fall back to topicBase).

Callers 2

openMqttScriptEditorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected