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
preguntada hace 2 años328 visualizaciones
2 Respuestas
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
EXPERTO
respondido hace 2 años
profile pictureAWS
EXPERTO
Greg_B
revisado hace 2 años
0

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

Best regards Tom

tom
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas