How can I replace the use of wildcards for subscription to an IoT Hub pseudo topic

Marcos Moraga 20 Reputation points
2024-04-02T03:34:06.0566667+00:00

I require assistance in analyzing other tools or solutions provided by Azure that could help resolve the issue with my Modicon M262 PLC device, which is unable to use wildcard subscriptions for C2D communication, such as:

devices/deviceID/messages/devicebound/#

Currently, I am researching other services like Event Grid, but subscribing the PLC would require a certificate, which would be a last resort.

What other options might we have? Thank you very much, I will await your response.

Best regards from Chile!

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
399 questions
Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
362 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 32,556 Reputation points MVP
    2024-04-02T06:56:19.9+00:00

    Hello @Marcos Moraga ,

    welcome to this moderated Azure community forum.

    The Azure IoT Hub supports MQTT to communicate but the topics are all fixed to support the registry device twin.

    If devices want to use their own topics or do not want to connect the way the IoT Hub dictates, the EventGrid MQTT broker is a good alternative.

    The EventGrid MQTT broker supports plain MQTT(S) with flexible topic usage where you can manage which device is able to use which (groups of) topics for publish or subscribing.

    At this moment, supported authentication modes are:

    • Certificates issued by a Certificate Authority (CA)
    • Self-signed client certificate - thumbprint
    • Microsoft Entra ID token

    This is demonstrated with multiple programming language libraries, MQTTX and NodeRED.

    If this doesn't work for your PLC, see if you can add an Edge solution in between for eg. protocol translation. Check out Azure IoT Edge.

    If you wish other ways to authenticate, you can always add your wish here.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.