Settting IoT Hub to TLS 1.2 results in an MQTT not authorized issue

Eric Brunner 0 Reputation points
2025-08-12T08:47:35.5066667+00:00

Hi,

After setting the IoT hub to TLS 1.2, my Azure IoT DevKit board doesn't connect anymore.

I narrowed the area in the code down where the issue happens when I configured IoT hub with TLS 1.2:

Firmware: https://github.com/eclipse-threadx/getting-started/tree/master/MXChip/AZ3166

Code Area:

https://github.com/eclipse-threadx/netxduo/blob/2973652d801e92615caa285ad9ee13db19a26cb9/addons/mqtt/nxd_mqtt_client.c#L4203

 

Method:

 

UINT _nxd_mqtt_client_connect(NXD_MQTT_CLIENT *client_ptr, NXD_ADDRESS *server_ip, UINT server_port,  UINT keepalive, UINT clean_session, ULONG wait_option)

 

Call to:

 

/* Process CONNACK message.  */

    status _= *nxd_mqtt_process_connack*(client_ptr, packet_ptr, wait_option);

 

Returns:

 

Status: 65669 (NXD_MQTT_ERROR_NOT_AUTHORIZED 0x10085)

 

It seems the the whole Azure RTOS (eclipse-threadx) project is inactive since 3 years, Any help much appreciated 😊

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.