Skip to content

Commit 8c8de83

Browse files
authored
The compiler can not resolve the correct connect function based on that overload so its better to just return 0 (#30)
1 parent c0fc4b7 commit 8c8de83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MqttClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MqttClient : public Client {
6868
virtual int connect(IPAddress ip, uint16_t port = 1883);
6969
virtual int connect(const char *host, uint16_t port = 1883);
7070
#ifdef ESP8266
71-
virtual int connect(const IPAddress& ip, uint16_t port) { return connect(ip, port); }; /* ESP8266 core defines this pure virtual in Client.h */
71+
virtual int connect(const IPAddress& ip, uint16_t port) { return 0; }; /* ESP8266 core defines this pure virtual in Client.h */
7272
#endif
7373
virtual size_t write(uint8_t);
7474
virtual size_t write(const uint8_t *buf, size_t size);

0 commit comments

Comments
 (0)