Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 6a1fb03

Browse files
frippe75me-no-dev
authored andcommitted
Fixes #614 with incorrect regex in the example sketch (#615)
1 parent 83f6b96 commit 6a1fb03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/regex_patterns/regex_patterns.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void setup() {
5050
});
5151

5252
// Send a GET request to <IP>/sensor/<number>/action/<action>
53-
server.on("^\\/sensor\\/([0-9]+)\\/action\//([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) {
53+
server.on("^\\/sensor\\/([0-9]+)\\/action\\/([a-zA-Z0-9]+)$", HTTP_GET, [] (AsyncWebServerRequest *request) {
5454
String sensorNumber = request->pathArg(0);
5555
String action = request->pathArg(1);
5656
request->send(200, "text/plain", "Hello, sensor: " + sensorNumber + ", with action: " + action);

0 commit comments

Comments
 (0)