From ade2940a2ffe1cdc04e39d638d28378cc2c41c32 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 25 Sep 2019 11:59:24 +0200 Subject: [PATCH] Providing empty functions for functions defined pure virtual in ESP8266::Client.h --- src/MqttClient.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MqttClient.h b/src/MqttClient.h index 82d4bf0..acadba1 100644 --- a/src/MqttClient.h +++ b/src/MqttClient.h @@ -67,6 +67,7 @@ class MqttClient : public Client { // from Client virtual int connect(IPAddress ip, uint16_t port = 1883); virtual int connect(const char *host, uint16_t port = 1883); + virtual int connect(const IPAddress& ip, uint16_t port) { }; /* ESP8266 core defines this pure virtual in Client.h */ virtual size_t write(uint8_t); virtual size_t write(const uint8_t *buf, size_t size); virtual int available(); @@ -89,6 +90,9 @@ class MqttClient : public Client { int connectError() const; int subscribeQoS() const; + virtual bool flush(unsigned int maxWaitMs) { } /* ESP8266 core defines this pure virtual in Client.h */ + + virtual bool stop(unsigned int maxWaitMs) { } /* ESP8266 core defines this pure virtual in Client.h */ private: int connect(IPAddress ip, const char* host, uint16_t port);