Send data from cloud to aws iot thing

0 votes

I am trying to a reliable way to send data from aws lambda function to a aws iot thing. The thing is basically a raspberry pi which is located remotely.

I have seen aws iot topics, but they don't seem to be reliable for my use case.

So far I have found the following functionalities about topics

Topics:

  • Topics are asynchronous.
  • When something is added to topic all and only currently listening devices will receive the update.
  • There is no queueing.
  • No delivery notification for the publisher.

In my use case I need to know if the delivery is made(retry otherwise), but if the device is not connected, the topic might lose the write.

Is there a way to solve this issue. Any help is much appreciated.

Edit:

What I am trying to do is send data about a user who can interact with the device from a remote server.

To over come the limitation of topic for my use case I came up with the following solution.

Step 1: Dynamo -> lambda1 -> sqs -> topic1 -> remote device

Step 2: remote device(after getting the data) -> topic2(acknowledgement) -> lambda2(delete message from sqs) -> Update DB about action

Does this solution seem reliable?

Edit 2:

Basically I am trying to send all the updates made to a DB to IOT Thing.

Based on answer from @dvd86,

Step 1: DynamoStream -> lambda1 -> sqs -> Thing shadow desired

Step 2: shadow reported updated -> lambda2(delete message from sqs) -> Update DB about action

Aug 2, 2018 in IoT (Internet of Things) by Matt
• 2,260 points
118 views

1 answer to this question.

0 votes

Your solution is not recommend because there is a lot of troubles that you are going to have to implement yourself that Aws iot already implemented.

Your answer for this scenario is using AWS IoT shadow: https://docs.aws.amazon.com/iot/latest/developerguide/using-thing-shadows.html

answered Aug 2, 2018 by anonymous2
• 4,260 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

How to use the data I receive from Azure IoT Hub?

The payload you receive will be a ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by DataKing99
• 8,130 points
644 views
0 votes
1 answer
0 votes
1 answer

Azure IoT: Message from cloud to device using Rest API

Firstly, If you get No content response(error ...READ MORE

answered Dec 31, 2018 in IoT (Internet of Things) by Upasana
• 8,530 points
319 views
0 votes
1 answer

AWS IoT login from android MQTT client using IAM is not working

Seeing your comments and questions. I had ...READ MORE

answered Jul 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
408 views
0 votes
1 answer

aws iot describe-endpoint::You must specify a region

This fixed the problem: Browse to https://console.aws.amazon.com/iam/home?region=us-west-2#security_credentialand then if ...READ MORE

answered Jul 11, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
222 views
0 votes
1 answer
0 votes
1 answer

How to send a data from arduino uno to a webpage through esp8266 wifi module?

You are missing a few \r\n and the length ...READ MORE

answered Aug 9, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
1,521 views
0 votes
1 answer

Send LoRa measures to Fiware IOT agent via MQTT

down vote I dont know if I understood ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
346 views