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.
| v1 | v2 | |
|---|---|---|
| Medium | Bridge native app (install) | browser-direct |
| Transports | USB only | WebHID + Web Bluetooth |
| Selection | handled by Bridge | dcent.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.