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

Method setScriptLanguage

app/src/MQTT/Publisher.cpp:1716–1724  ·  view source on GitHub ↗

* @brief Sets the script language (0 = JavaScript, 1 = Lua). */

Source from the content-addressed store, hash-verified

1714 * @brief Sets the script language (0 = JavaScript, 1 = Lua).
1715 */
1716void MQTT::Publisher::setScriptLanguage(const int language)
1717{
1718 if (m_scriptLanguage == language)
1719 return;
1720
1721 m_scriptLanguage = language;
1722 m_workerScriptLanguage.store(language, std::memory_order_relaxed);
1723 markConfigChanged();
1724}
1725
1726//--------------------------------------------------------------------------------------------------
1727// Data publishing hotpaths

Callers 1

openMqttScriptEditorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected