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 

  • Thank you. your suggestion worked.

    I had issues with 'west update' which were resolved.

    I had to switch to an older version of GNU (x-2018-qx to 7-2018-q2-update) according to getting started assistant. After I did that 'west update' worked fine.

    I do have another issue i have to fix now if you have any suggestions or should I open up another ticket?

    When I build any sample:

    No such file or directory: 'C:/nRFsdk/ncs/nrf/samples/nrf9160/at_client/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'

Reply
  • Thank you. your suggestion worked.

    I had issues with 'west update' which were resolved.

    I had to switch to an older version of GNU (x-2018-qx to 7-2018-q2-update) according to getting started assistant. After I did that 'west update' worked fine.

    I do have another issue i have to fix now if you have any suggestions or should I open up another ticket?

    When I build any sample:

    No such file or directory: 'C:/nRFsdk/ncs/nrf/samples/nrf9160/at_client/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'

Children
Related