We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 686b977 commit 26f7febCopy full SHA for 26f7feb
libraries/WebServer/examples/Filters/Filters.ino
@@ -17,12 +17,12 @@ WebServer server(80);
17
18
const int led = 13;
19
20
-// ON_STA_FILTER - Accept requests coming only from the STA interface
+// ON_STA_FILTER - Only accept requests coming from STA interface
21
bool ON_STA_FILTER(WebServer &server) {
22
return WiFi.STA.hasIP() && WiFi.STA.localIP() == server.client().localIP();
23
}
24
25
-// ON_AP_FILTER - Accept requests coming only from the AP interface
+// ON_AP_FILTER - Only accept requests coming from AP interface
26
bool ON_AP_FILTER(WebServer &server) {
27
return WiFi.AP.hasIP() && WiFi.AP.localIP() == server.client().localIP();
28
0 commit comments