I am in need of some assistance with a project I'm currently working on. I need to monitor an energy meter through MODBUS, and while all the energy measurements are assigned to registers, there is no timestamp included.
To capture the timestamp of the measurement, the closest we can get is by using the time of the request with an inject node and passing it in the flow as the timestamp of the measured values. However, the issue I'm encountering is that the output of the MODBUS node is fixed to only pass the register values, resulting in the timestamp being lost.
Here is a summary of what I'm trying to achieve:
- Use an inject node to initiate the request and capture the current timestamp.
- Pass this timestamp through the flow.
- Ensure the MODBUS node output includes the timestamp along with the register values.
Has anyone faced a similar issue or has any suggestions on how to achieve this? Any advice or examples would be greatly appreciated.
Thank you in advance for your help!