adding device telemetry with undetermined number of values

Avigdor 40 Reputation points
2025-03-06T11:26:24.5666667+00:00

Hello,

I want to create a component to hold MODBUS register values and also be able to configure registers to be read.

How can I configure a component like that without knowing the amount of registers in advance?

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
372 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 35,336 Reputation points MVP
    2025-03-06T12:00:32.7833333+00:00

    Hello @Avigdor ,

    welcome to this moderated Azure community forum.

    working with the modbus protocol in industrial (Azure) IoT is a common scenario.

    You have added the tag Azure IoT Central which is the SaaS solution based on Azure IoT PaaS building blocks like the Azure IoT Hub.

    Azure IoT Central connects to devices only using the way that device can connect to the Azure IoT Hub. This is usually done via one of the SDKs of via the MQTT Protocol.

    Using Modbus (TCP) to connect to the cloud is a really not recommended. Modbus has no security.

    One way to connect a device speaking Modbus is buying a device (I have worked with Advantech Wise IO modules but there are many other devices available) or building a device that can connect to the Azure IoT Hub and communicate Modbus.

    Another solution is to make use of Azure IoT Edge, an edge solution you can put on top of an IPC, living in the local network and having a secure outbound connection to the IoT Hub.

    This can work with both Modbus TCP as Modbus RTU.

    This supports two way communication. See the examples on the related blog posts.


    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.


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.