NRF52840 + OpenThread + Azure IoT Hub / MQTT Sample

Hi!

I am looking for a NRF52840+OpenThread+Azure IoT Hub SDK solution. Here is what I did so far. Nothing helped:

  1. Thead CLI Example on NRF52840 + Border Router on PI with RCP NRF52840 is working. I can ping ipv6 in mesh and outside mesh. I can ping ipv4 outside mesh
  2. I merged the code of nRF9160: Azure IoT Hub — nRF Connect SDK 2.2.99 documentation (nordicsemi.com) into the Thread CLI example, created and added certificates and ended up with:

Fullscreen
1
2
3
4
5
6
7
*** Booting Zephyr OS build v3.2.99-ncs1 ***
Azure IoT Hub sample started
Azure IoT Hub library initialized
AZURE_IOT_HUB_EVT_CONNECTING
E: getaddrinfo() failed, error -11
E: mqtt_helper_connect failed, error: 11
Connection request sent to IoT Hub
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I am aware of the following tickets but nothing what was described helped. There is no complete description included:

My ask is a working sample with Azure IoT Hub and Openthread / MQTT and Openthread.

I added my github repo to make the code available for testing: sebastianspross/nrf52840_ot_azure (github.com)

Really appriciate your help!

Thanks

Sebastian

Parents Reply Children
  • Thanks. How did you derive the name of CONFIG_OPENTHREAD_DNS_CLIENT?

    I tried. This time resolve4 is known but I get a timeout when I call

    Fullscreen
    1
    2
    3
    ot dns resolve4 google.com
    DNS response for google.com.-
    Error 28: ResponseTimeout
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • I am sorry for delays Sebastian, I did not manage to get in contact with the team, I will try to do so tomorrow. Thanks a lot for your patience.

  • most of the OT features are enabled from Zephyr from this CMake file
    as for the DNS4 test, I guess more information is needed about the setup and logs. Is there a properly configured and connected border router in the Thread network? are there some Wireshark files to know what's going on with that DNS packet?