We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 497dacc commit 30c6df4Copy full SHA for 30c6df4
libraries/ESP8266WiFi/src/WiFiServer.cpp
@@ -173,6 +173,14 @@ void WiFiServer::stop() {
173
close();
174
}
175
176
+void WiFiServer::end() {
177
+ close();
178
+}
179
+
180
+WiFiServer::operator bool() {
181
+ return (status() != CLOSED);
182
183
184
err_t WiFiServer::_accept(tcp_pcb* apcb, err_t err) {
185
(void) err;
186
DEBUGV("WS:ac\r\n");
libraries/ESP8266WiFi/src/WiFiServer.h
@@ -100,6 +100,8 @@ class WiFiServer {
100
uint16_t port() const;
101
void close();
102
void stop();
103
+ void end();
104
+ explicit operator bool();
105
106
using ClientType = WiFiClient;
107
0 commit comments