Skip to content

Need to decode data coming from MQTT bridge on Python3 #1985

@CarlosMendonca

Description

@CarlosMendonca

In which file did you encounter the issue?

python-docs-samples/iot/api-client/end_to_end_example/cloudiot_pubsub_example_mqtt_device.py
python-docs-samples/iot/api-client/end_to_end_example/cloudiot_pubsub_example_server.py

Did you change the file? If so, how?

Diff

Describe the issue

Data from MQTT bridge must be decoded in Python3 to become a string that can be parsed to JSON by this code. Adding explicit decode calls solves the issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions