Unable to Connect to AWS IoT via MQTTX

Hello

I'm currently trying to connect to an AWS IoT Core broker using the MQTTX client. I'm generating the necessary certificates through the CreateTeamDevice API endpoint, which provides the client ID and the certificate files.

I am serving the three certificated to .pem files and the client id from the API response.

I am trying to connect using the certificates and the client id. Using the following settings:

 I'm encountering an authorization error when attempting to connect. I'm unsure what part of the setup might be incorrect.

Could you help me identify what might be going wrong on the process or the settings?

Thank you

Parents Reply
  • Hello,

    No, I have not tried the AWS IoT sample.

    I am sorry for the misunderstanding, my main goal is to connect my computer as an MQTT client to the nrf Cloud in order to get the messages from other devices (nRF9160).

    My setup is that I already have a number of nRF9160 devices connected to the nRFCloud, that already send messages. I would like to connect my computer as an MQTT client to the nRFCloud in order to get all those messages to my computer. As you can see in the following picture.

    In order to do the above I have tried to use the CreateTeamDevice From the website: https://api.nrfcloud.com/

    Moreover, I have followed the next steps.

    In the following pictures I am trying to connect to the MQTT using the steps described above, but with no success.

    Here is the setup of the MQTT client on my computer.

    In the next picture I am getting the certificates.

    After the above steps my MQTT client can not connect to the nRFCloud.

    Do you know if I skip any step or do you have any guidelines on how I can achieve that?

    Thanks in advance 

Children
Related