You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding more flexability to how to pick a driver (a4bfc4b)
BREAKING CHANGES
Modified module export structure
The module's export structure has been changed from direct driver export to a new API that supports explicit driver selection.
Old usage:
constbluetooth=require(‘@stoprocent/bluetooth-hci-socket');// Automatically selected driver based on platform/env
New usage:
consthci=require('@stoprocent/bluetooth-hci-socket');// Using default (automatic) driver selectionconstdefaultDriver=hci.default;// OR explicitly selecting a driverconstnativeDriver=hci.loadDriver(‘native);constuartDriver=hci.loadDriver('uart');constusbDriver=hci.loadDriver('usb');
This change allows users to explicitly control which driver they want to use, but requires updating import statements and usage patterns in existing code.