Skip to content

Commit a7eb801

Browse files
committed
fix error
1 parent c41b953 commit a7eb801

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ESP32-to-ESP32.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ void handleEvent(AceButton *button, uint8_t eventType, uint8_t buttonState) {
149149
String requestURL = "/led/1/state/" + String(ledState);
150150
Serial.printf("\r\n=========================================\r\n");
151151
Serial.println(requestURL);
152+
152153
httpClient.print(String("GET ") + requestURL + + " HTTP/1.1\r\n" + "Host: esp32\r\n" + "Connection: close\r\n\r\n");
153-
LOG("%s: %s\r\n", host.second.c_str(), host.first.toString().c_str());
154+
155+
LOG("%s:\r\n%s\r\n\r\n", host.second.c_str(), host.first.toString().c_str());
156+
}
154157
}
155158
}
156159

0 commit comments

Comments
 (0)