The Device Cloud has proven to be a very useful tool for those who learn to use it to their advantage. This article will cover the subject of Data Streams, and how to receive more than 1000 Data Points of Data Stream information using the Device Cloud Web Services API.
When a Web Services request to read a Data Stream is sent to Device Cloud, the maximum number of Data Points which can be received in one response is 1000
. Many Data Streams being pushed up to Device Cloud today consist of more than 1000 Data Points however. In today's busy Internet of Things, Smart Energy and Sensor Networking devices by the thousands are reporting new data every moment.
The maximum number of Data Points returned per Data Stream call is 1000. However, you can get the next 1000 Data Points in the stream by utilizing <pageCursor>:
The second call to get the next 1000 Data Points would be:
You could then get a third thousand (if additional Data Points exist) by replacing the page cursor with the one returned in the second call, and so on. Further Reading: Device Cloud Programming Guide
- See the Data Streams
Last updated: Aug 08, 2017