8000 Subscribes to MQTT topic for configuration updates by gguuss · Pull Request #1231 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content

Subscribes to MQTT topic for configuration updates #1231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2017

Conversation

gguuss
Copy link
Contributor
@gguuss gguuss commented Nov 27, 2017

No description provided.

@googlebot googlebo 8000 t added the cla: yes This human has signed the Contributor License Agreement. label Nov 27, 2017
def on_message(unused_client, unused_userdata, message):
"""Callback when the device receives a message on a subscription."""
payload = str(message.payload)
print "Received message '{}' on topic '{}' with Qos {}".format(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print is a function, and please use single quotes for strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonparrott Did I miss one?

@theacodes theacodes merged commit bc43bcb into master Dec 5, 2017
@theacodes theacodes deleted the iot-mqtt-subscribe branch December 5, 2017 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0