2015/10/07 - AWS IoT Data Plane - 4 new api methods
Deletes the thing shadow for the specified thing.
For more information, see DeleteThingShadow in the AWS IoT Developer Guide .
Request Syntax
client.delete_thing_shadow( thingName='string' )
string
[REQUIRED]
The name of the thing.
dict
Response Syntax
{ 'payload': StreamingBody() }
Response Structure
(dict) --
The output from the DeleteThingShadow operation.
payload (:class:`.StreamingBody`) --
The state information, in JSON format.
Gets the thing shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide .
Request Syntax
client.get_thing_shadow( thingName='string' )
string
[REQUIRED]
The name of the thing.
dict
Response Syntax
{ 'payload': StreamingBody() }
Response Structure
(dict) --
The output from the GetThingShadow operation.
payload (:class:`.StreamingBody`) --
The state information, in JSON format.
Updates the thing shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide .
Request Syntax
client.update_thing_shadow( thingName='string', payload=b'bytes'|file )
string
[REQUIRED]
The name of the thing.
bytes or seekable file-like object
[REQUIRED]
The state information, in JSON format.
dict
Response Syntax
{ 'payload': b'bytes'|file }
Response Structure
(dict) --
The output from the UpdateThingShadow operation.
payload (bytes or seekable file-like object) --
The state information, in JSON format.
Publishes state information.
For more information, see HTTP Protocol in the AWS IoT Developer Guide .
Request Syntax
client.publish( topic='string', qos=123, payload=b'bytes'|file )
string
[REQUIRED]
The name of the MQTT topic.
integer
The Quality of Service (QoS) level.
bytes or seekable file-like object
The state information, in JSON format.
None