LennartHennigs / ESPTelnet

ESP library that allows you to setup a telnet server for debugging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telnet support for ESP32 in AP mode

UdayChaduvula opened this issue · comments

Hi, I am able to implement the telnet for ESP32 in Station mode, but where as I want to implement telnet for ESP32 in AP mode too.

bool YourLib::startAPService(const char* ssidAP, const char* appwd) {
  // Setting the ESP as an access point
  // Remove the password parameter, if you want the AP (Access Point) to be open
  WiFi.softAP(ssidAP, appwd, 13, 0, 1);
  //wait for SYSTEM_EVENT_AP_START
  while(!SYSTEM_EVENT_AP_START){delay(100);}
  if (!WiFi.softAPConfig(IPAddress(192, 168, 5, 1), IPAddress(192, 168, 5, 1), IPAddress(255, 255, 255, 0))) {
    return false;
  }
  IPAddress APIP = WiFi.softAPIP();
  return true;
}

Thx @NashAli for the quick reply!
@UdayChaduvula please give the code a try provide feedback.

@LennartHennigs I am not able to establish the telnet communication when the ESP-32 is in Acess Point Mode.

Hi @LennartHennigs ,
Thanks for your work! Do you mind adding an example with the telnet server running on an esp82666 running in AP mode. I also can get it to work, although I tried quite a bit.

Hey,
my libraries are hobby projects, I did build them mostly for myself.
As I am currently not working on a telnet project, it might take some time before I provide an AP example.
I would need to research this, too.

@LennartHennigs I will take this on if you haven't gotten around to it. I do need this for one of my ESP projects, so might as well do it properly and PR it ;-)

Hey. Sure feel free to take this on.
I built this library to solve a problem I had some time ago. But this is out of my scope.