File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ void loop(){
99
99
}
100
100
101
101
// Check to see if the client request was "GET /H" or "GET /L":
102
- if (currentLine.endsWith (" GET /H" )) {
102
+ if (currentLine.startsWith (" GET /H" )) {
103
103
digitalWrite (5 , HIGH); // GET /H turns the LED on
104
104
}
105
- if (currentLine.endsWith (" GET /L" )) {
105
+ if (currentLine.startsWith (" GET /L" )) {
106
106
digitalWrite (5 , LOW); // GET /L turns the LED off
107
107
}
108
108
}
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ void loop() {
84
84
}
85
85
86
86
// Check to see if the client request was "GET /H" or "GET /L":
87
- if (currentLine.endsWith (" GET /H" )) {
87
+ if (currentLine.startsWith (" GET /H" )) {
88
88
digitalWrite (LED_BUILTIN, HIGH); // GET /H turns the LED on
89
89
}
90
- if (currentLine.endsWith (" GET /L" )) {
90
+ if (currentLine.startsWith (" GET /L" )) {
91
91
digitalWrite (LED_BUILTIN, LOW); // GET /L turns the LED off
92
92
}
93
93
}
You can’t perform that action at this time.
0 commit comments