update
This commit is contained in:
parent
76fd93c002
commit
10b65a999b
2
MQTT.py
2
MQTT.py
|
@ -28,7 +28,7 @@ def valid(msg, client):
|
||||||
|
|
||||||
# Message receiving callback
|
# Message receiving callback
|
||||||
def on_message(client, userdata, msg):
|
def on_message(client, userdata, msg):
|
||||||
if valid(msg, client) is False:
|
if not valid(msg, client):
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
origin_data = json.loads(msg.payload.decode('utf-8'))
|
origin_data = json.loads(msg.payload.decode('utf-8'))
|
||||||
|
|
Loading…
Reference in New Issue