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
gefragt vor 2 Jahren335 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Jahren
profile picture
EXPERTE
überprüft vor 10 Monaten
  • 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).

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen