BSDeviceInfo
2 min
for more information about available methods, refer to the rodeviceinfo entry the javascript equivalent is deviceinfo docid\ xcvijzytq6jq780kloglu attributes model domstring readonly version domstring readonly deviceuptime int readonly devicelifetime int readonly devicebootcount int readonly bootversion domstring readonly deviceuniqueid domstring readonly family domstring readonly methods versioncompare(in domstring version) int bootversioncompare(in domstring version) int hasfeature(in domstring feature) boolean example the following javascript example posts device information on the page when the button is clicked 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" } }