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.
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.