Skip to content

probe-web / @probe-web/devices / requestProbe

Function: requestProbe()

ts
function requestProbe(opts?): Promise<USBDevice>;

Defined in: index.ts:82

Open the browser's USB device chooser and resolve with the device the user picks. Must be called from a user gesture. The chooser lists devices from PROBE_VENDOR_IDS; any: true lists every device, which CMSIS-DAP probes with other vendor IDs need. Rejects if WebUSB is missing or the user cancels.

Parameters

ParameterType
opts{ any?: boolean; }
opts.any?boolean

Returns

Promise<USBDevice>