newuser-8fa860ac-786e-4e76-bff1-dfb016d6bba0 avatar image

Invoking a Lambda function on MQTT publish event

I have an IoT MQTT broker set up to invoke a Lamda function on publish events to a certain topic. This works well as long as the data is in JSON format. When the data does not have JSON markup, I get an error "Error invoking Lamda function on topic < topic name>. Server error 400" Is it possible to invoke a Lambda function on a free form data?

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers