Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding options #121

Open
wants to merge 119 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
111b48b
Add optional params for scans and connections
Loghorn Jan 26, 2016
9378c10
Add callback for setScanParameters
Loghorn Jan 26, 2016
4859dd0
Add params to peripheral connect
Loghorn Jan 26, 2016
2628750
allow constructor parameters for hci socket
bitcloud Mar 27, 2017
a53e848
fixed uninitialized options
bitcloud Mar 29, 2017
edb5366
cleanup
bitcloud Mar 27, 2017
67da999
options for bindings (breaks mac support for now)
bitcloud Mar 31, 2017
0bca1d1
update README
bitcloud Jul 17, 2017
b3bac2f
added connection canceling to hci lib
bitcloud Mar 29, 2017
a84ed27
added 5.0 error messages
bitcloud Apr 2, 2017
df23047
Merge branch 'add_cancel_connection' into add_BT5_error_messages
bitcloud Jul 17, 2017
71fe7c4
Merge branch 'binding_options' into add_BT5_error_messages
bitcloud Jul 17, 2017
b11a438
added CI
bitcloud Jul 17, 2017
e3a0530
fixed package name
bitcloud Jul 17, 2017
0ac3c0f
fix name again
bitcloud Jul 17, 2017
30a99bc
Merge commit '4859dd0cf8e886b123c5a5f57b6eebe3501e8741' into all_pr_1…
Loghorn Sep 15, 2017
1957787
Merge commit '30a99bc5456777ce7759c5b4bd69fa8c0d4f9e5e'
bitcloud Feb 8, 2018
3bd3065
read descriptors longer then mtu size
bitcloud May 17, 2018
a97ed2a
fix descriptor descovery
bitcloud May 18, 2018
4fcf07b
on cancel connect at peripheral
bitcloud Jun 12, 2018
deb96d3
Merge branch 'umaster'
bitcloud Oct 19, 2018
7e35d97
Update hci.js
broon-s Oct 26, 2018
90333d1
npm: Pin versions for node-8
rzr Dec 18, 2018
6ccb172
travis: Prevent SSL issue on node 0.8
rzr Dec 19, 2018
c47da26
travis: Drop support of node-0.8
rzr Dec 19, 2018
c3b6d06
npm: Set 0.10 as minimal engine
rzr Dec 19, 2018
43a1019
npm: Fork package for support node-10
rzr Dec 18, 2018
fdf263a
travis: Add node-10 remove 0.8
rzr Dec 19, 2018
bebaf49
travis: Drop node-4 and earlier
rzr Dec 19, 2018
ff3e353
npm: Drop node-4 and earlier
rzr Dec 19, 2018
2fc9ea7
npm: Update vulnerable packages
rzr Dec 19, 2018
f85e5d1
1.9.2-0
rzr Dec 19, 2018
a262bb7
Fix bluetooth-hci-socket require statement.
mrstegeman Dec 19, 2018
0789e05
npm: Update bluetooth-hci-socket
rzr Dec 19, 2018
b32472c
npm: Update deps
rzr Dec 20, 2018
210662c
1.9.2-1
rzr Dec 20, 2018
93b4dcf
usage update
n3rd4i Feb 4, 2019
e221362
remove js mac bindings
geovie Oct 23, 2018
557f583
add native mac bindings
geovie Oct 23, 2018
13b269c
meta: Add MAINTAINERS file and list myself in
rzr Feb 28, 2019
1d45d13
Typo fix
Jul 22, 2018
9e2d639
npm: Update dependencies to latest: mocha, sinon
rzr Apr 15, 2019
c48bca8
1.9.2-2
rzr Apr 15, 2019
5477f2f
Change repo in package.json to match repo location (#17)
marksyzm Jun 27, 2019
64e6e87
async@3, minor dependency upgrades
derhuerst Jul 22, 2019
d92296b
add node-gyp dev dependency
derhuerst Jul 22, 2019
908e559
abandonware: Update travis link in readme
rzr Jul 23, 2019
7abd1a0
abandonware: Replace sandeepmistry org to aw
rzr Jul 23, 2019
0a483c7
1.9.2-3
rzr Jul 23, 2019
5c6ecf2
Update dependencies for Node 12.
mrstegeman Sep 18, 2019
f67d807
1.9.2-5
rzr Sep 19, 2019
c248005
Add types from DefinitelyTyped
thegecko Nov 5, 2019
a7a33e1
Switch from Travis CI to GitHub actions.
mrstegeman Jan 17, 2020
57f4bbc
add try/catch around region affected by buffer overflow
svogl Dec 17, 2019
26c809b
added events for service and characteristics discovery
svogl Dec 17, 2019
e2a1905
Added MTU value to peripheral on successful handshake
mwohlert Feb 12, 2020
47e0426
Replace JSHint with Eslint
akx Jan 25, 2020
bc61c30
Get rid of unused variables
akx Jan 25, 2020
81c447b
Fix no-undef woes
akx Jan 25, 2020
5ae3f8c
Enforce semistandard style
akx Jan 25, 2020
aeca506
Codemod Buffer constructors
akx Jan 25, 2020
17ceaf6
Manually fix the rest of the Buffer allocations
akx Jan 25, 2020
af78fe8
DRY out _onMessage a bit
akx Jan 25, 2020
a0b3045
Ignore missing error handling in examples
akx Jan 25, 2020
4e6d64f
Fix eqeqeq
akx Jan 25, 2020
1378bac
Handle errors where suitable
akx Jan 25, 2020
b53f122
Fix camelcase
akx Jan 25, 2020
ee8752c
Fix use-before-assign
akx Jan 25, 2020
0a021a7
Lessen buffer offset calculations
akx Jan 25, 2020
5abf272
Codemod self-binding functions to arrow functions
akx Jan 25, 2020
8c0962a
Codemod vars into consts or lets
akx Jan 25, 2020
378e86f
Codemod string concatenation into template literals
akx Jan 25, 2020
5fd1564
Fix up no-case-declarations issues
akx Jan 25, 2020
5a23735
Don't run lint on Node 6
akx Jan 25, 2020
2a1b610
npm: Update dependencies to current
rzr Feb 20, 2020
00d6b4f
npm: Lock dependencies
rzr Feb 20, 2020
9724c90
1.9.2-6
rzr Feb 20, 2020
82dcf70
Allow to read long characteristic value / descriptor
camparijet Mar 8, 2019
1d79365
github: Drop node-6 support
rzr Mar 2, 2020
d9567db
github: Add npm-publish action
rzr Mar 5, 2020
75997d5
npm: Update dependencies to current
rzr Mar 5, 2020
3575801
npm: Lock dependencies
rzr Mar 5, 2020
0e35028
Release 1.9.2-7
rzr Mar 5, 2020
d5072f1
github: Build for node-13
rzr Mar 5, 2020
4360535
Add support for promises
rsmeral Mar 17, 2020
7d8f52b
Add peripheral-explorer-async example
rsmeral Mar 18, 2020
306c464
Update README to describe Promise-based methods
rsmeral Mar 18, 2020
20ceb15
Overhaul README
rsmeral Mar 18, 2020
541fb7a
Fix errors in Quick start example
rsmeral Mar 19, 2020
3133fec
Fixes 59: add check of role on connect
RasPelikan Mar 21, 2020
5073551
Fix inconsistencies in method signatures
rsmeral Mar 20, 2020
51da5af
deprecate invalid signatures of startScanning
rsmeral Mar 26, 2020
8b209ef
add tests for async functions of peripheral
rsmeral Mar 27, 2020
7aef00a
add tests for async functions of service
rsmeral Apr 2, 2020
2c1a4c4
add tests for async functions of descriptor
rsmeral Apr 2, 2020
8f98742
add tests for async functions of characteristic
rsmeral Apr 2, 2020
41012f4
add tests for async functions of noble
rsmeral Apr 2, 2020
1d68107
bump actions/checkout to v2
rsmeral Apr 3, 2020
6f4f520
Release 1.9.2-8
rsmeral Apr 3, 2020
9dbace4
github: Add fediverse-action to workflows
rzr Mar 7, 2020
8698a68
github: Add commit shortlog post URL to fediverse
rzr Mar 12, 2020
aef35a8
github: Publish only on release
rzr Mar 7, 2020
e1213cc
Fixed tsc error in index.d.ts
nathankellenicki Apr 5, 2020
890fc5e
add definitions for once()
May 7, 2020
b255463
Release 1.9.2-9
CyberCastle May 13, 2020
7e88cb6
Release 1.9.2-9
CyberCastle May 13, 2020
fc0f521
Update README.
Junkern May 29, 2020
0811e29
Add sudo command to Linux prerequisites.
Junkern Jun 3, 2020
9ece0ec
Fix typo in README.
Junkern Jun 3, 2020
aad76b5
Fix noble from hanging after bluetooth device resets
May 27, 2020
6e39f61
disallow duplicate service UUID's to be added during discovery (fixes…
ptyork Jul 30, 2020
1e5424a
Fix bug that noble sometimes does not recognize unsufficient permissions
oyooyo Aug 19, 2020
658405a
Release 1.9.2-10
oyooyo Sep 6, 2020
f6b5395
Exposed bindings in TypeScript
zilluss Sep 9, 2020
8e8f776
Update noble.js
pursual Sep 9, 2020
ef452ba
Update noble.js
pursual Sep 9, 2020
422f4e7
linting
bitcloud Sep 15, 2020
64b9744
linting, testing and async fixes
bitcloud Sep 21, 2020
3bec773
fixed some more linting
bitcloud Sep 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
extends: ["eslint:recommended", "semistandard"],
parserOptions: {
ecmaVersion: 2017
},
env: {
browser: true,
mocha: true,
node: true
},
globals: {
Promise: true
},
rules: {
"no-unused-vars": [
"error",
{
args: "none"
}
],
"semi": "error"
}
};
15 changes: 15 additions & 0 deletions .github/workflows/fediverse-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# YAML
---
name: fediverse-action
on: [push]
jobs:
post:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: log
run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
- uses: rzr/fediverse-action@master
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
message: "https://github.com/${{ github.repository }}/commit/${{ steps.log.outputs.message }} ~ #FediVerseAction"
55 changes: 55 additions & 0 deletions .github/workflows/nodepackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Node.js package

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-latest,
macos-latest,
]
node: [
8,
10,
12,
13,
]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: |
if [ ${{ matrix.os }} = ubuntu-latest ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt -qq update
sudo apt install -y g++-4.8
fi
- name: Run integration tests
run: |
if [ ${{ matrix.os }} = macos-latest -a ${{ matrix.node }} = 6 ]; then
# Mac bindings will currently not build on Node 6
exit 0
fi
if [ ${{ matrix.os }} = ubuntu-latest ]; then
export CC="g++-4.8"
fi
npm install
npm run test
- name: Lint
run: |
if [ ${{ matrix.node }} = 6 ]; then
# ESLint 6+ is not compatible with Node 6
exit 0
fi
npm run lint
26 changes: 26 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: npm-publish
on:
push:
branches:
- master # Change this to your default branch
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- id: log
run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
- if: "contains(steps.log.outputs.message, 'Release ')"
uses: actions/setup-node@master
with:
node-version: 10.0.0
- if: "contains(steps.log.outputs.message, 'Release ')"
uses: pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4
with: # All of theses inputs are optional
tag_name: "v%s"
tag_message: "v%s"
commit_pattern: "^Release (\\S+)"
env: # More info about the environment variables in the README
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ results
build/
node_modules/
npm-debug.log

lib/mac/native
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
npmpublish:
image: node:8
script:
- npm install -g npm-cli-login
- npm-cli-login -u ${NPM_USER} -p ${NPM_PASS} -e [email protected] -r https://npm.essentim.cloud -s @essentim --quotes
- npm publish
only:
- production
- staging
- master
tags:
- amd64
10 changes: 0 additions & 10 deletions .jshintrc

This file was deleted.

34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Philippe Coval <mailto:[email protected]> (https://www.npmjs.com/~rzr)
Loading