bool SetLEDStateOperation (int, int, int, string)

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

Security

Trust Level Required: Full Trust

Parameters

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

Return

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

Remarks

Examples

				
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));
}

	

Requirements

KioWare for Windows version 8.16 or greater.