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
已提问 2 年前328 查看次数
2 回答
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
专家
已回答 2 年前
profile pictureAWS
专家
Greg_B
已审核 2 年前
0

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

Best regards Tom

tom
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则