Skip to content
ogavb edited this page Sep 17, 2019 · 6 revisions

Application Headers example 1.0.0 documentation

A cut of the Streetlights API to test application header changes supporting

Table of Contents

Servers

URL Protocol Description
test.mosquitto.org:{port} mqtt Test broker
URL Variables
Name Default value Possible values Description
port 1883
  • 1883
  • 8883
Secure connection (TLS) is available through port 8883.

Channels

Channel Parameters

streetlightId

The ID of the streetlight.

Name Type Description Accepted values
streetlightId
string</td>
Any

publish smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured

Message

Inform about environmental lighting conditions of a particular streetlight.

Headers
Name Type Description Accepted values
MQMD
object</td>
Any
MQMD.CorrelId
string</td>
Any
applicationInstanceId
string</td>

Unique identifier for a given instance of the publishing application

Any
Example of headers (generated)
{
  "MQMD": {
    "CorrelId": "stringstringstringstring"
  },
  "applicationInstanceId": "string"
}
Payload
Name Type Description Accepted values
lumens
integer</td>

Light intensity measured in lumens.

Any
sentAt
string</td>

Date and time when the message was sent.

Any
Example of payload (generated)
{
  "lumens": 0,
  "sentAt": "2019-09-17T20:41:49Z"
}
Clone this wiki locally