4.2.7 ChannelRangeRequest Message
Topic Version | 1 | Published | 10/16/2017 | |
For Standard | ETPW20 v1 |
This section contains an example of a ChannelRangeRequest message and a ChannelData response using this example data:
Property Name |
Example |
---|---|
channelRanges |
An array of ChannelRangeInfo |
channelId |
[ 0, 1, 2 ] |
startIndex |
0 |
endIndex |
10000 |
ChannelRangeRequest message:
// [3b197bda-c85d-4fc9-ab86-b9c4263407d1] Message sent at 2017-08-12 14:07:00.2222{
"protocol":1,
"messageType":9,
"correlationId":0,
"messageId":7,
"messageFlags":0}{
"channelRanges": [ {
"channelId": [0,1,2 ],
"startIndex": 0,
"endIndex": 10000 } ]}
ChannelData response:
// [3b197bda-c85d-4fc9-ab86-b9c4263407d1] Message received at 2017-08-12 14:07:01.7736{
"protocol":1,
"messageType":3,
"correlationId":7,
"messageId":6,
"messageFlags":1}{
"data": [ {
"indexes": [900,1426614604000000 ],
"channelId": 0,
"value": {
"item": 0.738779145171297 },
"valueAttributes": [ {
"attributeId": 0,
"attributeValue": {
"item": true } } ] }, {
"indexes": [900,1426614604000000 ],
"channelId": 1,
"value": {
"item": 0.63008946768478 },
"valueAttributes": [] }, {
"indexes": [900,1426614604000000 ],
"channelId": 2,
"value": {
"item": 0.189139311755607 },
"valueAttributes": [] } ]}