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);