bool SetLEDStateOperation (int, int, int, string)

Change the LED state for the startup, error, and connection operation states.


Trust Level Required: Full Trust


Name Description
startUp int
The LED mode when the device starts up. 0 is rainbow (default) and 1 is blue
error int
The LED mode when the device has an error. 0 is none (default) and 1 is red
connection int
The LED mode when the connection initializes. 0 is none (default) and 1 is green
devName (Optional) string
The name of the device. If not supplied, the first matching configured device of this type will be used


True in the event that the given values were set succesfully. False otherwise.



function setLEDStateOperation() {
	var startUp = document.getElementById('startUp').checked ? 0 : 1;
	var error = document.getElementById('error').checked ? 1 : 0;
	var connection = document.getElementById('connection').checked ? 1 : 0;
	updateResults('Success: ' + KioOmronEnviroSensor.SetLEDStateOperation(startUp, error, connection));



KioWare for Windows version 8.16 or greater.