[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 Jesse Hills
parent 8314ad9ca0
commit 49ef4e00df

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 {