Retrieves JSON messages
GET/iot/reader/channels/:chanId/messages
Retrieves a list of messages sent to a specific channel.
Authorization Action:
core:channels:subscribe
Request
Path Parameters
Unique channel identifier.
Query Parameters
Possible values: [messages
, params
, infos
]
Default value: messages
Message type.
Message subtopic.
Possible values: >= 1
and <= 1500
Default value: 10
Size of the subset to retrieve.
Number of items to skip during retrieval.
Message time in nanoseconds (integer part represents seconds).
Message time in nanoseconds (integer part represents seconds).
Responses
- 200
- 400
- 401
- 500
Data retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Total number of items that are present on the system.
Number of items that were skipped during retrieval.
Size of the subset that was retrieved.
messages object[]
Unique channel id.
Unique publisher id.
Protocol name.
Measured parameter name.
Value unit.
Measured value in number.
Measured value in string format.
Measured value in boolean format.
Measured value in binary format.
Sum value.
Time of measurement.
Time of updating measurement.
{
"total": 0,
"offset": 0,
"limit": 0,
"messages": [
{
"channel": 0,
"publisher": 0,
"protocol": "string",
"name": "string",
"unit": "string",
"value": 0,
"stringValue": "string",
"boolValue": true,
"dataValue": "string",
"valueSum": 0,
"time": 0,
"updateTime": 0
}
]
}
Bad request.
Unauthorized.
Unexpected server error.