int GetMode(string)
Use this function to determine whether the device is in normal mode or acceleration logger mode.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
devName |
(Optional) string The name of the device. If not supplied, the first matching configured device of this type will be used |
Return
Returns 0 if in normal mode or 1 if in acceleration logger mode.
Remarks
Examples
function getMode() {
var mode = KioOmronEnviroSensor.GetMode();
updateResults('Mode: ' + (mode == 0 ? 'Normal' : 'Acceleration Logger'));
}
Requirements
KioWare for Windows version 8.16 or greater.