Update esp32cam-demo.ino

master
Alan 2021-12-29 15:39:20 +00:00 zatwierdzone przez GitHub
rodzic d768b7ca88
commit 229a29ccb7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 25 dodań i 18 usunięć

Wyświetl plik

@ -1229,30 +1229,38 @@ void handleTest() {
// < YOUR TEST CODE GOES HERE>
// test code goes here
/*
// demo of how to request a web page
String page = "http://urlhere.com"; // url to request
String response; // reply will be stored here
int httpCode = requestWebPage(&page, &response);
// show results
client.println("Web page requested: '" + page + "' - http code: " + String(httpCode));
client.print("<xmp>'"); // enables the html code to be displayed
client.print(response);
client.println("'</xmp><br>");
*/
/*
// // demo useage of the mcp23017 io chip
// #if useMCP23017 == 1
// while(1) {
// mcp.digitalWrite(0, HIGH);
// int q = mcp.digitalRead(8);
// client.print("<p>HIGH, input =" + String(q) + "</p>");
// delay(1000);
// mcp.digitalWrite(0, LOW);
// client.print("<p>LOW</p>");
// delay(1000);
// }
// #endif
#if useMCP23017 == 1
while(1) {
mcp.digitalWrite(0, HIGH);
int q = mcp.digitalRead(8);
client.print("<p>HIGH, input =" + String(q) + "</p>");
delay(1000);
mcp.digitalWrite(0, LOW);
client.print("<p>LOW</p>");
delay(1000);
}
#endif
*/
// -------------------------------------------------------------------
@ -1268,4 +1276,3 @@ void handleTest() {
// ******************************************************************************************************************
// end
**Ñ¥