SangamAngre
SangamAngre

Reputation: 867

Android AWS IoT example not updating shadow

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?

Upvotes: 1

Views: 1636

Answers (2)

praveen
praveen

Reputation: 91

@RamithDR

I was facing the same issue and then have added iot full access policy ,then it starts working.

AWSIoTFullAccess

Upvotes: 0

SangamAngre
SangamAngre

Reputation: 867

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

Upvotes: 3

Related Questions