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

Method setKeepAlive

app/src/MQTT/Publisher.cpp:1582–1589  ·  view source on GitHub ↗

* @brief Sets the keep-alive interval in seconds. */

Source from the content-addressed store, hash-verified

1580 * @brief Sets the keep-alive interval in seconds.
1581 */
1582void MQTT::Publisher::setKeepAlive(const quint16 keepAlive)
1583{
1584 if (m_keepAlive == keepAlive)
1585 return;
1586
1587 m_keepAlive = keepAlive;
1588 markConfigChanged();
1589}
1590
1591/**
1592 * @brief Sets the MQTT client identifier.

Calls

no outgoing calls

Tested by

no test coverage detected