Skip to content

Code syntax error #17

@sag-r

Description

@sag-r

I used the code provided in the readme to publish message to a topic and found the below run time error.

NameError: name 'client' is not defined

client.publish("keelhauled", payload)

I was able to fix this by changing the above line to

mqtt.publish("keelhauled", payload)

Publish messages to a topic.

Screen Shot 2021-09-01 at 1 24 25 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions