@stoprocent/noble 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/hci-socket/hci.js
CHANGED
|
@@ -509,6 +509,11 @@ Hci.prototype.setScanEnabled = function (enabled, filterDuplicates) {
|
|
|
509
509
|
};
|
|
510
510
|
|
|
511
511
|
Hci.prototype.createLeConn = function (address, addressType, parameters = {}) {
|
|
512
|
+
this.once('reset', () => this.createLeConnAfterReset(address, addressType, parameters));
|
|
513
|
+
this.reset();
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
Hci.prototype.createLeConnAfterReset = function (address, addressType, parameters = {}) {
|
|
512
517
|
const {
|
|
513
518
|
minInterval = 0x0006,
|
|
514
519
|
maxInterval = 0x0012,
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"name": "@stoprocent/noble",
|
|
8
8
|
"description": "A Node.js BLE (Bluetooth Low Energy) central library.",
|
|
9
|
-
"version": "2.1.
|
|
9
|
+
"version": "2.1.4",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/stoprocent/noble.git"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node-gyp-build": "^4.8.1"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@stoprocent/bluetooth-hci-socket": "^2.2.
|
|
36
|
+
"@stoprocent/bluetooth-hci-socket": "^2.2.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@babel/eslint-parser": "^7.27.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|