bool SetMode(int, string)

This function allows you to change the mode between normal mode and acceleration logger mode. Note: switching modes will cause a full memory reset, which will take around 2 minutes. During this time, the device's LED light will be blue to indicate that it is resetting.

Security

Trust Level Required: Full Trust

Parameters

Name Description
mode int
The mode to switch to. Use 0 for normal mode or 1 for acceleration logger mode.
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 setMode() {
	var mode = document.getElementById('mode').selectedIndex;
	updateResults('Success: ' + KioOmronEnviroSensor.SetMode(mode));
}
	

Requirements

KioWare for Windows version 8.16 or greater.