...
{}
: Returns the USB topology as a string list.{format: "xml"}
: Iftrue
}: Returns , returns the USB topology as an XML-formatted string.{format: "array
: true"}
: Returns Returns an array of associative arrays. Each associative array contains information about a single USB port.rebuild
: Iftrue
, ensures that the returned information is up to date with the current hardware status.
Code Block | ||||
---|---|---|---|---|
| ||||
di = CreateObject("roDeviceInfo") tp = di.GetUSBTopology({format: "xml", rebuild:true}) |
Code Block | ||
---|---|---|
| ||
BrightScript Debugger> di = CreateObject("roDeviceInfo") BrightScript Debugger> topo = di.GetUSBTopology({}) BrightScript Debugger> print topo { "containers": [ { "category": "HUB", "fid": "", "pid": 1552, "raw": "1-1", "type": "", "vid": 1507 } ], "devices": [ { "category": "HID", "fid": "B.0", "ident": "usb/hiddev0", "pid": 60931, "raw": "1-1.2:1.0", "type": "BP900", "vid": 2127 } ... |
...