LennartHennigs / ESPTelnet

ESP library that allows you to setup a telnet server for debugging.
MIT License
215 stars 35 forks source link

Build error: WiFiClient::status() not defined on ESP32 #5

Closed AFontaine79 closed 3 years ago

AFontaine79 commented 3 years ago

The WiFiClient class does not appear to be cross-compatible between ESP8266 and ESP32. Annoying, yes, I know. Anyway... see here: For the ESP8266, the declaration of status() method is on line 55 of WiFiClient.h. For the ESP32, WiFiClient.h has no status() method. I'm just going to modify the code to work around this for now.

LennartHennigs commented 3 years ago

Hey, I think there is a status() method for the ESP32. Its used in their example:

https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiClient/WiFiClient.ino

(...and my libs and its example compiles and runs on my M5Stack Core)

AFontaine79 commented 3 years ago

You are correct. You actually fixed this issue in commit 830fd75 on Feb 3rd. My guess is that I somehow grabbed the wrong library version in PlatformIO, which has its own library manager. Like you said, it builds fine in the Arduino IDE. I went back and asked PlatformIO to revert my changes to ESPTelnet, and now it looks the same as here. I am closing this issue.