Skip to content

Commit a455a92

Browse files
noerogJon Wayne Parrott
authored andcommitted
Temporarily remove device state publish, right now it doesn't do anything. (GoogleCloudPlatform#1261)
1 parent 92ffb56 commit a455a92

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

iot/api-client/end_to_end_example/cloudiot_pubsub_example_mqtt_device.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,12 @@ def main():
229229
# This is the topic that the device will receive configuration updates on.
230230
mqtt_config_topic = '/devices/{}/config'.format(args.device_id)
231231

232-
# This is the topic that the device will send its state to.
233-
mqtt_state_topic = '/devices/{}/state'.format(args.device_id)
234-
235232
# Wait up to 5 seconds for the device to connect.
236233
device.wait_for_connection(5)
237234

238235
# Subscribe to the config topic.
239236
client.subscribe(mqtt_config_topic, qos=1)
240237

241-
client.publish(mqtt_state_topic, 'received config!')
242-
243238
# Update and publish temperature readings at a rate of one per second.
244239
for _ in range(args.num_messages):
245240
# In an actual device, this would read the device's sensors. Here,

0 commit comments

Comments
 (0)