DigishowScriptable {

    property int device: -1;

    function onStart() {

        device = utilities.comOpen('/dev/cu.usbserial-110', 115200)
        alert(device != -1 ? "Device Connected" : "Device Not Connected !\r\nEdit connection settings in the attached script file.");
    }

    function onStop() {

        utilities.comClose(device);
    }
}
