8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c8b2b9 commit 8765da2Copy full SHA for 8765da2
libraries/ESP8266WiFi/src/WiFiServer.cpp
@@ -56,7 +56,12 @@ WiFiServer::WiFiServer(uint16_t port)
56
}
57
58
void WiFiServer::begin() {
59
+ begin(_port);
60
+}
61
+
62
+void WiFiServer::begin(uint16_t port) {
63
close();
64
+ _port = port;
65
err_t err;
66
tcp_pcb* pcb = tcp_new();
67
if (!pcb)
libraries/ESP8266WiFi/src/WiFiServer.h
@@ -51,6 +51,7 @@ class WiFiServer : public Server {
51
WiFiClient available(uint8_t* status = NULL);
52
bool hasClient();
53
void begin();
54
+ void begin(uint16_t port);
55
void setNoDelay(bool nodelay);
bool getNoDelay();
virtual size_t write(uint8_t);
0 commit comments