<reponame>ably/homepage-snippets<filename>python/iot_pub.py
channel = ably.channels.get('device:thermostat:bedroom')
channel.publish('action', { 'type': 'temperature', 'value': 70 })

channel = ably.channels.get('device:thermostat:bedroom')
channel.publish('action', { 'type': 'temperature', 'value': 70 })