Skip to content

Commit 75cbaf3

Browse files
committed
Fixed syntax error
1 parent ce90423 commit 75cbaf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/mqttlogger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
# pylint: disable=locally-disabled, not-callable
9090
magnumReader = magnum.Magnum(device=args.device, packets=args.packets,
9191
timeout=args.timeout, cleanpackets=args.cleanpackets)
92-
print("Publishing to broker:{0} Every:{2} seconds. Using: {1} ".format(args.broker, args.device, args.interval"))
92+
print("Publishing to broker:{0} Every:{2} seconds. Using: {1} ".format(args.broker, args.device, args.interval))
9393
uuidstr = str(uuid.uuid1())
9494
client = mqtt.Client(client_id=uuidstr, clean_session=False)
9595
while True:
@@ -109,7 +109,7 @@
109109
payload = json.dumps(
110110
data, indent=None, ensure_ascii=True, allow_nan=True, separators=(',', ':'))
111111
client.publish(topic, payload=payload)
112-
client.disconnect()
112+
client.disconnect()
113113
except:
114114
traceback.print_exc()
115115
interval = time.time() - start

0 commit comments

Comments
 (0)