incyclist-devices 3.0.40 → 3.0.42
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/cjs/ble/base/interface.js +15 -0
- package/lib/cjs/ble/bkool/adapter.js +49 -0
- package/lib/cjs/ble/bkool/consts.js +11 -0
- package/lib/cjs/ble/bkool/index.js +10 -0
- package/lib/cjs/ble/bkool/sensor.js +160 -0
- package/lib/cjs/ble/characteristics/csc/measurement.js +4 -37
- package/lib/cjs/ble/cp/sensor.js +4 -36
- package/lib/cjs/ble/crank-cadence.js +49 -0
- package/lib/cjs/ble/fe-c-pages.js +56 -0
- package/lib/cjs/ble/index.js +13 -10
- package/lib/cjs/ble/tacx/sensor.js +10 -127
- package/lib/cjs/ble/wahoo/sensor.js +3 -33
- package/lib/cjs/ble/zwift/play/sensor.js +2 -2
- package/lib/esm/ble/base/interface.js +15 -0
- package/lib/esm/ble/bkool/adapter.js +43 -0
- package/lib/esm/ble/bkool/consts.js +7 -0
- package/lib/esm/ble/bkool/index.js +3 -0
- package/lib/esm/ble/bkool/sensor.js +154 -0
- package/lib/esm/ble/characteristics/csc/measurement.js +4 -37
- package/lib/esm/ble/cp/sensor.js +4 -36
- package/lib/esm/ble/crank-cadence.js +45 -0
- package/lib/esm/ble/fe-c-pages.js +48 -0
- package/lib/esm/ble/index.js +3 -1
- package/lib/esm/ble/tacx/sensor.js +10 -127
- package/lib/esm/ble/wahoo/sensor.js +3 -33
- package/lib/esm/ble/zwift/play/sensor.js +2 -2
- package/lib/types/ble/base/interface.d.ts +1 -0
- package/lib/types/ble/bkool/adapter.d.ts +13 -0
- package/lib/types/ble/bkool/consts.d.ts +5 -0
- package/lib/types/ble/bkool/index.d.ts +3 -0
- package/lib/types/ble/bkool/sensor.d.ts +35 -0
- package/lib/types/ble/characteristics/csc/measurement.d.ts +2 -9
- package/lib/types/ble/cp/sensor.d.ts +3 -8
- package/lib/types/ble/crank-cadence.d.ts +20 -0
- package/lib/types/ble/fe-c-pages.d.ts +12 -0
- package/lib/types/ble/index.d.ts +2 -1
- package/lib/types/ble/tacx/sensor.d.ts +2 -11
- package/lib/types/ble/types.d.ts +2 -2
- package/lib/types/ble/wahoo/sensor.d.ts +2 -8
- package/package.json +10 -10
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { LegacyProfile } from "../../antv2/types.js";
|
|
2
|
-
import { CrankData } from "../cp/index.js";
|
|
3
2
|
import { IndoorBikeData } from "../fm/index.js";
|
|
4
3
|
import BleFitnessMachineDevice from "../fm/sensor.js";
|
|
5
4
|
import { BleProtocol, BleWriteProps } from "../types.js";
|
|
5
|
+
import { CrankCadenceCalculator } from "../crank-cadence.js";
|
|
6
6
|
export default class BleWahooDevice extends BleFitnessMachineDevice {
|
|
7
7
|
static readonly profile: LegacyProfile;
|
|
8
8
|
static readonly protocol: BleProtocol;
|
|
9
9
|
static readonly services: string[];
|
|
10
10
|
static readonly characteristics: string[];
|
|
11
11
|
static readonly detectionPriority = 5;
|
|
12
|
-
|
|
13
|
-
currentCrankData: CrankData;
|
|
14
|
-
timeOffset: number;
|
|
12
|
+
protected crankCadence: CrankCadenceCalculator;
|
|
15
13
|
tsPrevWrite: any;
|
|
16
14
|
prevSlope: any;
|
|
17
15
|
wahooCP: string;
|
|
@@ -34,10 +32,6 @@ export default class BleWahooDevice extends BleFitnessMachineDevice {
|
|
|
34
32
|
requestControl(): Promise<boolean>;
|
|
35
33
|
setTargetPower(power: number): Promise<boolean>;
|
|
36
34
|
setSlope(slope: any): Promise<boolean>;
|
|
37
|
-
protected parseCrankData(crankData: any): {
|
|
38
|
-
rpm: number;
|
|
39
|
-
time: any;
|
|
40
|
-
};
|
|
41
35
|
protected parsePower(_data: Buffer): IndoorBikeData;
|
|
42
36
|
protected supportsHeartRate(): boolean;
|
|
43
37
|
protected writeWahooFtmsMessage(requestedOpCode: number, data: Buffer, props?: BleWriteProps): Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incyclist-devices",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.42",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"lint": "eslint . --ext .ts",
|
|
6
6
|
"build": "npm run build:esm && npm run build:cjs",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@serialport/parser-delimiter": "^13.0.0",
|
|
21
21
|
"@serialport/parser-readline": "^13.0.0",
|
|
22
22
|
"@serialport/stream": "^13.0.0",
|
|
23
|
-
"incyclist-ant-plus": "^0.3.
|
|
23
|
+
"incyclist-ant-plus": "^0.3.7",
|
|
24
24
|
"win32filetime": "^1.0.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"@protobuf-ts/plugin": "^2.11.1",
|
|
31
31
|
"@serialport/binding-mock": "^10.2.2",
|
|
32
32
|
"@serialport/bindings-cpp": "^13.0.1",
|
|
33
|
-
"@stoprocent/noble": "^2.
|
|
33
|
+
"@stoprocent/noble": "^2.8.0",
|
|
34
34
|
"@types/jest": "^30.0.0",
|
|
35
|
-
"@types/node": "^
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
37
|
-
"@typescript-eslint/parser": "^8.
|
|
38
|
-
"@vitest/coverage-v8": "^
|
|
39
|
-
"bonjour-service": "^1.
|
|
40
|
-
"eslint": "^9.39.
|
|
35
|
+
"@types/node": "^26.6.5",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.71.2",
|
|
37
|
+
"@typescript-eslint/parser": "^8.71.2",
|
|
38
|
+
"@vitest/coverage-v8": "^5.0.4",
|
|
39
|
+
"bonjour-service": "^1.4.4",
|
|
40
|
+
"eslint": "^9.39.5",
|
|
41
41
|
"protoc": "^33.6.0",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"vitest": "^
|
|
44
|
+
"vitest": "^5.0.4"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"lib/"
|