dblume commited on 2023-02-22 13:17:41
Showing 2 changed files, with 8 additions and 4 deletions.
... | ... |
@@ -5,6 +5,8 @@ end sub |
5 | 5 |
function getDeviceInfo(deviceInfo as object) as Object |
6 | 6 |
' Try to get various info from an ECP call |
7 | 7 |
aa = {} |
8 |
+ aa["RIDA"] = deviceInfo.GetRIDA() |
|
9 |
+ aa["client ID"] = deviceInfo.GetChannelClientId() |
|
8 | 10 |
request = CreateObject("roUrlTransfer") |
9 | 11 |
request.SetUrl("http://localhost:8060/query/device-info") |
10 | 12 |
root = CreateObject("roXMLElement") |
... | ... |
@@ -34,9 +36,11 @@ function getDeviceInfo(deviceInfo as object) as Object |
34 | 36 |
return aa |
35 | 37 |
end if |
36 | 38 |
' That did not work, so make a custom one. |
37 |
- clientID = Right(deviceInfo.GetChannelClientId(), 6) |
|
38 |
- modelID = deviceInfo.GetModel() |
|
39 |
- return { "client ID": clientID, "model": modelID } |
|
39 |
+ aa["model"] = deviceInfo.GetModel() |
|
40 |
+ mmrb = deviceInfo.GetOSVersion() ' major minor revision build |
|
41 |
+ aa["firmware version"] = mmrb["major"]+"."+mmrb["minor"] +"."+mmrb["revision"]+" build "+mmrb["build"] |
|
42 |
+ |
|
43 |
+ return aa |
|
40 | 44 |
end function |
41 | 45 |
|
42 | 46 |
function executeTask() as void |