Fix bug with Async Tcp

This commit is contained in:
hsaturn
2023-03-11 18:47:41 +01:00
committed by GitHub
parent 45fedf84c9
commit 46798ff0de

View File

@@ -116,7 +116,7 @@ void MqttClient::connect(string broker, uint16_t port, uint16_t ka)
#ifdef TINY_MQTT_ASYNC
tcp_client->onData(onData, this);
tcp_client->onConnect(onConnect, this);
tcp_client->connect(broker.c_str(), port, ka);
tcp_client->connect(broker.c_str(), port);
#else
if (tcp_client->connect(broker.c_str(), port))
{