parent
bea803b86f
commit
0dde1d09fc
8
main.py
8
main.py
|
@ -88,10 +88,10 @@ def mqtt_on_message(client, userdata, msg):
|
||||||
topic = str(msg.topic)
|
topic = str(msg.topic)
|
||||||
payload = str(msg.payload.decode("utf-8"))
|
payload = str(msg.payload.decode("utf-8"))
|
||||||
|
|
||||||
channel_1 = 4
|
channel_1 = 19
|
||||||
channel_2 = 17
|
channel_2 = 16
|
||||||
channel_3 = 27
|
channel_3 = 26
|
||||||
channel_4 = 11
|
channel_4 = 20
|
||||||
|
|
||||||
if topic == "strawberry-pi-greenhouse/relay/channel/1":
|
if topic == "strawberry-pi-greenhouse/relay/channel/1":
|
||||||
if payload == "on":
|
if payload == "on":
|
||||||
|
|
Loading…
Reference in New Issue