IoT Core的规则SQL - 访问“物品”属性

0

【以下的问题经过翻译处理】 你好,

我想在IoT Core的规则接收到的消息中,使用为我的设备指定的“物品”的属性值来丰富消息,但似乎唯一的方法是使用 aws_lambda SQL函数,在这里描述了这种方法:https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html#iot-func-aws-lambda,这看起来是一种访问IoT Core中已存储和管理的信息的笨拙方式。

是否有更好的方式在IoT Core的规则SQL语句中访问“物品”属性?

非常感谢。

profile picture
EXPERT
asked 6 months ago16 views
1 Answer
0

【以下的回答经过翻译处理】 目前,没有方便的SQL函数可以检索物品属性。

如果您使用Lambda调用DescribeThing,请注意您可能会面临的服务限制,特别是在处理大量消息时。 DescribeThing的限制是可调整的。但是,如果您的负载非常重,最好将属性信息存储在其他地方中(如Shadow,DynamoDB等)。

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions