So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By villTech
#72364 right. i tried to connect to your aws with your credentials this morning and just now, but i can not connect also. is something changed in your aws account? i can still connect on my own account.


however i just need to get data from shadow, is there anyother way or library to use ?

you can use any library that can connect to aws iot, odelot's in my case.
getting data from the shadows is simply subscribing to the shadow. when a shadow is changed, it will publish its value.
User avatar
By Sushant Naik
#72368
villTech wrote:right. i tried to connect to your aws with your credentials this morning and just now, but i can not connect also. is something changed in your aws account? i can still connect on my own account.


however i just need to get data from shadow, is there anyother way or library to use ?

you can use any library that can connect to aws iot, odelot's in my case.
getting data from the shadows is simply subscribing to the shadow. when a shadow is changed, it will publish its value.

no , i have not changed thing in AWS, using same credential i was able to update shadow from cheapskate project but problem wih that code is it gets resets

Code: Select all
Exception (3):
epc1=0x401003e9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x400295b9 depc=0x00000000

ctx: cont
sp: 3fff08a0 end: 3fff1140 offset: 01a0

Code: Select allvoid initAWS()
{
  iotClient.setAWSRegion("ap-southeast-1");
  iotClient.setAWSEndpoint("amazonaws.com");
  iotClient.setAWSDomain("aphpti0fiyatr.iot.ap-southeast-1.amazonaws.com");
  iotClient.setAWSPath("/things/IOTfl2017/shadow");
  iotClient.setAWSKeyID("AKIAI6WQ7UFK4JKZ7YJA");
  iotClient.setAWSSecretKey("w9uUzyJ8ugzRYvoZtDJ6MxR/9/1A2AQn7J4LioUg");
  iotClient.setHttpClient(&httpClient);
  iotClient.setDateTimeProvider(&dateTimeProvider);
}


Shadow ARN : arn:aws:iot:ap-southeast-1:053756736193:thing/IOTfl2017
HTTPS: aphpti0fiyatr.iot.ap-southeast-1.amazonaws.com
User avatar
By Sushant Naik
#72369
Use access keys to make secure REST or HTTP Query protocol requests to AWS service APIs. For your protection, you should never share your secret keys with anyone. As a best practice, we recommend frequent key rotation. Learn more

Create access key
Access key ID
Created
Last used
Status
AKIAI6WQ7UFK4JKZ7YJA
2017-12-06 20:16 UTC+0530
2017-12-07 11:50 UTC+0530 with iot in ap-southeast-1
Active | Make inactive
SSH keys for AWS CodeCommit
Use SSH public keys to authenticate access to AWS CodeCommit repositories. Learn more


Sorry but couldnt directly upload image, i think credential is right, if u need any other data from me please lemme know
User avatar
By villTech
#72370 here, try my credentials, see if you will be able to connect:

Code: Select allchar endpoint[]    = "a1z2jqar123yvl.iot.us-east-2.amazonaws.com";
char key[]         = "AKIAJAZ6SYYNWEQ7QC2Q";
char secret[]      = "e1ZQncUzE/hgTKHG5o9CUC0UXqnA+iHnJhs0LDvl";
char region[]      = "us-east-2";
const char* topic  = "$aws/things/ESP8266Test/shadow/update";
Last edited by villTech on Fri Dec 08, 2017 10:37 am, edited 1 time in total.