2 Answers
- Newest
- Most votes
- Most comments
3
If the data is not JSON, Lambda will fail.
So, base64 encode the data to be passed to Lambda in IoT Core as follows.
SELECT encode(*,'base64') as payload FROM '/test/hoge'
In Lambda, when an event is received, the code is written so that base64 decoding is performed and the data is restored.
0
The Lambda function will get the event as a JSON format. It may include a string field in it that includes the data from the IoT device.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago