LEDSetting GetLEDState(LEDSetting, string)
Get the display rule and color info for the LED.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
LEDSetting |
LEDSetting
The current LED State |
devName |
(Optional) string The name of the device. If not supplied, the first matching configured device of this type will be used |
Return
An LEDSetting object that can be parsed as JSON.
Remarks
Examples
function getLEDState() {
var ledState = document.getElementById('ledState').selectedIndex;
var currState = KioOmronEnviroSensor.GetLEDState(ledState);
alert(JSON.stringify(currState, null, 2));
}
Requirements
KioWare for Windows version 8.16 or greater.