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

MQTT trouble (mqtt_simple & asset_tracker)

Hello,

I am working on a custom PCB with nrf9160 capable of getting good signal (tested using 'at_client' sample) and all is well on the hardware.

I am currently working on sending and receiving messages using mqtt and I am facing issues mostly because I am new to LTE devices.

I have 2 issues which possibly relate to each other:

1. I have uploaded 'asset_tracker' onto my PCB and I get error -111. I think this is due to certifications required to connect to nrf cloud. Please confirm or correct me.

2. I tried using 'mqtt_simple' but compiler cannot find reference to  'net_addr_ntop(family, src, dst, size);' in 'socket.h'. How can I fix this issue?

Thank you

Parents
  • Hi,

     

     

    1. I have uploaded 'asset_tracker' onto my PCB and I get error -111. I think this is due to certifications required to connect to nrf cloud. Please confirm or correct me.

     This is correct. Only development kits have nrf cloud certifications preloaded onto the nRF9160.

      

    2. I tried using 'mqtt_simple' but compiler cannot find reference to  'net_addr_ntop(family, src, dst, size);' in 'socket.h'. How can I fix this issue?

    It sounds like the "nrf" revision is not compatible with the other repositories it depends on. When updating "nrf", you also need to run "west update":

    cd ncs/nrf

    west update

     

    Could you try this, then rebuild the sample?

     

    Kind regards,

    Håkon 

Reply
  • Hi,

     

     

    1. I have uploaded 'asset_tracker' onto my PCB and I get error -111. I think this is due to certifications required to connect to nrf cloud. Please confirm or correct me.

     This is correct. Only development kits have nrf cloud certifications preloaded onto the nRF9160.

      

    2. I tried using 'mqtt_simple' but compiler cannot find reference to  'net_addr_ntop(family, src, dst, size);' in 'socket.h'. How can I fix this issue?

    It sounds like the "nrf" revision is not compatible with the other repositories it depends on. When updating "nrf", you also need to run "west update":

    cd ncs/nrf

    west update

     

    Could you try this, then rebuild the sample?

     

    Kind regards,

    Håkon 

Children
Related