jasongin / noble-uwp

Noble (Node.js Bluetooth LE) with Windows 10 UWP bindings
MIT License
83 stars 45 forks source link

fix for missing connection change event #42

Open farfromrefug opened 6 years ago

farfromrefug commented 6 years ago

Hi realized that i had no disconnect events on windows. After debugging it i realized that my device was stored as 00000190a0c2 in _deviceMap but doing sender.bluetoothAddress.toString(16) in _onConnectionStatusChanged was only returning 190a0c2 This PR fixes this by appending zeros

jasongin commented 6 years ago

The CI is just complaining that node version 5 is no longer supported. Other versions succeeded. I need to remove version 5 (and 7) from appveyor.yml.