Some fixes
This commit is contained in:
@ -117,15 +117,18 @@ void sensorsJsonCmd(WebServer &server, WebServer::ConnectionType type,
|
||||
|
||||
server.httpSuccess("application/json");
|
||||
|
||||
server << "{ \"sensors\": ["
|
||||
<< "{\"data\":\"" << time.hour() << ":" << time.minute()
|
||||
<< ":" << time.second() << " " << time.day() << "/"
|
||||
<< time.month() << "/" << time.year() << "\"},"
|
||||
server << "{ \"sensors\": [" << "{\"data\":\""
|
||||
<< time.hour() << ":"
|
||||
<< time.minute() << ":"
|
||||
<< time.second() << " "
|
||||
<< time.day() << "/"
|
||||
<< time.month() << "/"
|
||||
<< time.year() << "\"},"
|
||||
|
||||
<< "{\"data\":" << temperature << "},"
|
||||
<< "{\"data\":" << pressure << "},"
|
||||
<< "{\"data\":" << altitude << "},"
|
||||
<< "{\"data\":" << humidity << "},"
|
||||
<< "{\"data\":" << pressure << "},"
|
||||
<< "{\"data\":" << altitude << "},"
|
||||
<< "{\"data\":" << humidity << "},"
|
||||
<< "{\"data\":" << tsl.calculateLux(lightFull, lightIr) << "}"
|
||||
<< "] }";
|
||||
}
|
||||
|
Reference in New Issue
Block a user