AWS IoT for DynamoDB

0

I connected my device (ESP32) to the IoT core and I'm receiving messages subscribing to a topic in the MQTT test, but my messages don't arrive in DynamoDB, could someone more experienced help me? I've already reviewed the rules, roles and attached the appropriate policies, but I can't find the error. Enter image description here Enter image description here Enter image description here Enter image description here

help me, please

2개 답변
2
수락된 답변

Hi,

please check CloudWatch logs for details about your rule execution (logging must be enabled for AWS IoT Core).

Your payload has temperature and humidity as keys. What is your primary key in DynamoDB? Every primary key identifies every item uniquely. Temperature or humidity can have the same value over time and cannot be considered to be unique.

To generate a unique key from your SQL statement you could use something like

SELECT newuuid() as prim_key, * FROM 'mytopic'

Cheers,

Philipp

AWS
전문가
답변함 2년 전
0

I added the variable "Time" to my message and set it as my partition key and finally I have data in my table. Enter image description here Enter image description here Enter image description here Enter image description here

답변함 2년 전

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

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

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