2 回答
- 最新
- 投票最多
- 评论最多
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.
相关内容
- AWS 官方已更新 2 年前