Retrieves SenML 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: >= 1
and <= 1500
Default value: 10
Size of the subset to retrieve.
Number of items to skip during retrieval.
Unique thing identifier.
Possible values: [messages
, params
, infos
]
Default value: messages
Message type.
Message subtopic.
SenML message name.
SenML message value.
SenML message bool value.
SenML message string value.
SenML message data value.
SenML message time in nanoseconds (integer part represents seconds).
SenML message time in nanoseconds (integer part represents seconds).
Data decimation granularity. Format: {number}{s|m|h|d|w|M|y}
Possible values: [max
, min
, avg
, sum
, stddev
, variance
]
Data decimation algorithm.
Possible values: [v
, vb
]
Data decimation type. v
: number, vb
: boolean
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.