This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sample Azure IoT Hub (Thingy9.1)

Hello,

I have the same problem as this topic: https://devzone.nordicsemi.com/f/nordic-q-a/77267/nrf9160-azure-iot-hub-on-thingy91-mqtt-connect-error

I'm using nrf Connect v3.7.1, LTE link monitor v1.1.10. I made the last firmware update 2021-10-20. Sample in the ncs v1.7.1.

Maybe I forgot a step?

Here are the steps I did:

- prj.conf : add the CONFIG_AZURE_IOT_HUB_DEVICE_ID & CONFIG_AZURE_IOT_HUB_HOSTNAME & CONFIG_AZURE_IOT_HUB_DPS=y & CONFIG_AZURE_IOT_HUB_DPS_ID_SCOPE

- certificates.h: change name file and add the ca cert, client key and cert. I add it also with LTE link monitor to be sure.

If you have any useful tips or information, thank you in advance for your help!

Voici mes logs et traces :

trace-2021-11-16T15-37-04.024Z.bin

Parents Reply
  • Hi Acti,

    On your device, you have 3 certs, from the following places:

    Client cert: Generated by you
    Client Key: Generated by you
    CA cert: Baltimore CyberTrust Root certificate*

    For DPS group enrollment the server should have 1 cert:

    Root/Intermediate CA cert: Generated by you

    Our documentation advises to use this tutorial to generate certs. You can use other methods, but I advise to use this method first, to see that everything works.
    (* Same about the Baltimore CyberTrust Root; You could possibly be able to use other certs in place of this. But we know that the Baltimore CyberTrust Root works, so at least use this for the first tests, just to see that everything works.)

    If you are still not able to make it work with the above settings, I advise you to try and make the IoT Hub work without DPS first.
    DPS adds a layer of complexity, and will make the issue harder to debug.

    Regards,
    Sigurd Hellesvik

Children
No Data
Related