* @brief Writes the staged broker properties into the client. Caller must guarantee * state == Disconnected. */
| 583 | * state == Disconnected. |
| 584 | */ |
| 585 | void MQTT::PublisherWorker::applyClientPropertiesUnsafe() |
| 586 | { |
| 587 | m_client->setHostname(m_cfg.hostname); |
| 588 | m_client->setPort(m_cfg.port); |
| 589 | m_client->setClientId(m_cfg.clientId); |
| 590 | m_client->setUsername(m_cfg.username); |
| 591 | m_client->setPassword(m_cfg.password); |
| 592 | m_client->setKeepAlive(m_cfg.keepAlive); |
| 593 | m_client->setCleanSession(m_cfg.cleanSession); |
| 594 | m_client->setProtocolVersion(m_cfg.mqttVersion); |
| 595 | } |
| 596 | |
| 597 | /** |
| 598 | * @brief Opens the broker connection. No-op if disabled or already connecting/connected. |
nothing calls this directly
no test coverage detected