forked from airgradienthq/arduino
measurement toString
Tested on I-9PSL monitor Update OneOpenAir post and mqtt to use new measurement toString
This commit is contained in:
1 parent
2082a2fa93
commit
ed344d3e1a
4 files changed
+383
-7
No files matched your search
@@ -64,9 +64,8 @@ void LocalServer::_GET_metrics(void) {
|
||||
}
|
||||
|
||||
void LocalServer::_GET_measure(void) {
|
||||
server.send(
|
||||
200, "application/json",
|
||||
measure.toString(true, fwMode, wifiConnector.RSSI(), ag, &config));
|
||||
String toSend = measure.toStringX(true, fwMode, wifiConnector.RSSI(), *ag, config);
|
||||
server.send(200, "application/json", toSend);
|
||||
}
|
||||
|
||||
void LocalServer::setFwMode(AgFirmwareMode fwMode) { this->fwMode = fwMode; }
|
||||
Reference in new issue
Block a user