I want to use
modbustcp to gather some data from a
modbus over tcp server. And I want to attach a timestamp on the output message. Which one is the best solution:
- modify the original
modbustcpsource code. I am not so familiar with the coding. It used some promise and async feature.
- modify use injection to add timestamp at both start and end of
modbustcp readnode and calculate the average timestamp to set the time of msg result.
- Is there any internal mechanism to include the timestamp to output result?