yasheena / telnetspy

Telnet Server For ESP8266: Cloning the serial port via Telnet. "Debugging over the air"
MIT License
59 stars 31 forks source link

Does not work in AP only mode (ESP32) #9

Closed rljonesau closed 2 years ago

rljonesau commented 4 years ago

I was never able to establish a connection when using AP only mode on an ESP32 (never tried an 8266).

I have changed the code in handle() to do this about line 548 (commented out below) and I can now use a telnet client when using the AP connection:

```

if (!listening) {

wifi_mode_t currentMode = WiFi.getMode();
bool isAPEnabled = ((currentMode & WIFI_MODE_AP) != 0);
bool isSTAconnected = WiFi.status() == WL_CONNECTED;

// if (WiFi.status() != WL_CONNECTED) { if (!isSTAconnected && !isAPEnabled) return; }

yasheena commented 2 years ago

Fixed with version 1.2