Skip to content

Missing close() methods for WifiServer and WiFiWebServer #1167

@drmpf

Description

@drmpf

I need to close my server on port 80 and open a webserver on port 80 and visa versa

Looks like I need to add

void WiFiServer::close() {
    if (!_pcb) {
      return;
    }  
    tcp_close(_pcb);
}

and

void ESP8266WebServer::close() {
  _server.close();
}

or is there another way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions