diff --git a/sensor_to_server.py b/sensor_to_server.py index bb79bf0..5960e5b 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -218,9 +218,10 @@ def test(): 'device_name': device_name } t2 = LOT_DATA(**data) - client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0) + # client.publish('demo', payload=json.dumps(data, ensure_ascii=False), qos=0) add(t2) - except: + except Exception as e: + print(e) pass finally: time.sleep(10)