set the correct pin number reading
This commit is contained in:
parent
d7de65ae85
commit
2788c1527e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue