We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edae555 commit e0039b4Copy full SHA for e0039b4
TempBug/Device.nut
@@ -31,6 +31,7 @@ function getTemp() {
31
32
server.log("b_therm "+ b_therm);
33
server.log("t0_therm "+ t0_therm);
34
+server.log("val "+ val);
35
// scale the ADC reading to a voltage by dividing by the full-scale value and multiplying by the supply voltage
36
local v_therm = calcBatt[0] * val / 65535.0;
37
server.log("v_therm "+ v_therm);
@@ -54,7 +55,7 @@ server.log("t0_therm "+ t0_therm);
54
55
//agent.send("Batt", imp.Batt());
56
agent.send("Batt", calcBatt[0]);
57
- imp.onidle(function() { server.sleepfor(300); }); // 15 minutes
58
+ imp.onidle(function() { server.sleepfor(300); }); // 5 minutes
59
60
}
61
0 commit comments