Skip to content

Commit 5b5d83f

Browse files
psytesterjens-maus
andcommitted
LastDPActionTime added to output (#52)
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]>
1 parent b8b8f7b commit 5b5d83f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xmlapi/state.cgi

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ if {[info exists sid] && [check_session $sid]} {
114114
Write("' valuetype='" # oDP.ValueType());
115115
Write("' valueunit='" # oDP.ValueUnit());
116116
Write("' timestamp='" # oDP.Timestamp().ToInteger());
117+
Write("' lastdpactiontime='" # oDP.LastDPActionTime().ToInteger());
117118
Write("' />");
118119
}
119120
}
@@ -133,4 +134,4 @@ if {[info exists sid] && [check_session $sid]} {
133134
} else {
134135
puts -nonewline {<not_authenticated/>}
135136
}
136-
puts "</state>"
137+
puts "</state>"

0 commit comments

Comments
 (0)