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[] = "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";
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