odelot / aws-mqtt-websockets

Implementation of a middleware to use AWS MQTT service through websockets, aiming the ESP8266 plataform
GNU Lesser General Public License v3.0
231 stars 67 forks source link

Using SessionToken to connect to AWS IoT Core #57

Open grgoncal opened 4 years ago

grgoncal commented 4 years ago

I'm using the library to connect to the AWS IoT Core using a sessionToken. I have followed these steps to be able to receive a token. I am able to receive the token, the accessKey and the secretAccessKey.

So I tried to input these variables into the aws-mqtt-websocket-example-pubsubclient.ino example. I have given two endpoints to the firmware, one for the credentials sts and other for the mqtt endpoint, but I'm receiving "Failed, rc=-2" error code.

Any help would be welcomed. Thanks.