Skip to content

Commit

Permalink
Capitalise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Haydon committed Jan 13, 2020
1 parent cf8b253 commit 29579cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Raspi/Test/mock_wireless_module.py
Expand Up @@ -122,12 +122,12 @@ def publish(client, topic, data):
Publishes python dict data to a specific topic in JSON and prints it out
client: MQTT client object
topic: MQTT topic eg. '/v3/wireless-module/<id>/start'
data: python dict containing the data to be published on the topic
data: Python dict containing the data to be published on the topic
"""
# generate JSON from the python dict
# Generate JSON from the python dict
json_data = json.dumps(data)

# publish the data over MQTT
# Publish the data over MQTT
client.publish(topic, json_data)
print(topic, "--> ", json_data)

Expand Down

0 comments on commit 29579cf

Please sign in to comment.