GET /rids/:rid/data_stream - Use non persistent web socket to single device
Opens WebSocket to Kaltiot Smart Cloud. Kaltiot Smart Cloud will push data from IoT Device to this WebSocket when there are new data available at IoT Device. Data comes as array of JSON objects
Request Parameters
Parameter | DataType | Description |
---|---|---|
rid | string | Resource Identifier |
Response Status Codes
Server will return 101 http code if WebSocket connection was accepted by server
For error cases see: Error Status Codes
Response Data Parameters
Parameter | Datatype | Description |
---|---|---|
rid | string | resource identifier |
timestamp | number | time in milliseconds from Jan 1970 UTC |
payload_type | string | enumeration data type for the payload. Possible values: STRING, INT, BINARY |
payload | depends on payload_type parameter | This is data object which IoT devices publishes. Can be everything as long as it comforts JSON standard |