Ad Widget

Collapse

Agent2 Modbus plugin timing tweak

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • milanraf
    Junior Member
    • May 2023
    • 2

    #1

    Agent2 Modbus plugin timing tweak

    Hello to the Forum

    I've slightly modified the "modbus.get" key in Agent2 modbus plugin, in order to report the monitored device's response time.
    The typical string output is:
    {"Data":[2367,2368,2367,4104],"Elapsed":34}
    where "Elapsed" is the time from Connect() to end of client.Readxxx, in milliseconds.
    It can then be trivially preprocessed with JSONPath.

    Just wondering if it could be of any use to add this in main code as a new key (say:"modbus.get.timed").

    Best

    Raf
Working...