This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

switch cloud endpoint from nordic aws to our own aws account

I am trying to make the nrf9160 device work with our own AWS IoT account.

The nrf9160 device succeeds to run mqtt_client_tls_connect(). Then it runs mqtt_client_tls_write() to send a MQTT CONNECT command. However it doesn't receive MQTT CONNACK.

To debug this problem, I'd like to check the TCP layer packets exchanged between the device and the AWS IoT cloud.

1) could you please tell me how to turn on the log for showing the TCP layer packets in the device? 

2) could you please share experience for how to turn on the log for showing the TCP layer packets in the AWS IoT cloud?

Best,

Kai

Parents Reply
  • I can connect AWS and receive MQTT CONNACK as expected.

    However the cloud client ID has to be the one created by AWS. E.g., I need to add the following code in nrf_cloud_transport.c:

      #define NRF_CLOUD_CLIENT_ID "065301278048"

    "065301278048" is the AWS created client ID.

    If using the serial number obtained by AT command (AT+CGSN), it fails to connect AWS. 

    I understand that the sample asset_tracker does use the serial number as the client ID to connect AWS. do you know how it works?

    BTW, I don't see the button for closing case in my web page. I did close cases before, but now don't know how to do it :-(

    Best,
    Kai

Children
Related