[MqttClient] Added connect(IPAddress)

This commit is contained in:
hsaturn
2023-03-22 20:29:52 +01:00
parent 37fb46ec3b
commit e4ad27c805

View File

@@ -210,6 +210,8 @@ class MqttClient
void connect(MqttBroker* local_broker); void connect(MqttBroker* local_broker);
void connect(string broker, uint16_t port, uint16_t keep_alive = 10); void connect(string broker, uint16_t port, uint16_t keep_alive = 10);
void connect(const IPAddress& ip, uint16_t port, uint16_t keep_alive = 10)
{ connect(ip.toString().c_str(), port, keep_alive); }
// TODO it seems that connected returns true in tcp mode even if // TODO it seems that connected returns true in tcp mode even if
// no negociation occurred // no negociation occurred