27.2.2.6 getRealTimeTagValues

 

Get multiple-records of real-time tag values

RealtimeTagExecuteResultgetRealTimeTagValues(string lid, string projectName, stringsubscriptionJsonStr, long interval, string intervalWPush)

 

Push notification method:

dispatchRealTimeTagValues

 

Parameter:

Ø lid : customized connection id

Ø projectName : Project name

ØsubscriptionJsonStr :

{

              "Interval":1000,

              "Records":10,

              "Total":2,

              "Timeout":0,

              "Tags":[{

                             "Name":"Sec"

              },

              {

                             "Name":"Min"

              }]

}

 

Field Name

Description

Interval

Interval(ms)

Records

Number of records per tag

Timeout

Timeout (Not used)

Total

Total tags

Tags

Tag name list

Ø interval : Not used

Ø intervalWPush : Not used

 

Return value:

Ø   RealTimeTagExecuteResult :

{

              "resStatus":"0",

              "resString":null,

              "realtimeValueList":[{

                             "Name":"Sec",

                             "Total":10,

                             "StartTime":"2015-05-01 10:46:00",

                             "Values":["0","1","2","3","4","5","6","7","8","9"]

              },

              {

                             "Name":"Min",

                             "Total":10,

                             "StartTime":"2015-05-01 10:46:00",

                             "Values":["46","46","46","46","46","46","46","46","46","46"]

              }]

}

 

Field Name

Description

resStatus

Return code

resString

Return message

realtimeValueList

Return value

Field Name

Description

Name

Tag name

Total

Total records

StartTime

Start time of the return value

Values

Value list