Usage of named shadow

0

Hi,

I am using aws-io-device-sdk-python package: https://github.com/aws/aws-iot-device-sdk-python/tree/e0f9eef8aafdf6319022d7972d3f1f65eefb784d for an AWS shadow purpose.

I want to use named shadow, however, I have seen that this library only send message for unamed shadow:

self._topicGeneral = "$aws/things/" + str(self._shadowName) + "/shadow/" + str(self._actionName) ( found in https://github.com/aws/aws-iot-device-sdk-python/blob/e0f9eef8aafdf6319022d7972d3f1f65eefb784d/AWSIoTPythonSDK/core/shadow/shadowManager.py )
while the shape of the topic for a named shadow should be: $aws/things/thingName/shadow/name/shadowName/actionName

Is there any way to use this library without modifying for named shadow?

Thank you in advance

tom
asked a year ago309 views
2 Answers
1

Hi,

you are looking at an older version of the AWS IoT Device SDK for Python which does not get feature updates.

The current AWS IoT Device SDK v2 for Python has methods to interact with named shadows.

Cheers,
Philipp

AWS
EXPERT
answered a year ago
profile pictureAWS
EXPERT
Greg_B
reviewed a year ago
0

Thank you very much Philipp. I never saw there was a v2 of the SDK.

Best regards Tom

tom
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions