Skip to content

Subscriber.py throwing error #1

@sarah-i-rubenstein

Description

@sarah-i-rubenstein

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions