In Niagara there is a point configured which has an alarm extension set to place the point's value in its fault state. When making either a WatchSub or WatchPoll request against this point, the curStatus=fault as expected however both the zinc and json responses come back with a null value as shown below:
Is it expected that nHaystack should return a null curVal when curStatus is in fault? If this is expected behavior what would be the reasoning for not returning the value when the point is in fault?
Tyler B. Long Wed 17 Feb 2021
In Niagara there is a point configured which has an alarm extension set to place the point's value in its
fault
state. When making either a WatchSub or WatchPoll request against this point, thecurStatus=fault
as expected however both the zinc and json responses come back with a null value as shown below:The json reponse:
The zinc response:
Is it expected that nHaystack should return a null
curVal
whencurStatus
is in fault? If this is expected behavior what would be the reasoning for not returning the value when the point is in fault?Edit: Posted this info on the github repo below in case these questions turned out to be more of a nHaystack issue rather than generic haystack behavior: https://github.com/ci-richard-mcelhinney/nhaystack/issues/9
Brian Frank Wed 17 Feb 2021
By definition curVal is only available if curStatus is ok or stale. So that seems like the correct behavior to me
Tyler B. Long Wed 17 Feb 2021
Thanks for confirming. The updated curStatus page makes it more clear when curVal is not to be expected.