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.