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 Antwort
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
EXPERTE
Greg_B
beantwortet vor 7 Monaten

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