Hello,
I have an XDK110 and I'd like to connect it to AWS IoT Core through MQTT. I am using the template AwsSendDataOverMQTT but I'm having an error since weeks and I can't resolve it. I first followed this link this link but I had an error. Then, I have looked everywhere and I tried many things but still getting the error.
To connect to AWS IoT Core, I need certificates that I downloaded as shown in the previous link. I transformed them in der format, using the command lines:
openssl x509 -outform der -in rootCA.pem -out RootCA.der
openssl rsa -outform der -in xdk-priv.pem.key -out xdk-priv.der
And then I stored them in an SD card. I configured the connection to Wi-Fi and the MQTT connection:
But, when I'm trying, I always havean error while trying to connect to the broker:
I know this error is a failed connection to MQTT (I saw it in XdkComminInfo.h file with error cod 128), but I really don't understand how to fix this problem and I really need to use it. If you have any idea, it would be great!
Thank you for your time and help,
Jean
Hi Jeanmi,
Have you used correct client id?
Thank You 🙂
Hello,
Thank you for your answer. What would be the appropriate client id? Where can I find it?
Simon
Hi simon,
You can find your client id from first section of your AWS broker url.
E.x:
"mqtt":
{
"clientid": "a3lgqovuo4t80h",
"brokerurl": "a3lgqovuo4t80h.iot.eu-central-1.amazonaws.com",
"brokerport": 8883
}
Thank You 🙂