From 25602ec2f53d84e677b2f36a464849979ae69286 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Mon, 17 Apr 2023 00:43:20 +0200 Subject: [PATCH] [TinyMqtt.cpp] Fix misusing of WiFiClient class --- src/TinyMqtt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TinyMqtt.cpp b/src/TinyMqtt.cpp index a356c04..5aaf0b3 100644 --- a/src/TinyMqtt.cpp +++ b/src/TinyMqtt.cpp @@ -63,7 +63,7 @@ MqttClient::MqttClient(MqttBroker* local_broker, TcpClient* new_client) // client->onConnect() TODO // client->onDisconnect() TODO #else - tcp_client = new WiFiClient(*new_client); + tcp_client = new TcpClient(*new_client); #endif #ifdef EPOXY_DUINO alive = millis()+500000; @@ -211,7 +211,7 @@ void MqttBroker::onClient(void* broker_ptr, TcpClient* client) void MqttBroker::loop() { #ifndef TINY_MQTT_ASYNC - WiFiClient client = server->accept(); + TcpClient client = server->accept(); if (client) {