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

Method setCleanSession

app/src/MQTT/Publisher.cpp:1453–1460  ·  view source on GitHub ↗

* @brief Sets the broker clean-session flag. */

Source from the content-addressed store, hash-verified

1451 * @brief Sets the broker clean-session flag.
1452 */
1453void MQTT::Publisher::setCleanSession(const bool cleanSession)
1454{
1455 if (m_cleanSession == cleanSession)
1456 return;
1457
1458 m_cleanSession = cleanSession;
1459 markConfigChanged();
1460}
1461
1462/**
1463 * @brief Toggles publishing of notifications to MQTT.

Calls

no outgoing calls

Tested by

no test coverage detected