nrf9160 azure_iot_hub sample with Azure IoT Central

Hi All, 

I try to connect nrf9160 to our azure space ( Azure IoT Central) using sample : sdk-nrf/samples/nrf9160/azure_iot_hub at main · nrfconnect/sdk-nrf · GitHub

After this update and generating certificats, the code still give error in connection: 

[00:00:13.334,350] [1B][0m<dbg> azure_iot_hub: connection_state_set: New connection state: STATE_INIT[1B][0m
[00:00:13.341,979] [1B][0m<dbg> azure_iot_hub: mqtt_evt_handler: MQTT_EVT_DISCONNECT: result = -111[1B][0m
[00:00:13.341,979] [1B][0m<dbg> azure_iot_hub: connection_state_set: New connection state: STATE_INIT[1B][0m
[00:00:13.344,726] [1B][1;31m<err> azure_iot_hub: Cloud MQTT input error: -111[1B][0m

It's possible to use this sample to test connexion to  Azure IoT Central or is valid only for Azure IoT Hub?

If no, can you suggest for use a working sample with Azure IoT Central or any updates to do in sample for IoT Central?

Thank you! 

Parents Reply Children
  • Christoffer Brask said:
    I would also like to know if there are any news on samples with IoT Central

    We do still not have any libraries for Azure IoT Central.

    Christoffer Brask said:
    or how much should be changed to make the IoT Hub sample work with Central

    This is not a feature we have implemented or tested. However, if I understend correctly IoT Central requires the same communication protocols as IoT Hub, so it should be a matter of updating the interface code.

    We do have support for DPS, which IoT Central needs.

    I cant say how much work it is, as I have not tried it myself, but I think it should be possible.

    Regards,
    Sigurd Hellesvik

Related