Greengrass V2 Shadow + MQTT (Moquette)

0

I'm trying to sync shadows between IoT Core and IoT Devices which are connected through Greengrass V2, Moquette Component. It seems like the ShadowManager service just gets shadows synced for use with IPC (other Components) and doesn't sync with Moquette where the IoT Devices could interact with their shadows. I also tried just using the MQTT Bridge to proxy the AWS Shadow Topics between Moquette and IoT Core, but that just started an infinite loop of messages since there's no deduplication or loop-break happening in the bridge...

How are IoT Devices supposed to interact with their shadows through a Greengrass MQTT broker? Greengrass V1 just seemed to work (IoT Devices connected to the Greengrass broker could interact with their shadows).

I found this from a year ago, but it doesn't give much info other than, "roll your own component to proxy the requests". Has this advice changed in the last year?

Casey
demandé il y a 2 ans335 vues
1 réponse
2
Réponse acceptée

Hi Casey, please see: https://docs.aws.amazon.com/greengrass/v2/developerguide/work-with-client-device-shadows.html#enable-shadow-manager-client-devices.

This provides the MQTT Bridge configuration which you must use to allow shadow access without loops.

Cheers, Michael

AWS
EXPERT
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a 10 mois
  • Perfect, I missed that article while trying to troublshoot this, thank you! I do have a follow on question about the ShadowManager, which I'll ask in another question to track answers there (how to wildcard subscribe to all devices assigned to the gateway).

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions