MQTT Communication # Greengrass V2

0

Hi Team,

Is it possible to respond to same device who has send message to IoT Core in Greengrass v2 ??

My scenario is I am sending one message on AWS IoT Core and that message has been routed via rules to make a call to Lambda. I have some logical implementation in lambda which would return pre-signed URL which I want to send back to same thing/device who has sent message to IoT Core. Since, I have multiple devices/things, I don't want that message should be accept by other devices.

Is there any provision to handle such scenario ??

已提問 1 年前檢視次數 230 次
1 個回答
0
已接受的答案

You should be able to get a thing name from an env variable AWS_IOT_THING_NAME inside a GGv2 component and construct a topic which looks something like this AWS_IOT_THING_NAME/message/response where you can send the back the info to. You will also have the info from which topic the message got received into in a lambda function payload, thus you can know where to send it back.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南