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

User avatar
By Sushant Naik
#72371
villTech wrote:here, try my credentials, see if you will be able to connect:

Code: Select allchar endpoint[]    = "a1z2jqar706yvl.iot.us-east-2.amazonaws.com";
char key[]         = "AKIAJAZ6SYYN7WK7QC2Q";
char secret[]      = "e1ZQncUzE/hgTdNf5o9CUC0UXqnA+iHnJhs0LDvl";
char region[]      = "us-east-2";
const char* topic  = "$aws/things/ESP8266Test/shadow/update";


it worked , i have to see/create my credentials again!!
thanks for your time and support !!
i will update about it ... again
websocket layer connected
MQTT connecting
[WS][0][sendFrame] ------- send message frame -------
[WS][0][sendFrame] fin: 1 opCode: 2 mask: 1 length: 38 headerToPayload: 0
[WS][0][sendFrame] pack to one TCP package...
[write] n: 44 t: 29096
[WS][0][sendFrame] sending Frame Done (449595us).
[WS][0][handleWebsocketWaitFor] size: 2 cWsRXsize: 0
[readCb] n: 2 t: 29547
[WS][0][handleWebsocketWaitFor][readCb] size: 2 ok: 1
[WS][0][handleWebsocket] ------- read massage frame -------
[WS][0][handleWebsocket] fin: 1 rsv1: 0 rsv2: 0 rsv3 0 opCode: 2
[WS][0][handleWebsocket] mask: 0 payloadLen: 4
[readCb] n: 4 t: 29565
MQTT connected
[WS][0][sendFrame] ------- send message frame -------
[WS][0][sendFrame] fin: 1 opCode: 2 mask: 1 length: 44 headerToPayload: 0
[WS][0][sendFrame] pack to one TCP package...
[write] n: 50 t: 29583
[WS][0][sendFrame] sending Frame Done (444013us).
[WS][0][handleWebsocketWaitFor] size: 2 cWsRXsize: 0
[readCb] n: 2 t: 30029
[WS][0][handleWebsocketWaitFor][readCb] size: 2 ok: 1
[WS][0][handleWebsocket] ------- read massage frame -------
[WS][0][handleWebsocket] fin: 1 rsv1: 0 rsv2: 0 rsv3 0 opCode: 2
[WS][0][handleWebsocket] mask: 0 payloadLen: 5
[readCb] n: 5 t: 30047
MQTT subscribed
User avatar
By villTech
#72373 no user permission and policy set.

to create access key and secret:
click your account name from the aws iot console page
select My Security Credentials
select Access Keys
and click Create New Access Keys to create credentials
User avatar
By Sushant Naik
#72374
villTech wrote:no user permission and policy set.

to create access key and secret:
click your account name from the aws iot console page
select My Security Credentials
select Access Keys
and click Create New Access Keys to create credentials


https://www.youtube.com/watch?v=WJuXv5usXcY&t=13s this the video i used to create thing and user on AWS iot. however i think i am creating wrong policy/permission.