String getDeviceInfo()

This function can be used to retrieve a JSON string of device info.

Return

A JSON string of device info in the format: {'version': firmwareVersion, 'id': deviceId }

Examples


var GPIOdeviceInfo;							
							
function onNumatoGPIOOpened(success) {
	if(success) {
		GPIOdeviceInfo = JSON.parse(KioGPIOBoard.getDeviceInfo());
		KioWareUtils.LogInfo('Firmware Version: ' + GPIOdeviceInfo.version + 'Device Id: ' + GPIOdeviceInfo.id);
	}
	else KioWareUtils.LogErr('GPIO device failed to open');
}


    

Requirements

KioWare for Android version 3.22 or greater.