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.
2 parents 9c2ac47 + 8765da2 commit f154e97Copy full SHA for f154e97
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
@@ -52,6 +52,7 @@ class WiFiServer : public Server {
52
WiFiClient available(uint8_t* status = NULL);
53
bool hasClient();
54
void begin();
55
+ void begin(uint16_t port);
void setNoDelay(bool nodelay);
bool getNoDelay();
virtual size_t write(uint8_t);
0 commit comments