incyclist-devices 1.1.0 → 1.3.25
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/LICENSE +21 -0
- package/lib/CyclingMode.d.ts +72 -0
- package/lib/CyclingMode.js +66 -0
- package/lib/Device.d.ts +48 -10
- package/lib/Device.js +9 -8
- package/lib/DeviceProtocol.d.ts +40 -12
- package/lib/DeviceProtocol.js +16 -16
- package/lib/DeviceRegistry.d.ts +4 -4
- package/lib/DeviceRegistry.js +10 -10
- package/lib/DeviceSupport.d.ts +4 -3
- package/lib/DeviceSupport.js +32 -8
- package/lib/ant/AntAdapter.d.ts +11 -2
- package/lib/ant/AntAdapter.js +30 -1
- package/lib/ant/AntScanner.d.ts +17 -6
- package/lib/ant/AntScanner.js +406 -135
- package/lib/ant/antfe/AntFEAdapter.d.ts +12 -8
- package/lib/ant/antfe/AntFEAdapter.js +404 -182
- package/lib/ant/anthrm/AntHrmAdapter.d.ts +4 -2
- package/lib/ant/anthrm/AntHrmAdapter.js +72 -25
- package/lib/ant/utils.js +2 -1
- package/lib/calculations.d.ts +12 -13
- package/lib/calculations.js +88 -125
- package/lib/daum/DaumAdapter.d.ts +29 -6
- package/lib/daum/DaumAdapter.js +219 -96
- package/lib/daum/ERGCyclingMode.d.ts +28 -0
- package/lib/daum/ERGCyclingMode.js +207 -0
- package/lib/daum/PowerMeterCyclingMode.d.ts +18 -0
- package/lib/daum/PowerMeterCyclingMode.js +79 -0
- package/lib/daum/SmartTrainerCyclingMode.d.ts +41 -0
- package/lib/daum/SmartTrainerCyclingMode.js +344 -0
- package/lib/daum/classic/DaumClassicAdapter.d.ts +3 -1
- package/lib/daum/classic/DaumClassicAdapter.js +46 -32
- package/lib/daum/classic/DaumClassicCyclingMode.d.ts +13 -0
- package/lib/daum/classic/DaumClassicCyclingMode.js +98 -0
- package/lib/daum/classic/DaumClassicProtocol.d.ts +5 -3
- package/lib/daum/classic/DaumClassicProtocol.js +39 -6
- package/lib/daum/classic/ERGCyclingMode.d.ts +23 -0
- package/lib/daum/classic/ERGCyclingMode.js +171 -0
- package/lib/daum/classic/bike.d.ts +41 -37
- package/lib/daum/classic/bike.js +86 -53
- package/lib/daum/classic/utils.d.ts +3 -3
- package/lib/daum/classic/utils.js +16 -10
- package/lib/daum/indoorbike.d.ts +2 -1
- package/lib/daum/indoorbike.js +23 -21
- package/lib/daum/premium/DaumPremiumAdapter.d.ts +2 -2
- package/lib/daum/premium/DaumPremiumAdapter.js +30 -20
- package/lib/daum/premium/DaumPremiumProtocol.d.ts +11 -2
- package/lib/daum/premium/DaumPremiumProtocol.js +49 -8
- package/lib/daum/premium/bike.d.ts +63 -52
- package/lib/daum/premium/bike.js +258 -207
- package/lib/daum/premium/tcpserial.d.ts +18 -14
- package/lib/daum/premium/tcpserial.js +50 -20
- package/lib/daum/premium/utils.d.ts +2 -2
- package/lib/simulator/Simulator.d.ts +13 -7
- package/lib/simulator/Simulator.js +62 -21
- package/lib/utils.d.ts +3 -1
- package/lib/utils.js +39 -18
- package/package.json +12 -11
- package/lib/ant/AntScanner.unit.tests.d.ts +0 -1
- package/lib/ant/AntScanner.unit.tests.js +0 -25
- package/lib/ant/antfe/AntFEProcessor.d.ts +0 -40
- package/lib/ant/antfe/AntFEProcessor.js +0 -238
- package/lib/ant/antfe/AntHrmProtocol.d.ts +0 -9
- package/lib/ant/antfe/AntHrmProtocol.js +0 -30
- package/lib/ant/antfe/bike.d.ts +0 -47
- package/lib/ant/antfe/bike.js +0 -602
- package/lib/ant/anthrm/anthrm.d.ts +0 -33
- package/lib/ant/anthrm/anthrm.js +0 -523
- package/lib/simulator/Simulator.unit.tests.d.ts +0 -1
- package/lib/simulator/Simulator.unit.tests.js +0 -79
|
@@ -2,6 +2,7 @@ import AntAdapter from '../AntAdapter';
|
|
|
2
2
|
import { Queue } from '../../utils';
|
|
3
3
|
export default class AntFEAdapter extends AntAdapter {
|
|
4
4
|
started: boolean;
|
|
5
|
+
starting: boolean;
|
|
5
6
|
connected: boolean;
|
|
6
7
|
distanceInternal?: number;
|
|
7
8
|
queue?: Queue<any>;
|
|
@@ -11,22 +12,25 @@ export default class AntFEAdapter extends AntAdapter {
|
|
|
11
12
|
isBike(): boolean;
|
|
12
13
|
isHrm(): boolean;
|
|
13
14
|
isPower(): boolean;
|
|
14
|
-
|
|
15
|
+
getProfile(): string;
|
|
15
16
|
getName(): string;
|
|
16
17
|
getDisplayName(): string;
|
|
18
|
+
onAttached(): void;
|
|
17
19
|
onDeviceData(deviceData: any): void;
|
|
18
20
|
onDeviceEvent(data: any): void;
|
|
19
21
|
updateData(data: any, deviceData: any): any;
|
|
20
22
|
transformData(bikeData: any): any;
|
|
21
|
-
start(props?: any): Promise<
|
|
23
|
+
start(props?: any): Promise<any>;
|
|
22
24
|
stop(): Promise<boolean>;
|
|
23
|
-
|
|
25
|
+
sendUpdate(request: any): Promise<void>;
|
|
26
|
+
send(msg: any, logStr: any, callback?: any, expectedResponse?: any): void;
|
|
27
|
+
sendAsync(msg: any, logStr: any, expectedResponse: any): Promise<unknown>;
|
|
24
28
|
startWorker(): void;
|
|
25
29
|
stopWorker(): void;
|
|
26
30
|
sendFromQueue(): void;
|
|
27
|
-
sendUserConfiguration(userWeight: any, bikeWeight: any, wheelDiameter: any, gearRatio: any):
|
|
28
|
-
sendBasicResistance(resistance: any):
|
|
29
|
-
sendTargetPower(power: any):
|
|
30
|
-
sendWindResistance(windCoeff: any, windSpeed: any, draftFactor: any):
|
|
31
|
-
sendTrackResistance(slope: any, rrCoeff
|
|
31
|
+
sendUserConfiguration(userWeight: any, bikeWeight: any, wheelDiameter: any, gearRatio: any): Promise<unknown>;
|
|
32
|
+
sendBasicResistance(resistance: any): Promise<unknown>;
|
|
33
|
+
sendTargetPower(power: any): Promise<unknown>;
|
|
34
|
+
sendWindResistance(windCoeff: any, windSpeed: any, draftFactor: any): Promise<unknown>;
|
|
35
|
+
sendTrackResistance(slope: any, rrCoeff?: any): Promise<unknown>;
|
|
32
36
|
}
|