set the correct pin number reading

This commit is contained in:
CiscoTheWolf 2023-05-31 18:49:46 +02:00
parent d7de65ae85
commit 2788c1527e

View file

@ -136,7 +136,7 @@ def on_connect(client, userdata, flags, response_code):
def on_message(client, userdata, message):
print("Received message '" + str(message.payload) + "' on topic '"
+ message.topic + "' with QoS " + str(message.qos))
pin_number = str(message.payload)[12:14]
pin_number = str(message.payload)[12:13]
pin_state = str(message.payload)[6:10]
print("pin number: " + pin_number+ " pin state: " + pin_state)
proot_state = ProotState()