I finaly got the mqtt demo running and now i am able to send JSON messages from the esp32 to a lambda function. In the future the code will be running on many devices. So to be able to differentiate the devices, i’ll need an unique id (For DB related stuff). I know looking through the cloudwatch logs in AWSIotLogsV2 that there is a lot more information that i simply not able to recieve in my lamda function (through the sql Rule). In theory i only the ‘clientId’ or the ‘Thing_name’
One way i found is to make the sql rule like this:
I’ve tried, didn’t get it work but i also find a bit inapporiate.
An other way i can think of, is just to make sure that the mqtt message has an unique id inside.
If anyone has an idea what i can try or share how you done it, please do.