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

nRF9160 DK AWS IoT cloud setup

We are using the nRF9160 DK with the Asset tracker example, which is working in combination with the nRF Cloud.

Now we want to use our own AWS account in combination with the nRF9160 DK. Therefore we changed the CONFIG_NRF_CLOUD_HOST_NAME to our host name. But the device will not connect. Are there any other changes necessary? In your example, the certificate test of AWS IoT is disabled, correct?

Do you have a documentation how the device should be configured to connect to the AWS server?
Where are all the settings stored, who are listed in the generated autoconfig.h file? For example changing the NRF Cloud Host Name?

Thank you for any suggestions.

Parents Reply
  • Hi Håkon

    Thank you for the information. I understand how the mqtt_simple example works.

    It is working but not really stable. Sometimes it will not be able to connect to the MQTT broker, other times it will not receive message on a subscribe topic although according to the serial port output it has connected to the broker and subscribing to the topic:

    The MQTT simple sample started
    
    
    
    
    LTE Link Connecting ...
    
    
    
    
    LTE Link Connected!
    
    
    
    

    IPv4 Address found 0x93614854
    
    
    
    

    [mqtt_evt_handler:150] MQTT client connected!
    
    
    Subscribing to: my/subscribe/topic len 18

    I also have other MQTT clients connected to the broker, they all works stable and receive the subscribe topics.

    Kind regards
    Meriba

Children
Related