Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
function deviceInfo()
{
    var device_info = new BSDeviceInfo();
    document.getElementById("modelText").innerHTML = device_info.model;
    document.getElementById("versionText").innerHTML = device_info.version;
    document.getElementById("bversionText").innerHTML = device_info.bootVersion;
    document.getElementById("serialText").innerHTML = device_info.deviceUniqueId;
    document.getElementById("familyText").innerHTML = device_info.family;

    document.getElementById("uptime").innerHTML = device_info.deviceUptime;
    document.getElementById("lifetime").innerHTML = device_info.deviceLifetime;
    document.getElementById("bootcount").innerHTML = device_info.deviceBootCount;

    if(device_info.VersionCompare("4.7.36") > 0)
    {
        document.getElementById("version1").innerHTML = "Version > 4.7.36"
    }
    else
    {
        document.getElementById("version1").innerHTML = "Version <= 4.7.36"
    }
    
	if(device_info.HasFeature("Six Channel Audio"))
    {
        document.getElementById("feature").innerHTML = "6 Channel Audio Available"
    }
    else
    {
        document.getElementById("feature").innerHTML = "6 Channel Audio NOT Available"
    }
}