Retrieve IoT MQTT message client ID in Lambda function when using Basic Ingest

0

Hello. Is there any way to retrieve the client ID from an IoT message in a Lambda function when using Basic Ingest? It looks like it is included in neither the event or context values passed in to the Lambda handler function. Thanks!

已提問 7 個月前檢視次數 226 次
1 個回答
0

Hi. Are you using the clientid() SQL function?

https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-clientid

Like this:

SELECT *, clientid() AS clientId FROM 'foobar'
profile pictureAWS
專家
Greg_B
已回答 7 個月前

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

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

回答問題指南