Skip to main content

Connection: Bridge → setTransport

v1 required users to install the native DCENT Bridge and connect over USB. v2 connects directly from the browser — add one call.

v1v2
MediumBridge native app (install)browser-direct
TransportsUSB onlyWebHID + Web Bluetooth
Selectionhandled by Bridgedcent.setTransport('hid' | 'ble')
// add before your first device call (inside a click handler)
dcent.setTransport('hid') // WebHID over USB — or 'ble' for Bluetooth
warning

There is no 'webusb' value and no WebUSB transport; physical USB is WebHID. See setTransport.