This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Report data from CT and DS18B20 to the web interface even if no MQTT connection
fastled
Xose Pérez
7 years ago
parent
788905307b
commit
3dc042be42
2 changed files
with
0 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
code/espurna/ds18b20.ino
+0
-2
code/espurna/emon.ino
+ 0
- 2
code/espurna/ds18b20.ino
View File
@ -33,8 +33,6 @@ void dsSetup() {
void
dsLoop
(
)
{
if
(
!
mqttConnected
(
)
)
return
;
// Check if we should read new data
static
unsigned
long
last_update
=
0
;
if
(
(
millis
(
)
-
last_update
>
DS_UPDATE_INTERVAL
)
|
|
(
last_update
=
=
0
)
)
{
+ 0
- 2
code/espurna/emon.ino
View File
@ -110,8 +110,6 @@ void powerMonitorLoop() {
static
double
min
=
0
;
static
double
sum
=
0
;
if
(
!
mqttConnected
(
)
)
return
;
if
(
warmup
)
{
warmup
=
false
;
emon
.
warmup
(
)
;
Write
Preview
Loading…
Cancel
Save