Remove useless sample code
This commit is contained in:
parent
27096bb0bf
commit
5665545f8f
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ void setup() {
|
|||
server.on("/esp_status", HTTP_GET, []() {
|
||||
String json = "{";
|
||||
json += "\"heap\":" + String(ESP.getFreeHeap());
|
||||
json += ", \"analog\":" + String(analogRead(A0));
|
||||
json += ", \"gpio\":" + String((uint32_t)(((GPI | GPO) & 0xFFFF) | ((GP16I & 0x01) << 16)));
|
||||
// json += ", \"analog\":" + String(analogRead(A0));
|
||||
// json += ", \"gpio\":" + String((uint32_t)(((GPI | GPO) & 0xFFFF) | ((GP16I & 0x01) << 16)));
|
||||
json += "}";
|
||||
server.send(200, "text/json", json);
|
||||
json = String();
|
||||
|
|
Loading…
Reference in a new issue