hw/leds

The hw/leds URI gets a list of manageable LEDs.

URI path

hw/leds

Supported request methods

GET

Query the system for the list of addressable LEDs manageable by web services. The data record returned is a list of URIs corresponding to the “children” of hw/leds in the web services data tree.

On the WVA, there is a dimmer feature that is exposed as an LED for control purposes.

Supported content types

HTML

The result URIs are turned into URLs relative to the device, and returned in an HTML list.

XML

The result URIs are wrapped in element tags, and returned within an leds block. For example:

<leds>
        <element>hw/leds/led_1</element>
        <element>hw/leds/led_2</element>
        :
        <element>hw/leds/led_N</element>
</leds>

JSON

The result URI strings are collected in an array assigned to a buttons field. For example:

{ “leds” : [ “hw/leds/led_1”, “hw/leds/led_2”,  ...
                 “hw/leds/led_N” ] }

 

© 2019 Digi International Inc. All rights reserved.
hw/leds updated on 18 Oct 2017 09:58 AM