I created a monitor using the following configuration:
1206
2617
2012-12-19T21:38:52.947Z
2012-12-19T21:26:45.720Z
DataStream
tcp
json
1
none
ACTIVE
0
I’m able to successfully connect, but no update messages are ever sent. I can confirm that the actual data streams/data points are being updated in iDigi, but push updates are not being sent on the open TCP socket.
Please advise ASAP.
Through trial and error, we solved this issue. A few notes that might help others:
-
You actually want to subscribe to the DataPoint monitor topic, not the DataStream monitor topic
-
The JSON format that is sent is quite different than the data format that is returned from the DataStream API. The timestamp is a string in the DataStream API and a number in the push message (in both cases it is the milliseconds since 1970). Also, the DataStream API has a different structure, with the value being contained in a JSON subobject called “currentValue”, and the DataPoint push messages are a flat structure.