mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-05-02 22:33:41 +00:00
Minor changes after testing
This commit is contained in:
@@ -200,7 +200,7 @@ void AmsWebServer::temperatureJson() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
int count = hw->getTempSensorCount();
|
int count = hw->getTempSensorCount();
|
||||||
int size = 32 + (count * 72);
|
int size = 16 + (count * 72);
|
||||||
|
|
||||||
char buf[size];
|
char buf[size];
|
||||||
snprintf(buf, 16, "{\"c\":%d,\"s\":[", count);
|
snprintf(buf, 16, "{\"c\":%d,\"s\":[", count);
|
||||||
|
|||||||
@@ -345,7 +345,10 @@ var fetch = function() {
|
|||||||
$('.jt').html("N/A");
|
$('.jt').html("N/A");
|
||||||
}
|
}
|
||||||
setTimeout(fetch, interval);
|
setTimeout(fetch, interval);
|
||||||
}).fail(function() {
|
}).fail(function(x, text, error) {
|
||||||
|
console.log("Failed request");
|
||||||
|
console.log(text);
|
||||||
|
console.log(error);
|
||||||
setTimeout(fetch, interval*4);
|
setTimeout(fetch, interval*4);
|
||||||
|
|
||||||
setStatus("mqtt", 0);
|
setStatus("mqtt", 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user