27.2.2.3 getTagValuesAndFields
Get real-time tag values and tag fields
TagExecuteResultgetTagValuesAndFields(string lid, string projectName, string tagJsonStr, long interval, string intervalWPush)
Push notification method:
dispatchTagValues
Parameter:
Ø lid : customized connection id
Ø projectName : Project name
Ø tagJsonStr : json string of tag objects, tagType is must if you want to get its field.
[{
"tagName":"Sec",
"tagType":"3",
"value":null,
"spanHi":0.0,
"spanLo":0.0
},
{"tagName":"Min",
"tagType":"3",
"value":null,
"spanHi":0.0,
"spanLo":0.0
}]
Field Name |
Description |
tagName |
Tag name |
tagType |
Tag type (1:Analog; 2:Discrete; 3:Text) |
value |
Value |
spanHi |
Span High |
spahLo |
Span low |
Ø isFormat : the returned value is formatted
Ø interval : the push interval in milliseconds(value is 0 if realtime)
Ø intervalWPush : ‘Y’ - Use early push
Return value:
Ø tagExecuteResult : Please refer to 2.1