This website works better with JavaScript.
Home
Help
Sign In
rico
/
remote_pilot_wire_mqtt
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
kitchen_pilot_wire_control.ino: switch off heater if we loose the wifi/MQTT
master
Richard Genoud
5 years ago
parent
5584200c67
commit
841683ec06
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
soft/kitchen/kitchen_pilot_wire_control/kitchen_pilot_wire_control.ino
+ 4
- 0
soft/kitchen/kitchen_pilot_wire_control/kitchen_pilot_wire_control.ino
View File
@ -54,4 +54,8 @@ void onConnectionEstablished()
void
loop
(
)
{
client
.
loop
(
)
;
if
(
!
client
.
isConnected
(
)
)
{
// if something wrong happens, switch off the heater
digitalWrite
(
heating_pin
,
HIGH
)
;
}
}
Write
Preview
Loading…
Cancel
Save