Skip to content

Commit

Permalink
LastDPActionTime added to output (#52)
Browse files Browse the repository at this point in the history
Enhancement for #47 / #48: LastDPActionTime() gives back last event on datapoint.
For compatibility I did not replace the function call of `timestamp=...`, but added new `lastdpactiontime=....` output

Co-authored-by: Jens Maus <[email protected]>
  • Loading branch information
psytester and jens-maus committed Sep 22, 2023
1 parent b8b8f7b commit 5b5d83f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmlapi/state.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ if {[info exists sid] && [check_session $sid]} {
Write("' valuetype='" # oDP.ValueType());
Write("' valueunit='" # oDP.ValueUnit());
Write("' timestamp='" # oDP.Timestamp().ToInteger());
Write("' lastdpactiontime='" # oDP.LastDPActionTime().ToInteger());
Write("' />");
}
}
Expand All @@ -133,4 +134,4 @@ if {[info exists sid] && [check_session $sid]} {
} else {
puts -nonewline {<not_authenticated/>}
}
puts "</state>"
puts "</state>"

0 comments on commit 5b5d83f

Please sign in to comment.