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
  • Hi Kai,

    Try to make a small and simple proof of concept to see if the communication to your server is in order, and then start to add application-specific functionality.

    If you do get errors, please provide the output with the corresponding error code / errno.

    Parts of the "asset tracker" (based on the nrf_cloud_transport.c file) can be used to make a simplified application. Or just start editing the "Simple MQTT" accordingly. 

    Get the communication going, then start with your application.

    Kind regards,
    Oeyvind

Children
Related