I use a RUT956. I need to format datetime information like “2025-01-06T17:12:10” for the MQTT Borker.
But the custom data input available is “%local_time%” (YYYY-MM-DD HH:MM).
Did you have more information about “datetime” format available for RUT956? Perhaps, it is possible to use “tag Expansion” (exemple : %local_time%@ISO8601) for a good “datetime” format?
This is the script that will write data to the custom register file:
#!/bin/ash
while true
do
date -u +"%Y-%m-%dT%H:%M:%SZ" > /tmp/regfile
sleep 1
done
Additionally, you will need to Enable Modbus TCP server in the WebUI Services → Modbus → Modbus TCP Server page as well as Custom register block option.