Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated as per DOCS-732

...

  • {}: Returns the USB topology as a string list.
  • {format: "xml"}:  If true}: 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:  If true, ensures that the returned information is up to date with the current hardware status.



Code Block
languagejs
titleUpdates information and returns it in XML format
di = CreateObject("roDeviceInfo")
tp = di.GetUSBTopology({format: "xml", rebuild:true})
Code Block
titleString list
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
  }
...

...