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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠