Turn off

SUB smartylighting/streetlights/1/0/action/{streetlightId}/turn/off
SUBSCRIBE smartylighting/streetlights/1/0/action/{streetlightId}/turn/off

Turn on/off

Command a particular streetlight to turn the lights on or off.

Headers

Payload

  • command string

    Whether to turn on or off the light.

    Values are true or false.

  • sentAt string(date-time)

    Date and time when the message was sent.

Headers example
{
  "my-app-header": 42
}
Payload example
{
  "command": true,
  "sentAt": "2023-05-04T09:42:00+00:00"
}