From 9de34314a3839bac4dd20c1fa03fdc9b9b8df207 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Thu, 19 Mar 2020 07:57:06 +0100 Subject: [PATCH] The compiler can not resolve the correct connect function based on that overload so its better to just return 0 --- src/MqttClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MqttClient.h b/src/MqttClient.h index d54da1c..e0e9d63 100644 --- a/src/MqttClient.h +++ b/src/MqttClient.h @@ -68,7 +68,7 @@ class MqttClient : public Client { virtual int connect(IPAddress ip, uint16_t port = 1883); virtual int connect(const char *host, uint16_t port = 1883); #ifdef ESP8266 - virtual int connect(const IPAddress& ip, uint16_t port) { return connect(ip, port); }; /* ESP8266 core defines this pure virtual in Client.h */ + virtual int connect(const IPAddress& ip, uint16_t port) { return 0; }; /* ESP8266 core defines this pure virtual in Client.h */ #endif virtual size_t write(uint8_t); virtual size_t write(const uint8_t *buf, size_t size); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy