Skip to main content

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

    chanId uuidrequired

    Unique channel identifier.

Query Parameters

    format string

    Possible values: [messages, params, infos]

    Default value: messages

    Message type.

    subtopic string

    Message subtopic.

    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.

    from number

    Message time in nanoseconds (integer part represents seconds).

    to number

    Message time in nanoseconds (integer part represents seconds).

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...