Modbus RTU data to Azure MQTT

Hello,
With my TRB245 device I am able to read data on a Modbus RTU slave. Data is an array of 16 values. I am also able to send this array to my Azure IoT Hub with MQTT, by adding this data in a JSON package.

Now I would like to separate my array, by something like this:

Do you know a way to do it ?

Thanks a lot for your help !

Hello,

You would like to separte Modbus requests into separte arrays and send them in a single MQTT message. Is that correct?

If so, there will be a lot of changes to the ‘data to server’ functionality in v7.5 firmware. With the new version, you will have way more flexibility when it comes to JSON data formats. Thus, I suggest you update the firmware whenever the new version is released as this will likely be possible with new firmware version. While there are no specific dates for v7.5, it should be released in the upcoming months if everything goes well.

Kind Regards,

Yes something like that. The modbus request reads 13 registers and I send it the full array with the %a command in JSON package:

And my goal is to take only some registers and to send them separately in the JSON package, like described in the picture in my first message.

I see we can add a script, what could be done by using this ?

Hello,

This is not possible currently, because those separate requests need to be included in a single message. However, this should be possible with v7.5 firmware as I have already mentioned. Therefore, my suggestion is to wait for the release of the v7.5 firmware version.

Kind Regards,

Hello,

Ok thanks. Is there a way to get a notification when v7.5 is released ?

Best regards

Hello,

There are no specific dates as of yet. If everything goes well, it should be released in the upcoming months.

Kind Regards,

Ok, thank you for your help.

This topic was automatically closed after 15 days. New replies are no longer allowed.