[mqtt] resolve warnings related to use of ip.str() (#13719)

This commit is contained in:
rwrozelle
2026-02-02 10:48:08 -05:00
committed by GitHub
parent 62f34bea83
commit 18991686ab
+2 -1
View File
@@ -139,7 +139,8 @@ class MQTTBackendESP32 final : public MQTTBackend {
this->lwt_retain_ = retain;
}
void set_server(network::IPAddress ip, uint16_t port) final {
this->host_ = ip.str();
char ip_buf[network::IP_ADDRESS_BUFFER_SIZE];
this->host_ = ip.str_to(ip_buf);
this->port_ = port;
}
void set_server(const char *host, uint16_t port) final {