incyclist-devices 2.0.38 → 2.1.1
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/adapters.d.ts +1 -1
- package/lib/antv2/adapter-factory.d.ts +4 -13
- package/lib/antv2/adapter.d.ts +16 -33
- package/lib/antv2/adapter.js +68 -112
- package/lib/antv2/ant-interface.d.ts +3 -11
- package/lib/antv2/ant-interface.js +1 -1
- package/lib/antv2/base/adapter.d.ts +62 -0
- package/lib/antv2/base/adapter.js +360 -0
- package/lib/antv2/base/ant-interface.d.ts +35 -0
- package/lib/antv2/base/ant-interface.js +285 -0
- package/lib/antv2/base/binding.d.ts +13 -0
- package/lib/antv2/base/binding.js +27 -0
- package/lib/antv2/cad/adapter.d.ts +10 -0
- package/lib/antv2/cad/adapter.js +25 -0
- package/lib/antv2/cad/index.d.ts +2 -0
- package/lib/antv2/cad/index.js +7 -0
- package/lib/antv2/consts.d.ts +2 -0
- package/lib/antv2/consts.js +5 -0
- package/lib/antv2/factories/adapter-factory.d.ts +14 -0
- package/lib/antv2/factories/adapter-factory.js +65 -0
- package/lib/antv2/factories/sensor-factory.d.ts +5 -0
- package/lib/antv2/factories/sensor-factory.js +22 -0
- package/lib/antv2/fe/adapter.d.ts +25 -26
- package/lib/antv2/fe/adapter.js +212 -218
- package/lib/antv2/hr/adapter.d.ts +6 -14
- package/lib/antv2/hr/adapter.js +7 -55
- package/lib/antv2/hr copy/adapter.d.ts +11 -0
- package/lib/antv2/hr copy/adapter.js +30 -0
- package/lib/antv2/hr copy/index.d.ts +2 -0
- package/lib/antv2/hr copy/index.js +7 -0
- package/lib/antv2/index.d.ts +5 -4
- package/lib/antv2/index.js +4 -2
- package/lib/antv2/pwr/adapter.d.ts +9 -29
- package/lib/antv2/pwr/adapter.js +20 -130
- package/lib/antv2/types.d.ts +23 -3
- package/lib/base/adpater.d.ts +42 -45
- package/lib/base/adpater.js +144 -110
- package/lib/base/consts.d.ts +4 -0
- package/lib/base/consts.js +9 -0
- package/lib/ble/adapter-factory.d.ts +4 -4
- package/lib/ble/base/adapter.d.ts +6 -24
- package/lib/ble/base/adapter.js +4 -94
- package/lib/ble/ble-interface.d.ts +2 -3
- package/lib/ble/cp/adapter.d.ts +6 -11
- package/lib/ble/cp/adapter.js +9 -12
- package/lib/ble/elite/adapter.d.ts +8 -8
- package/lib/ble/elite/adapter.js +6 -2
- package/lib/ble/fm/adapter.d.ts +11 -11
- package/lib/ble/fm/adapter.js +26 -20
- package/lib/ble/hr/adapter.d.ts +3 -4
- package/lib/ble/hr/adapter.js +2 -2
- package/lib/ble/tacx/adapter.d.ts +2 -3
- package/lib/ble/tacx/adapter.js +8 -8
- package/lib/ble/types.d.ts +1 -2
- package/lib/ble/wahoo/adapter.d.ts +2 -2
- package/lib/ble/wahoo/adapter.js +6 -6
- package/lib/ble/wahoo/comms.js +16 -16
- package/lib/factories/adapters.d.ts +7 -0
- package/lib/factories/adapters.js +49 -0
- package/lib/factories/index.d.ts +3 -0
- package/lib/factories/index.js +10 -0
- package/lib/factories/interfaces.d.ts +7 -0
- package/lib/factories/interfaces.js +27 -0
- package/lib/index.d.ts +8 -9
- package/lib/index.js +5 -8
- package/lib/interfaces.d.ts +1 -1
- package/lib/modes/ant-fe-adv-st-mode.d.ts +12 -0
- package/lib/modes/ant-fe-adv-st-mode.js +83 -0
- package/lib/modes/antble-erg.d.ts +31 -0
- package/lib/modes/antble-erg.js +28 -0
- package/lib/modes/antble-smarttrainer.d.ts +23 -0
- package/lib/modes/antble-smarttrainer.js +65 -0
- package/lib/modes/base.d.ts +29 -0
- package/lib/modes/{cycling-mode.js → base.js} +23 -26
- package/lib/modes/daum-classic-standard.d.ts +17 -0
- package/lib/modes/daum-classic-standard.js +54 -0
- package/lib/modes/daum-erg.d.ts +49 -0
- package/lib/{serial/daum/ERGCyclingMode.js → modes/daum-erg.js} +45 -73
- package/lib/modes/daum-power.d.ts +5 -0
- package/lib/{serial/daum/DaumPowerMeterCyclingMode.js → modes/daum-power.js} +1 -10
- package/lib/modes/daum-premium-standard.d.ts +24 -0
- package/lib/{serial/daum/premium/modes/daum-classic.js → modes/daum-premium-standard.js} +26 -38
- package/lib/modes/daum-smarttrainer.d.ts +83 -0
- package/lib/{serial/daum/SmartTrainerCyclingMode.js → modes/daum-smarttrainer.js} +23 -26
- package/lib/modes/kettler-erg.d.ts +44 -0
- package/lib/{serial/kettler/ergo-racer/modes/erg.js → modes/kettler-erg.js} +12 -23
- package/lib/modes/power-base.d.ts +28 -3
- package/lib/modes/power-base.js +184 -7
- package/lib/modes/power-meter.d.ts +11 -16
- package/lib/modes/power-meter.js +15 -54
- package/lib/modes/simulator.d.ts +38 -10
- package/lib/modes/simulator.js +14 -46
- package/lib/modes/{cycling-mode.d.ts → types.d.ts} +22 -30
- package/lib/modes/types.js +56 -0
- package/lib/serial/SinglePathScanner.d.ts +17 -0
- package/lib/serial/SinglePathScanner.js +87 -0
- package/lib/serial/adapter-factory.d.ts +8 -6
- package/lib/serial/adapter.d.ts +6 -11
- package/lib/serial/adapter.js +5 -2
- package/lib/serial/base/adapter.d.ts +17 -0
- package/lib/serial/base/adapter.js +67 -0
- package/lib/serial/base/comms.d.ts +62 -0
- package/lib/serial/base/comms.js +280 -0
- package/lib/serial/base/serial-interface.d.ts +36 -0
- package/lib/serial/base/serial-interface.js +288 -0
- package/lib/serial/base/serial-scanner.d.ts +16 -0
- package/lib/serial/base/serial-scanner.js +87 -0
- package/lib/serial/base/serialport.d.ts +17 -0
- package/lib/serial/base/serialport.js +87 -0
- package/lib/serial/comms.d.ts +2 -2
- package/lib/serial/daum/DaumAdapter.d.ts +26 -35
- package/lib/serial/daum/DaumAdapter.js +214 -161
- package/lib/serial/daum/classic/PROTOCOL_NAME.d.ts +2 -0
- package/lib/serial/daum/classic/PROTOCOL_NAME.js +5 -0
- package/lib/serial/daum/classic/adapter.d.ts +13 -26
- package/lib/serial/daum/classic/adapter.js +72 -176
- package/lib/serial/daum/classic/comms.d.ts +21 -17
- package/lib/serial/daum/classic/comms.js +41 -14
- package/lib/serial/daum/classic/consts.d.ts +2 -0
- package/lib/serial/daum/classic/consts.js +5 -0
- package/lib/serial/daum/classic/mock.d.ts +4 -0
- package/lib/serial/daum/classic/mock.js +18 -7
- package/lib/serial/daum/classic/types.d.ts +8 -10
- package/lib/serial/daum/classic/utils.d.ts +1 -2
- package/lib/serial/daum/consts.d.ts +0 -0
- package/lib/serial/daum/consts.js +0 -0
- package/lib/serial/daum/premium/adapter.d.ts +17 -15
- package/lib/serial/daum/premium/adapter.js +86 -109
- package/lib/serial/daum/premium/comms.d.ts +7 -7
- package/lib/serial/daum/premium/comms.js +25 -16
- package/lib/serial/daum/premium/mock.d.ts +5 -1
- package/lib/serial/daum/premium/mock.js +17 -7
- package/lib/serial/daum/premium/types.d.ts +32 -17
- package/lib/serial/daum/premium/types.js +8 -8
- package/lib/serial/daum/premium/utils.d.ts +2 -3
- package/lib/serial/daum/premium/utils.js +3 -3
- package/lib/serial/daum/types.d.ts +14 -0
- package/lib/serial/daum/types.js +13 -0
- package/lib/serial/factories/adapter-factory.d.ts +14 -0
- package/lib/serial/factories/adapter-factory.js +30 -0
- package/lib/serial/index.d.ts +8 -5
- package/lib/serial/index.js +15 -15
- package/lib/serial/kettler/comms.d.ts +1 -1
- package/lib/serial/kettler/ergo-racer/adapter.d.ts +11 -16
- package/lib/serial/kettler/ergo-racer/adapter.js +10 -12
- package/lib/serial/kettler/types.d.ts +8 -0
- package/lib/serial/kettler/types.js +2 -0
- package/lib/serial/serial-interface.d.ts +2 -32
- package/lib/serial/serial-interface.js +4 -78
- package/lib/serial/serial-scanner.d.ts +16 -0
- package/lib/serial/serial-scanner.js +87 -0
- package/lib/serial/serialport.d.ts +1 -13
- package/lib/serial/types.d.ts +45 -0
- package/lib/serial/types.js +9 -0
- package/lib/simulator/Simulator.d.ts +13 -19
- package/lib/simulator/Simulator.js +10 -51
- package/lib/types/Command.d.ts +8 -0
- package/lib/types/Command.js +2 -0
- package/lib/types/adapter.d.ts +34 -24
- package/lib/types/command.d.ts +0 -8
- package/lib/types/command.js +0 -2
- package/lib/types/data.d.ts +12 -1
- package/lib/types/device.d.ts +8 -23
- package/lib/types/device.js +9 -8
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.js +22 -0
- package/lib/types/route.d.ts +0 -19
- package/lib/types/route.js +0 -2
- package/lib/types/types.d.ts +8 -0
- package/lib/types/types.js +2 -0
- package/lib/utils/utils.d.ts +2 -1
- package/lib/utils/utils.js +22 -4
- package/package.json +3 -3
- package/lib/antv2/modes/ant-fe-adv-st-mode.d.ts +0 -9
- package/lib/antv2/modes/ant-fe-adv-st-mode.js +0 -51
- package/lib/antv2/modes/ant-fe-erg-mode.d.ts +0 -6
- package/lib/antv2/modes/ant-fe-erg-mode.js +0 -14
- package/lib/antv2/modes/ant-fe-st-mode.d.ts +0 -5
- package/lib/antv2/modes/ant-fe-st-mode.js +0 -13
- package/lib/modes/ble-erg-mode.d.ts +0 -18
- package/lib/modes/ble-erg-mode.js +0 -148
- package/lib/modes/ble-st-mode.d.ts +0 -15
- package/lib/modes/ble-st-mode.js +0 -96
- package/lib/serial/daum/DaumPowerMeterCyclingMode.d.ts +0 -8
- package/lib/serial/daum/ERGCyclingMode.d.ts +0 -26
- package/lib/serial/daum/SmartTrainerCyclingMode.d.ts +0 -42
- package/lib/serial/daum/classic/modes/daum-classic.d.ts +0 -13
- package/lib/serial/daum/classic/modes/daum-classic.js +0 -97
- package/lib/serial/daum/constants.d.ts +0 -19
- package/lib/serial/daum/constants.js +0 -22
- package/lib/serial/daum/premium/modes/daum-classic.d.ts +0 -14
- package/lib/serial/kettler/ergo-racer/modes/erg.d.ts +0 -25
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AntDeviceBinding {
|
|
4
|
+
constructor(_props) { }
|
|
5
|
+
open() {
|
|
6
|
+
throw new Error('Method not implemented.');
|
|
7
|
+
}
|
|
8
|
+
close() {
|
|
9
|
+
throw new Error('Method not implemented.');
|
|
10
|
+
}
|
|
11
|
+
getMaxChannels() {
|
|
12
|
+
throw new Error('Method not implemented.');
|
|
13
|
+
}
|
|
14
|
+
getChannel() {
|
|
15
|
+
throw new Error('Method not implemented.');
|
|
16
|
+
}
|
|
17
|
+
freeChannel(channel) {
|
|
18
|
+
throw new Error('Method not implemented.');
|
|
19
|
+
}
|
|
20
|
+
getDeviceNumber() {
|
|
21
|
+
throw new Error('Method not implemented.');
|
|
22
|
+
}
|
|
23
|
+
write(data) {
|
|
24
|
+
throw new Error('Method not implemented.');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = AntDeviceBinding;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CadenceSensorState, Profile } from "incyclist-ant-plus";
|
|
2
|
+
import AntAdapter from "../base/adapter";
|
|
3
|
+
import { AntDeviceProperties, AntDeviceSettings, LegacyProfile } from "../types";
|
|
4
|
+
export default class AntHrAdapter extends AntAdapter<CadenceSensorState> {
|
|
5
|
+
protected static INCYCLIST_PROFILE_NAME: LegacyProfile;
|
|
6
|
+
protected static ANT_PROFILE_NAME: Profile;
|
|
7
|
+
constructor(settings: AntDeviceSettings, props?: AntDeviceProperties);
|
|
8
|
+
mapToAdapterData(deviceData: CadenceSensorState): void;
|
|
9
|
+
hasData(): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const adapter_1 = __importDefault(require("../base/adapter"));
|
|
7
|
+
const types_1 = require("../../types");
|
|
8
|
+
class AntHrAdapter extends adapter_1.default {
|
|
9
|
+
constructor(settings, props) {
|
|
10
|
+
super(settings, props);
|
|
11
|
+
this.capabilities = [types_1.IncyclistCapability.Cadence];
|
|
12
|
+
}
|
|
13
|
+
mapToAdapterData(deviceData) {
|
|
14
|
+
if (deviceData.CalculatedCadence) {
|
|
15
|
+
this.data.cadence = deviceData.CalculatedCadence;
|
|
16
|
+
this.data.timestamp = Date.now();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
hasData() {
|
|
20
|
+
return this.deviceData.CalculatedCadence !== undefined && this.deviceData.CalculatedCadence !== null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
AntHrAdapter.INCYCLIST_PROFILE_NAME = 'Cadence Sensor';
|
|
24
|
+
AntHrAdapter.ANT_PROFILE_NAME = 'CAD';
|
|
25
|
+
exports.default = AntHrAdapter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const adapter_1 = __importDefault(require("./adapter"));
|
|
7
|
+
exports.default = adapter_1.default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Profile } from "incyclist-ant-plus";
|
|
2
|
+
import AntAdapter from "../base/adapter";
|
|
3
|
+
import { AntDeviceProperties, AntDeviceSettings, LegacyProfile, BaseDeviceData } from "../types";
|
|
4
|
+
import { AntAdapterInfo, AdapterQuery } from "../types";
|
|
5
|
+
export default class AntAdapterFactory {
|
|
6
|
+
static _instance: AntAdapterFactory;
|
|
7
|
+
adapters: AntAdapterInfo[];
|
|
8
|
+
static getInstance(): AntAdapterFactory;
|
|
9
|
+
constructor();
|
|
10
|
+
register<TDeviceData extends BaseDeviceData>(antProfile: Profile, incyclistProfile: LegacyProfile, Adapter: typeof AntAdapter<TDeviceData>): void;
|
|
11
|
+
getAdapter(query?: AdapterQuery): any;
|
|
12
|
+
createInstance(settings: AntDeviceSettings, props?: AntDeviceProperties): any;
|
|
13
|
+
createFromDetected(profile: Profile, deviceID: number, props?: AntDeviceProperties): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AntAdapterFactory {
|
|
4
|
+
static getInstance() {
|
|
5
|
+
if (!AntAdapterFactory._instance)
|
|
6
|
+
AntAdapterFactory._instance = new AntAdapterFactory();
|
|
7
|
+
return AntAdapterFactory._instance;
|
|
8
|
+
}
|
|
9
|
+
constructor() {
|
|
10
|
+
this.adapters = [];
|
|
11
|
+
}
|
|
12
|
+
register(antProfile, incyclistProfile, Adapter) {
|
|
13
|
+
const info = Object.assign({}, { antProfile, incyclistProfile, Adapter });
|
|
14
|
+
const existing = this.adapters.findIndex(a => a.antProfile === antProfile);
|
|
15
|
+
if (existing !== -1)
|
|
16
|
+
this.adapters[existing] = info;
|
|
17
|
+
else
|
|
18
|
+
this.adapters.push(info);
|
|
19
|
+
}
|
|
20
|
+
getAdapter(query) {
|
|
21
|
+
const { antProfile, incyclistProfile } = query;
|
|
22
|
+
if (!antProfile && !incyclistProfile)
|
|
23
|
+
throw new Error('Illegal arguments: either "antProfile" or "incyclistProfile" must be set');
|
|
24
|
+
let found;
|
|
25
|
+
if (antProfile)
|
|
26
|
+
found = this.adapters.find(a => a.antProfile === antProfile);
|
|
27
|
+
if (incyclistProfile)
|
|
28
|
+
found = this.adapters.find(a => a.incyclistProfile === incyclistProfile);
|
|
29
|
+
return found;
|
|
30
|
+
}
|
|
31
|
+
createInstance(settings, props) {
|
|
32
|
+
let info;
|
|
33
|
+
const { profile, protocol } = settings;
|
|
34
|
+
let isLegacy = false;
|
|
35
|
+
if (protocol) {
|
|
36
|
+
try {
|
|
37
|
+
const incyclistProfile = profile;
|
|
38
|
+
info = this.getAdapter({ incyclistProfile });
|
|
39
|
+
isLegacy = true;
|
|
40
|
+
}
|
|
41
|
+
catch (_a) {
|
|
42
|
+
isLegacy = false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!isLegacy) {
|
|
46
|
+
const antProfile = profile;
|
|
47
|
+
info = this.getAdapter({ antProfile });
|
|
48
|
+
}
|
|
49
|
+
if (info && info.Adapter)
|
|
50
|
+
return new info.Adapter(settings, props);
|
|
51
|
+
}
|
|
52
|
+
createFromDetected(profile, deviceID, props) {
|
|
53
|
+
const info = this.getAdapter({ antProfile: profile });
|
|
54
|
+
if (!info || !info.Adapter)
|
|
55
|
+
return;
|
|
56
|
+
const settings = Object.assign({}, {
|
|
57
|
+
profile: info.incyclistProfile,
|
|
58
|
+
deviceID: deviceID.toString(),
|
|
59
|
+
interface: 'ant',
|
|
60
|
+
protocol: 'Ant'
|
|
61
|
+
});
|
|
62
|
+
return new info.Adapter(settings, props);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.default = AntAdapterFactory;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const incyclist_ant_plus_1 = require("incyclist-ant-plus");
|
|
4
|
+
const incyclist_ant_plus_2 = require("incyclist-ant-plus");
|
|
5
|
+
const profiles = [
|
|
6
|
+
{ profile: 'PWR', Class: incyclist_ant_plus_2.BicyclePowerSensor },
|
|
7
|
+
{ profile: 'HR', Class: incyclist_ant_plus_2.HeartRateSensor },
|
|
8
|
+
{ profile: 'FE', Class: incyclist_ant_plus_2.FitnessEquipmentSensor },
|
|
9
|
+
{ profile: 'CAD', Class: incyclist_ant_plus_1.CadenceSensor },
|
|
10
|
+
];
|
|
11
|
+
class SensorFactory {
|
|
12
|
+
static create(profile, deviceID) {
|
|
13
|
+
const info = profiles.find(i => i.profile === profile);
|
|
14
|
+
if (!info)
|
|
15
|
+
return;
|
|
16
|
+
return new info.Class(deviceID);
|
|
17
|
+
}
|
|
18
|
+
static createAll() {
|
|
19
|
+
return profiles.map(info => new info.Class());
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = SensorFactory;
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { FitnessEquipmentSensorState,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { FitnessEquipmentSensorState, Profile } from "incyclist-ant-plus";
|
|
2
|
+
import AntAdapter from "../base/adapter";
|
|
3
|
+
import { UpdateRequest } from '../../modes/types';
|
|
4
|
+
import { IncyclistBikeData } from "../../types/data";
|
|
4
5
|
import { AntDeviceProperties, AntDeviceSettings, LegacyProfile } from "../types";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default class AntFEAdapter extends ControllableAntAdapter<FitnessEquipmentSensorState, FitnessEquipmentSensorData> {
|
|
15
|
-
static INCYCLIST_PROFILE_NAME: LegacyProfile;
|
|
16
|
-
static ANT_PROFILE_NAME: Profile;
|
|
6
|
+
import { ControllerConfig } from "../../types/adapter";
|
|
7
|
+
interface AntFEStartDeviceProperties extends AntDeviceProperties {
|
|
8
|
+
reconnect?: boolean;
|
|
9
|
+
reconnectTimeout?: number;
|
|
10
|
+
}
|
|
11
|
+
export default class AntFEAdapter extends AntAdapter<FitnessEquipmentSensorState> {
|
|
12
|
+
protected static INCYCLIST_PROFILE_NAME: LegacyProfile;
|
|
13
|
+
protected static ANT_PROFILE_NAME: Profile;
|
|
14
|
+
protected static controllers: ControllerConfig;
|
|
17
15
|
protected distanceInternal?: number;
|
|
18
16
|
protected startProps: AntDeviceProperties;
|
|
19
|
-
protected
|
|
17
|
+
protected promiseReconnect: Promise<boolean>;
|
|
20
18
|
protected sensorConnected: boolean;
|
|
21
19
|
constructor(settings: AntDeviceSettings, props?: AntDeviceProperties);
|
|
22
|
-
createSensor(settings: AntDeviceSettings): ISensor;
|
|
23
|
-
getName(): string;
|
|
24
|
-
getUniqueName(): string;
|
|
25
20
|
getDisplayName(): string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
getLogData(data: any, excludeList: any): any;
|
|
21
|
+
getDefaultReconnectDelay(): number;
|
|
22
|
+
isReconnecting(): boolean;
|
|
29
23
|
sendUpdate(request: UpdateRequest, forced?: boolean): Promise<void>;
|
|
30
24
|
onDeviceData(deviceData: FitnessEquipmentSensorState): void;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
mapData(deviceData: FitnessEquipmentSensorState): IncyclistBikeData;
|
|
26
|
+
transformData(adapterData: IncyclistBikeData, deviceData: FitnessEquipmentSensorState): void;
|
|
27
|
+
start(props?: AntFEStartDeviceProperties): Promise<any>;
|
|
28
|
+
performStart(props: AntFEStartDeviceProperties, isReconnect: boolean): Promise<any>;
|
|
29
|
+
private waitForInitialData;
|
|
30
|
+
stopSensor(): Promise<void>;
|
|
31
|
+
initSensor(status: any, props: any): Promise<boolean>;
|
|
32
|
+
sendInititalUserMessage(status: any, props: any): Promise<void>;
|
|
33
|
+
sendInitialRequest(status: any, props: any): Promise<void>;
|
|
35
34
|
setFEDefaultTimeout(): void;
|
|
36
35
|
stop(): Promise<boolean>;
|
|
37
36
|
reconnect(): Promise<boolean>;
|