IoT-Hub cloud-to-device messages rejected when devices are connected through MQTT

Darius Kinstler 1 Reputation point
2021-07-27T08:51:05.717+00:00

Within a customer subscription, we're running into an issue related to C2D messaging where messages sent to devices connected via the MQTT protocol are sometimes rejected.

The general setup is that all devices (PLCs) are connected to an IoT-Hub via MQTT.
Each device may receive inputs from a related service which uses the ServiceClient class in the Microsoft.Azure.Devices package to send C2D messages.
The IoT-Hub itself is accessed only through a private endpoint and public access is blocked.

Sometimes, the IoT-Hub metrics display rejected messages. However, this shouldn't be possible according to the relevant documentation. It states:

Devices that connect over the Message Queuing Telemetry Transport (MQTT) Protocol can't reject cloud-to-device messages.

There are no devices connected that use a different protocol.

Are there other possible reasons a C2D message may be rejected?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
399 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,266 Reputation points
    2022-09-01T20:26:49.453+00:00

    Hello Team, Please make use of the latest documentation on the Azure IoT Support for MQTT protocol.

    Communicate with your IoT hub using the MQTT protocol

    236970-image.png

    IoT Hub MQTT 5 support overview (preview)

    237091-image.png

    Please comment in the below section and we would be happy to help you further in this matter.

    1 person found this answer helpful.
    0 comments No comments

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.