noble / node-bluetooth-hci-socket

MIT License
154 stars 185 forks source link

Adding a "bindUser" method to create a HCI_CHANNEL_USER socket #2

Closed ericabouaf closed 9 years ago

ericabouaf commented 9 years ago

Hi @sandeepmistry ,

Here is a pull request which allows creating a HCI_CHANNEL_USER socket.

Refs :

This mode allow to completely bypass the BlueZ layer and gain a direct access to the device. It's very useful for my use case, which consists in emulating a peripheral: I need to change the default behavior of BlueZ ( auto reconnections, auto service discovery after connection, etc... )

ericabouaf commented 9 years ago

@sandeepmistry : Here you go !

sandeepmistry commented 9 years ago

Similar functionality added via: https://github.com/sandeepmistry/node-bluetooth-hci-socket/commit/bbb4375ebc6c5227e64cf38dc0f79a87f9697420