IoT Sitewise to IoT Core rule

0

Hello AWS people. I'm trying to transfer data to IoT Sitewise assets as IoT Core rule. I generate json data from 2 devices and send it to IoT Core MQTT Client.

In one IoT Core Rule, I try to deliver data to each of the two assets with two actions called <Send a message data to asset properties in AWS IoT SiteWise>.

But strangely enough, both assets have the same value. Despite specifying different aliases for each asset!

How can I solve this?

질문됨 8달 전263회 조회
2개 답변
0

Can you share the IoT Rule. Please verify that the rule is selecting data from the topic that maps to the asset property.

More details here at this link.

https://docs.aws.amazon.com/iot-sitewise/latest/userguide/iot-rules.html

답변함 8달 전
  • Thank you for your answer. I share you my IoT Core rule. I have one rule with two actions. Each action said... Property alias entries 1 propertyAlias: /Library/MediaLab/Temperature propertyValues: 1 value: doubleValue: ${temperature} timestamp: timeInSeconds: ${timeInSeconds} Property alias entries 1 propertyAlias: /Library/WOWLIC/Temperature propertyValues: 1 value: doubleValue: ${temperature} timestamp: timeInSeconds: ${timeInSeconds} I want to use one IoT Core Rule with two actions. But it doesn't work... Am I just use for one IoT Core Rule with One ACTIONS? help me..

  • AND my AWS IoT Core Rule SQL Statement : SELECT * FROM 'dt/hansang/library/+/sta'

0

Hi. As per your other question, you have one rule matching multiple topics and then triggering two actions. Hence the behaviour you see. You can instead change to just one action. As detailed in the documentation for the SiteWise rules action, you can use substitution templates in many of the action parameters, including the property alias. So the destination alias can be constructed using fields of the message or the topic.

For the property alias, it's often a good choice to just use the MQTT topic. So the substitution would be ${topic()}.

profile pictureAWS
전문가
Greg_B
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인