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!

1 Resposta
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
ESPECIALISTA
Greg_B
respondido há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas