Error running subscriber.py
sarah-i-rubenstein opened this issue · 0 comments
sarah-i-rubenstein commented
Publisher.py works, but when I try to run subscriber.py it throws this error:
File "/home/pi/mosquitto-python-example/./subscriber.py", line 9
print "%-20s %d %s" % (msg.topic, msg.qos, msg.payload)
^
SyntaxError: invalid syntax