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
已提问 2 年前335 查看次数
1 回答
2
已接受的回答

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
专家
已回答 2 年前
profile picture
专家
已审核 10 个月前
  • 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).

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

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

回答问题的准则