Asset Tracker MQTT Error -116

Hi,

I have tried to follow the steps outlined in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html to connect my Thingy 91 to Azure. I am seeing the below message in LTE Link Monitor:

mqtt_helper: mqtt_connect, error: -116

What does error -116 mean in the context of Azure IoT hub connection?

Parents Reply
  •   No, it's the other way around. PSK can not be used for Azure IoT Hub.
    But in the modem trace that you provided, the modem attempts to use PSK for the TLS handshake. The server denies that request, and that is the reason for the error that you see.

    When the modem attempts to use PSK, it is an indication that certificates and private key have not been correctly provisioned to the modem. Please make sure that the device certificate and private key are added to the correct fields in the Certificate manager. In addition, you can delete the PSK entries in the sec tag that you use.

    You can check which entries exist on a sec tag by sending the AT command AT%CMNG=1.

    Note that you can view the trace that you capture in Wireshark, either by using the Trace Collector v2 or the Cellular Monitor Preview application in nRF Connect  for desktop. You can then inspect the TLS handshake and see what's going on. In this case, it's visible in the Client hello message from the device that it requests to use PSK cipher suites, which the server immediately denies.

Children
Related