Skip to content

Listen sensor doesn't print payload #4

@felipenwelter

Description

@felipenwelter

Line print "Data: " + msg.payload on the file mqtt_Listen_Sensor_Data.py can't print the content of the payload. The value cames as byte. I already used the decode('utf-8') to fix it.

print ("Data: " + msg.payload.decode('utf-8'))

I'm using Python3.

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