Skip to content

Commit

Permalink
- initial Windows support via Bluetooth HCI socket + WinUSB
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Aug 4, 2015
1 parent c054958 commit 39720f7
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A node.js module for implementing BLE (Bluetooth low energy) peripherals.

Need a BLE central module? See [noble](https://github.com/sandeepmistry/noble).

__Note:__ Mac OS X and Linux are currently the only supported OSes.
__Note:__ Mac OS X, Linux, and Windows are currently the only supported OSes.

## Prerequisites

Expand Down
4 changes: 2 additions & 2 deletions lib/bleno.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var platform = os.platform();

if (platform === 'darwin') {
bindings = require('./mac/bindings');
} else if (platform === 'linux') {
bindings = require('./linux/bindings');
} else if (platform === 'linux' || platform === 'win32') {
bindings = require('./hci-socket/bindings');
} else {
throw new Error('Unsupported platform');
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"os": [
"darwin",
"linux"
"linux",
"win32"
],
"scripts": {
"pretest": "jshint *.js lib/. test/. examples/.",
Expand Down

0 comments on commit 39720f7

Please sign in to comment.