boolean isOpen()
This function is used to check if a connection is open.
Return
True if a connection is open. False, otherwise.
Examples
function isOpen() {
if(!KioGPIOBoard.isOpen())
KioWareUtils.LogErr('KioGPIOBoard device failed to open');
}
function onNumatoGPIOOpened(success) {
if(success) KioWareUtils.LogInfo('GPIO device open');
else KioWareUtils.LogErr(('GPIO device failed to open'));
}
//Poll device to check for connectivity
setInterval(isOpen, 100)
Requirements
KioWare for Android version 3.22 or greater.