I have downloaded AWS IoT Android samples from here. I successfully run AndroidPubSub example given in above list. I can connect and subscribe. But message which I am publishing is not updating device shadow I have on AWS. Even when I update shadow on AWS console message not came on android device. I am missing something very small somewhere or am doing completely wrong?
Asked
Active
Viewed 1,612 times
1
-
I recently started to integrate the mobile SDK to my Android app, but my connection keeps on logging "Reconnecting" without throwing any exceptions. Do you have an idea what could be wrong? – RamithDR Jul 06 '17 at 09:19
-
Did you check internet connection? – SangamAngre Jul 10 '17 at 19:03
2 Answers
3
It was my mistake. Non of the document about android AWS IoT mentioned about it. While publishing message to topic we should mention complete topic string available in AWS console. i.e.
$aws/things/lamp/shadow/update
Now adding complete string as topic I am able to publish message to AWS IoT. To receive updates on android device subscribe to /update/accepted.
$aws/things/lamp/shadow/update/accepted

SangamAngre
- 809
- 8
- 25
-
This is clearly mentioned in the AWS document. Your implementation must be designed by yourself. Sometimes we need "accepted" sometimes we use "delta". If ou understand the doc well you will understand what am I trying to say. – Shibin Francis Jan 23 '18 at 06:04
0
@RamithDR
I was facing the same issue and then have added iot full access policy ,then it starts working.
AWSIoTFullAccess

praveen
- 91
- 11