bool IsOpen(string devName = null)

Check if the device is opened or not.

Parameters

Name Description
devName (Optional) string
Target the device via the name from the Config Tool.

Return

true, if open.

Security

Trust Level Required: Full Trust

Example


if(!KioCustomSerialDevice.IsOpen()) console.log('EMERGENCY! It is NOT!');

Requirements

KioWare for Windows version 8.12 or greater.