Skip to main content

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

    chanId uuidrequired

    Unique channel identifier.

Query Parameters

    limit integer

    Possible values: >= 1 and <= 1500

    Default value: 10

    Size of the subset to retrieve.

    offset integer

    Number of items to skip during retrieval.

    publisher uuid

    Unique thing identifier.

    format string

    Possible values: [messages, params, infos]

    Default value: messages

    Message type.

    subtopic string

    Message subtopic.

    name string

    SenML message name.

    v string

    SenML message value.

    vb boolean

    SenML message bool value.

    vs string

    SenML message string value.

    vd string

    SenML message data value.

    from number

    SenML message time in nanoseconds (integer part represents seconds).

    to number

    SenML message time in nanoseconds (integer part represents seconds).

    ds string

    Data decimation granularity. Format: {number}{s|m|h|d|w|M|y}

    dsf string

    Possible values: [max, min, avg, sum, stddev, variance]

    Data decimation algorithm.

    dsv string

    Possible values: [v, vb]

    Data decimation type. v: number, vb: boolean

Responses

Data retrieved.

Schema
    total number

    Total number of items that are present on the system.

    offset number

    Number of items that were skipped during retrieval.

    limit number

    Size of the subset that was retrieved.

    messages object[]
  • Array [
  • channel integer

    Unique channel id.

    publisher integer

    Unique publisher id.

    protocol string

    Protocol name.

    name string

    Measured parameter name.

    unit string

    Value unit.

    value number

    Measured value in number.

    stringValue string

    Measured value in string format.

    boolValue boolean

    Measured value in boolean format.

    dataValue string

    Measured value in binary format.

    valueSum number

    Sum value.

    time number

    Time of measurement.

    updateTime number

    Time of updating measurement.

  • ]
Loading...