@ovok/native 1.10.12 → 1.10.14
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/commonjs/modules/bt-device/components/btdevice-instruction.js +1 -1
- package/lib/commonjs/modules/bt-device/components/btdevice-instruction.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +4 -78
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js +577 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js +2 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +1 -0
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/device-variants.js +2 -1
- package/lib/commonjs/modules/bt-management/constants/device-variants.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js +12 -0
- package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/transtek-a6-bp-device-variants.js +478 -0
- package/lib/commonjs/modules/bt-management/constants/transtek-a6-bp-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/core/resolve-device-key.js +8 -1
- package/lib/commonjs/modules/bt-management/core/resolve-device-key.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/device-classes.js +3 -2
- package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +14 -17
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +5 -4
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +4 -6
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js +103 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +97 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +7 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +5 -53
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js +53 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js +70 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/clock-sync.js +1 -0
- package/lib/commonjs/modules/bt-management/types/clock-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/integrated-devices.js +1 -0
- package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js +10 -0
- package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/frame-bytes.js +11 -0
- package/lib/commonjs/modules/bt-management/utils/frame-bytes.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/sig-uuid.js +10 -0
- package/lib/commonjs/modules/bt-management/utils/sig-uuid.js.map +1 -0
- package/lib/module/modules/bt-device/components/btdevice-instruction.js +1 -1
- package/lib/module/modules/bt-device/components/btdevice-instruction.js.map +1 -1
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +4 -78
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js +575 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js +2 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +1 -0
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
- package/lib/module/modules/bt-management/constants/device-variants.js +2 -1
- package/lib/module/modules/bt-management/constants/device-variants.js.map +1 -1
- package/lib/module/modules/bt-management/constants/no-parsing-cases.js +8 -0
- package/lib/module/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
- package/lib/module/modules/bt-management/constants/transtek-a6-bp-device-variants.js +476 -0
- package/lib/module/modules/bt-management/constants/transtek-a6-bp-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/core/resolve-device-key.js +7 -1
- package/lib/module/modules/bt-management/core/resolve-device-key.js.map +1 -1
- package/lib/module/modules/bt-management/services/device-classes.js +3 -2
- package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +13 -15
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +2 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +2 -3
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js +98 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +92 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +6 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +6 -54
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js +48 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js +66 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/types/clock-sync.js +1 -0
- package/lib/module/modules/bt-management/types/clock-sync.js.map +1 -1
- package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
- package/lib/module/modules/bt-management/types/integrated-devices.js +1 -0
- package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
- package/lib/module/modules/bt-management/utils/bytes-to-hex.js +5 -0
- package/lib/module/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
- package/lib/module/modules/bt-management/utils/frame-bytes.js +7 -0
- package/lib/module/modules/bt-management/utils/frame-bytes.js.map +1 -0
- package/lib/module/modules/bt-management/utils/sig-uuid.js +5 -0
- package/lib/module/modules/bt-management/utils/sig-uuid.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +3 -2
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts +19 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +27 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -50
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -45
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +0 -1
package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cryptoJs","_interopRequireDefault","require","_frameReadStatus","_base64ToHex","e","__esModule","default","A6_SCALE_SERVICE","exports","A6_SCALE_NOTIFY","A6_SCALE_WRITE","A6_SCALE_ACK","A6_SCALE_WEIGHT","byte","value","Number","parseInt","readA6Uint","bytes","offset","length","slice","reduce","current","bytesToHex","map","toString","padStart","join","hexToBytes","hex","match","a6EncryptionKey","deviceId","manufacturerData","mac","replace","toLowerCase","manufacturer","base64ToHex","test","startsWith","undefined","prefix","Array","from","character","charCodeAt","encryptA6Body","body","key","padded","fill","encrypted","CryptoJS","AES","encrypt","enc","Hex","parse","mode","ECB","padding","pad","NoPadding","stringify","ciphertext","decryptA6Body","lib","CipherParams","create","decrypted","decrypt","encodeA6Command","command","encodedBody","content","A6ScaleFrameReader","readFrame","buffer","status","FrameReadStatus","INCOMPLETE","consumedBytes","control","frameCount","frameIndex","contentLength","CORRUPT","COMPLETE","frame","decodeA6Command","a6CommandBody"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAP5D;;AASO,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,sCAAsC;AAC/D,MAAME,
|
|
1
|
+
{"version":3,"names":["_cryptoJs","_interopRequireDefault","require","_frameReadStatus","_base64ToHex","e","__esModule","default","A6_SCALE_SERVICE","exports","A6_BPM_SERVICE","A6_SCALE_NOTIFY","A6_SCALE_WRITE","A6_SCALE_ACK","A6_SCALE_WEIGHT","A6_BPM_SYNC","A6_BPM_MEASUREMENT","A6_BPM_START_MEASURING_RESPONSE","A6_BPM_TIME","A6_BPM_SETTING_RESPONSE","byte","value","Number","parseInt","readA6Uint","bytes","offset","length","slice","reduce","current","bytesToHex","map","toString","padStart","join","hexToBytes","hex","match","a6EncryptionKey","deviceId","manufacturerData","mac","replace","toLowerCase","manufacturer","base64ToHex","test","startsWith","undefined","prefix","Array","from","character","charCodeAt","encryptA6Body","body","key","padded","fill","encrypted","CryptoJS","AES","encrypt","enc","Hex","parse","mode","ECB","padding","pad","NoPadding","stringify","ciphertext","decryptA6Body","lib","CipherParams","create","decrypted","decrypt","encodeA6Command","command","encodedBody","content","A6ScaleFrameReader","readFrame","buffer","status","FrameReadStatus","INCOMPLETE","consumedBytes","control","frameCount","frameIndex","contentLength","CORRUPT","COMPLETE","frame","decodeA6Command","a6CommandBody"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAP5D;;AASO,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,sCAAsC;AAC/D,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAG,sCAAsC;AAC7D,MAAMC,eAAe,GAAAF,OAAA,CAAAE,eAAA,GAAG,sCAAsC;AAC9D,MAAMC,cAAc,GAAAH,OAAA,CAAAG,cAAA,GAAG,sCAAsC;AAC7D,MAAMC,YAAY,GAAAJ,OAAA,CAAAI,YAAA,GAAG,sCAAsC;AAC3D,MAAMC,eAAe,GAAAL,OAAA,CAAAK,eAAA,GAAG,MAAM;AAC9B,M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,MAAMC,aAAa,GAAIF,KAAwB,IAAe;EACnE,MAAMH,aAAa,GAAG1E,IAAI,CAAC6E,KAAK,CAAC,CAAC,CAAC,CAAC;EAEpC,OAAOA,KAAK,CAACrE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAGkE,aAAa,CAAC;AAC1C,CAAC;AAACrF,OAAA,CAAA0F,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -8,62 +8,14 @@ var _core = require("@ovok/core");
|
|
|
8
8
|
var _caseType = require("../../../types/case-type.js");
|
|
9
9
|
var _a6ScaleMeasurements = require("./a6-scale.measurements.js");
|
|
10
10
|
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
11
|
-
|
|
12
|
-
serviceUuid: _a6ScaleProtocol.A6_SCALE_SERVICE,
|
|
13
|
-
characteristicUuid,
|
|
14
|
-
frame,
|
|
15
|
-
...(delayBeforeWriteMs ? {
|
|
16
|
-
delayBeforeWriteMs
|
|
17
|
-
} : {})
|
|
18
|
-
});
|
|
19
|
-
|
|
11
|
+
var _a6Sequencer = require("./a6.sequencer.js");
|
|
20
12
|
/** Answers A6 authentication/init requests and decodes the scale's weight records. */
|
|
21
|
-
class A6ScaleSequencer {
|
|
22
|
-
expectedFragmentCount = 0;
|
|
13
|
+
class A6ScaleSequencer extends _a6Sequencer.A6Sequencer {
|
|
23
14
|
userNumber = 0;
|
|
24
15
|
constructor(options) {
|
|
16
|
+
super(_a6ScaleProtocol.A6_SCALE_SERVICE, options);
|
|
25
17
|
this.options = options;
|
|
26
|
-
this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(options.deviceId, options.manufacturerData);
|
|
27
18
|
}
|
|
28
|
-
initialCommands = () => [];
|
|
29
|
-
isHistoryTransfer = () => true;
|
|
30
|
-
nextCommand = frame => {
|
|
31
|
-
const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
|
|
32
|
-
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
33
|
-
const count = control >> 4;
|
|
34
|
-
const index = control & 0x0f;
|
|
35
|
-
const replies = [];
|
|
36
|
-
if (count === 0) {
|
|
37
|
-
return replies;
|
|
38
|
-
}
|
|
39
|
-
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
40
|
-
replies.push(command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
|
|
41
|
-
}
|
|
42
|
-
if (count === 1) {
|
|
43
|
-
replies.push(...this.processMessage(content));
|
|
44
|
-
return replies;
|
|
45
|
-
}
|
|
46
|
-
if (index === 0) {
|
|
47
|
-
this.fragments = Array.from({
|
|
48
|
-
length: count
|
|
49
|
-
}, () => []);
|
|
50
|
-
this.expectedFragmentCount = count;
|
|
51
|
-
}
|
|
52
|
-
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
53
|
-
this.fragments = undefined;
|
|
54
|
-
this.expectedFragmentCount = 0;
|
|
55
|
-
return replies;
|
|
56
|
-
}
|
|
57
|
-
this.fragments[index] = content;
|
|
58
|
-
if (this.fragments.some(part => part.length === 0)) {
|
|
59
|
-
return replies;
|
|
60
|
-
}
|
|
61
|
-
const assembled = this.fragments.flat();
|
|
62
|
-
this.fragments = undefined;
|
|
63
|
-
this.expectedFragmentCount = 0;
|
|
64
|
-
replies.push(...this.processMessage(assembled));
|
|
65
|
-
return replies;
|
|
66
|
-
};
|
|
67
19
|
processMessage = content => {
|
|
68
20
|
const message = (0, _a6ScaleProtocol.decodeA6Command)(content, this.key);
|
|
69
21
|
if (!message) {
|
|
@@ -75,7 +27,7 @@ class A6ScaleSequencer {
|
|
|
75
27
|
}
|
|
76
28
|
this.userNumber = message.body[6] ?? 0;
|
|
77
29
|
const response = (0, _a6ScaleProtocol.encodeA6Command)(0x0008, [0x01, ...message.body.slice(0, 6), 0x00, 0x02], this.key);
|
|
78
|
-
return response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : [];
|
|
30
|
+
return response ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : [];
|
|
79
31
|
}
|
|
80
32
|
if (message.command === 0x0009) {
|
|
81
33
|
const now = this.options.clockSync?.now?.() ?? new Date();
|
|
@@ -83,7 +35,7 @@ class A6ScaleSequencer {
|
|
|
83
35
|
const timezone = this.options.clockSync?.timezone === "utc" ? 48 : 48 - Math.round(now.getTimezoneOffset() / 15);
|
|
84
36
|
const response = (0, _a6ScaleProtocol.encodeA6Command)(0x000a, [0x18, seconds >>> 24 & 0xff, seconds >>> 16 & 0xff, seconds >>> 8 & 0xff, seconds & 0xff, timezone], this.key);
|
|
85
37
|
const sync = (0, _a6ScaleProtocol.encodeA6Command)(0x4801, [this.userNumber, 1], this.key);
|
|
86
|
-
return [...(response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : []), ...(sync ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, 500)] : [])];
|
|
38
|
+
return [...(response ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : []), ...(sync ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, 500)] : [])];
|
|
87
39
|
}
|
|
88
40
|
if (message.command === _a6ScaleProtocol.A6_SCALE_WEIGHT) {
|
|
89
41
|
const weight = (0, _a6ScaleMeasurements.parseA6Weight)(message.body);
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_caseType","_a6ScaleMeasurements","_a6ScaleProtocol","
|
|
1
|
+
{"version":3,"names":["_core","require","_caseType","_a6ScaleMeasurements","_a6ScaleProtocol","_a6Sequencer","A6ScaleSequencer","A6Sequencer","userNumber","constructor","options","A6_SCALE_SERVICE","processMessage","content","message","decodeA6Command","key","command","body","length","response","encodeA6Command","slice","A6_SCALE_WRITE","now","clockSync","Date","seconds","Math","floor","getTime","timezone","round","getTimezoneOffset","sync","A6_SCALE_WEIGHT","weight","parseA6Weight","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","bodyWeight","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAOA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAOA,IAAAI,YAAA,GAAAJ,OAAA;AAcA;AACO,MAAMK,gBAAgB,SAASC,wBAAW,CAAC;EACxCC,UAAU,GAAG,CAAC;EAEfC,WAAWA,CAAkBC,OAAgC,EAAE;IACpE,KAAK,CAACC,iCAAgB,EAAED,OAAO,CAAC;IAAC,KADCA,OAAgC,GAAhCA,OAAgC;EAEpE;EAEUE,cAAc,GAAIC,OAA0B,IAAsB;IAC1E,MAAMC,OAAO,GAAG,IAAAC,gCAAe,EAACF,OAAO,EAAE,IAAI,CAACG,GAAG,CAAC;IAElD,IAAI,CAACF,OAAO,EAAE;MACZ,OAAO,EAAE;IACX;IAEA,IAAIA,OAAO,CAACG,OAAO,KAAK,MAAM,EAAE;MAC9B,IAAIH,OAAO,CAACI,IAAI,CAACC,MAAM,GAAG,CAAC,EAAE;QAC3B,OAAO,EAAE;MACX;MAEA,IAAI,CAACX,UAAU,GAAGM,OAAO,CAACI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;MACtC,MAAME,QAAQ,GAAG,IAAAC,gCAAe,EAC9B,MAAM,EACN,CAAC,IAAI,EAAE,GAAGP,OAAO,CAACI,IAAI,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAC/C,IAAI,CAACN,GACP,CAAC;MAED,OAAOI,QAAQ,GAAG,CAAC,IAAI,CAACH,OAAO,CAACM,+BAAc,EAAEH,QAAQ,CAAC,CAAC,GAAG,EAAE;IACjE;IAEA,IAAIN,OAAO,CAACG,OAAO,KAAK,MAAM,EAAE;MAC9B,MAAMO,GAAG,GAAG,IAAI,CAACd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C,MAAM;UACzBC,kBAAkB,EAAEC,wBAAkB,CAACC,UAAU;UACjD,GAAGR;QACL,CAAa,CAAC;MAChB;IACF;IAEA,OAAO,EAAE;EACX,CAAC;AACH;AAACS,OAAA,CAAAvC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TranstekA6Device = void 0;
|
|
7
|
+
var _noParsingCases = require("../../../constants/no-parsing-cases.js");
|
|
8
|
+
var _integratedDevices = require("../../../types/integrated-devices.js");
|
|
9
|
+
var _btManagedDevice = require("../bt-managed-device.js");
|
|
10
|
+
var _a6BloodPressureSequencer = require("./a6-blood-pressure.sequencer.js");
|
|
11
|
+
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
12
|
+
var _a6ScaleSequencer = require("./a6-scale.sequencer.js");
|
|
13
|
+
/** What differs between the A6 scale (A602) and the A6 blood-pressure monitor (A610). */
|
|
14
|
+
const A6_DEVICES = {
|
|
15
|
+
[_integratedDevices.IntegratedDevices.RPM_SCALE]: {
|
|
16
|
+
service: _a6ScaleProtocol.A6_SCALE_SERVICE,
|
|
17
|
+
sequencer: options => new _a6ScaleSequencer.A6ScaleSequencer(options)
|
|
18
|
+
},
|
|
19
|
+
[_integratedDevices.IntegratedDevices.TRANSTEK_A6_BPM]: {
|
|
20
|
+
service: _a6ScaleProtocol.A6_BPM_SERVICE,
|
|
21
|
+
sequencer: options => new _a6BloodPressureSequencer.A6BloodPressureSequencer(options)
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const servicesFor = service => [{
|
|
25
|
+
uuid: service,
|
|
26
|
+
monitorUuids: [{
|
|
27
|
+
uuid: _a6ScaleProtocol.A6_SCALE_NOTIFY,
|
|
28
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
29
|
+
}],
|
|
30
|
+
writeUuid: {
|
|
31
|
+
uuid: _a6ScaleProtocol.A6_SCALE_WRITE,
|
|
32
|
+
mainCommandUuid: "0007"
|
|
33
|
+
}
|
|
34
|
+
}];
|
|
35
|
+
|
|
36
|
+
/** Transtek A6-generation devices: the GBS-2012-B scale family and the A6 blood-pressure monitors. */
|
|
37
|
+
class TranstekA6Device extends _btManagedDevice.BTManagedDevice {
|
|
38
|
+
stuckDataTimeout = 60_000;
|
|
39
|
+
constructor(device, params) {
|
|
40
|
+
super(device, params);
|
|
41
|
+
const a6 = A6_DEVICES[params.deviceName];
|
|
42
|
+
this.mainServices = servicesFor(a6.service);
|
|
43
|
+
this.frameReader = new _a6ScaleProtocol.A6ScaleFrameReader();
|
|
44
|
+
this.createCommandSequencer = () => a6.sequencer({
|
|
45
|
+
deviceId: device.id,
|
|
46
|
+
manufacturerData: device.manufacturerData,
|
|
47
|
+
clockSync: params.clockSync,
|
|
48
|
+
onResult: result => this.onResult?.(result)
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.TranstekA6Device = TranstekA6Device;
|
|
53
|
+
//# sourceMappingURL=a6.device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_noParsingCases","require","_integratedDevices","_btManagedDevice","_a6BloodPressureSequencer","_a6ScaleProtocol","_a6ScaleSequencer","A6_DEVICES","IntegratedDevices","RPM_SCALE","service","A6_SCALE_SERVICE","sequencer","options","A6ScaleSequencer","TRANSTEK_A6_BPM","A6_BPM_SERVICE","A6BloodPressureSequencer","servicesFor","uuid","monitorUuids","A6_SCALE_NOTIFY","parsingModel","NO_PARSING_CASES","writeUuid","A6_SCALE_WRITE","mainCommandUuid","TranstekA6Device","BTManagedDevice","stuckDataTimeout","constructor","device","params","a6","deviceName","mainServices","frameReader","A6ScaleFrameReader","createCommandSequencer","deviceId","id","manufacturerData","clockSync","onResult","result","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services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ACX2B,QAAQ,EAAER,MAAM,CAACS,EAAE;MACnBC,gBAAgB,EAAEV,MAAM,CAACU,gBAAgB;MACzCC,SAAS,EAAEV,MAAM,CAACU,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IAAK,IAAI,CAACD,QAAQ,GAAGC,MAAM;IAC9C,CAAC,CAAC;EACN;AACF;AAACC,OAAA,CAAAlB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.A6Sequencer = void 0;
|
|
7
|
+
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
8
|
+
/**
|
|
9
|
+
* The A6 session both Transtek A6 devices share: control-byte framing, fragment reassembly, the
|
|
10
|
+
* acknowledgement of each frame, and the device's encryption key. Subclasses handle only the
|
|
11
|
+
* decoded messages of their own service.
|
|
12
|
+
*/
|
|
13
|
+
class A6Sequencer {
|
|
14
|
+
expectedFragmentCount = 0;
|
|
15
|
+
constructor(serviceUuid, device) {
|
|
16
|
+
this.serviceUuid = serviceUuid;
|
|
17
|
+
this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(device.deviceId, device.manufacturerData);
|
|
18
|
+
}
|
|
19
|
+
initialCommands = () => [];
|
|
20
|
+
isHistoryTransfer = () => true;
|
|
21
|
+
nextCommand = frame => {
|
|
22
|
+
const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
|
|
23
|
+
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
24
|
+
const count = control >> 4;
|
|
25
|
+
const index = control & 0x0f;
|
|
26
|
+
const replies = [];
|
|
27
|
+
if (count === 0) {
|
|
28
|
+
return replies;
|
|
29
|
+
}
|
|
30
|
+
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
31
|
+
replies.push(this.command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
|
|
32
|
+
}
|
|
33
|
+
if (count === 1) {
|
|
34
|
+
replies.push(...this.processMessage(content));
|
|
35
|
+
return replies;
|
|
36
|
+
}
|
|
37
|
+
if (index === 0) {
|
|
38
|
+
this.fragments = Array.from({
|
|
39
|
+
length: count
|
|
40
|
+
}, () => []);
|
|
41
|
+
this.expectedFragmentCount = count;
|
|
42
|
+
}
|
|
43
|
+
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
44
|
+
this.fragments = undefined;
|
|
45
|
+
this.expectedFragmentCount = 0;
|
|
46
|
+
return replies;
|
|
47
|
+
}
|
|
48
|
+
this.fragments[index] = content;
|
|
49
|
+
if (this.fragments.some(part => part.length === 0)) {
|
|
50
|
+
return replies;
|
|
51
|
+
}
|
|
52
|
+
const assembled = this.fragments.flat();
|
|
53
|
+
this.fragments = undefined;
|
|
54
|
+
this.expectedFragmentCount = 0;
|
|
55
|
+
replies.push(...this.processMessage(assembled));
|
|
56
|
+
return replies;
|
|
57
|
+
};
|
|
58
|
+
command(characteristicUuid, frame, delayBeforeWriteMs) {
|
|
59
|
+
return {
|
|
60
|
+
serviceUuid: this.serviceUuid,
|
|
61
|
+
characteristicUuid,
|
|
62
|
+
frame,
|
|
63
|
+
...(delayBeforeWriteMs ? {
|
|
64
|
+
delayBeforeWriteMs
|
|
65
|
+
} : {})
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.A6Sequencer = A6Sequencer;
|
|
70
|
+
//# sourceMappingURL=a6.sequencer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_a6ScaleProtocol","require","A6Sequencer","expectedFragmentCount","constructor","serviceUuid","device","key","a6EncryptionKey","deviceId","manufacturerData","initialCommands","isHistoryTransfer","nextCommand","frame","content","a6CommandBody","control","Number","parseInt","count","index","replies","length","push","command","A6_SCALE_ACK","processMessage","fragments","Array","from","undefined","some","part","assembled","flat","characteristicUuid","delayBeforeWriteMs","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6.sequencer.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAeC,WAAW,CAA6B;EAEpDC,qBAAqB,GAAG,CAAC;EAGvBC,WAAWA,CACFC,WAAmB,EACpCC,MAA8D,EAC9D;IAAA,KAFiBD,WAAmB,GAAnBA,WAAmB;IAGpC,IAAI,CAACE,GAAG,GAAG,IAAAC,gCAAe,EAACF,MAAM,CAACG,QAAQ,EAAEH,MAAM,CAACI,gBAAgB,CAAC;EACtE;EAEOC,eAAe,GAAGA,CAAA,KAAgC,EAAE;EAEpDC,iBAAiB,GAAGA,CAAA,KAAe,IAAI;EAEvCC,WAAW,GAAIC,KAAwB,IAA+B;IAC3E,MAAMC,OAAO,GAAG,IAAAC,8BAAa,EAACF,KAAK,CAAC;IACpC,MAAMG,OAAO,GAAGC,MAAM,CAACC,QAAQ,CAACL,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IAC1D,MAAMM,KAAK,GAAGH,OAAO,IAAI,CAAC;IAC1B,MAAMI,KAAK,GAAGJ,OAAO,GAAG,IAAI;IAC5B,MAAMK,OAAwB,GAAG,EAAE;IAEnC,IAAIF,KAAK,KAAK,CAAC,EAAE;MACf,OAAOE,OAAO;IAChB;IAEA,IAAI,EAAEF,KAAK,KAAK,CAAC,IAAIL,OAAO,CAACQ,MAAM,KAAK,CAAC,IAAIR,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE;MACjEO,OAAO,CAACE,IAAI,CAAC,IAAI,CAACC,OAAO,CAACC,6BAAY,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAC9D;IAEA,IAAIN,KAAK,KAAK,CAAC,EAAE;MACfE,OAAO,CAACE,IAAI,CAAC,GAAG,IAAI,CAACG,cAAc,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5
5
|
});
|
|
6
6
|
exports.MamboA5Device = void 0;
|
|
7
7
|
var _core = require("@ovok/core");
|
|
8
|
+
var _noParsingCases = require("../../../constants/no-parsing-cases.js");
|
|
8
9
|
var _btManagedDevice = require("../bt-managed-device.js");
|
|
9
10
|
var _mamboA5Protocol = require("./mambo-a5.protocol.js");
|
|
10
11
|
var _mamboA5Sequencer = require("./mambo-a5.sequencer.js");
|
|
11
|
-
const acceptNothing = {
|
|
12
|
-
caseValuePosition: [],
|
|
13
|
-
cases: []
|
|
14
|
-
};
|
|
15
12
|
const mainServices = [{
|
|
16
13
|
uuid: _mamboA5Protocol.MAMBO_A5_SERVICE,
|
|
17
14
|
monitorUuids: [{
|
|
18
15
|
uuid: _mamboA5Protocol.MAMBO_A5_LOGIN,
|
|
19
|
-
parsingModel:
|
|
16
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
20
17
|
}, {
|
|
21
18
|
uuid: _mamboA5Protocol.MAMBO_A5_NOTIFY,
|
|
22
|
-
parsingModel:
|
|
19
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
23
20
|
}],
|
|
24
21
|
writeUuid: {
|
|
25
22
|
uuid: _mamboA5Protocol.MAMBO_A5_WRITE,
|
|
@@ -31,7 +28,6 @@ const mainServices = [{
|
|
|
31
28
|
class MamboA5Device extends _btManagedDevice.BTManagedDevice {
|
|
32
29
|
mainServices = mainServices;
|
|
33
30
|
stuckDataTimeout = 60_000;
|
|
34
|
-
onStreamStart = undefined;
|
|
35
31
|
getSupportedMeasurementTypeKeys() {
|
|
36
32
|
return [_core.MeasurementTypeKey.bloodOxygenPulseRate];
|
|
37
33
|
}
|
|
@@ -43,9 +39,6 @@ class MamboA5Device extends _btManagedDevice.BTManagedDevice {
|
|
|
43
39
|
onResult: result => this.onResult?.(result)
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
|
-
handleSuccessResult() {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
42
|
}
|
|
50
43
|
exports.MamboA5Device = MamboA5Device;
|
|
51
44
|
//# sourceMappingURL=mambo-a5.device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_btManagedDevice","_mamboA5Protocol","_mamboA5Sequencer","
|
|
1
|
+
{"version":3,"names":["_core","require","_noParsingCases","_btManagedDevice","_mamboA5Protocol","_mamboA5Sequencer","mainServices","uuid","MAMBO_A5_SERVICE","monitorUuids","MAMBO_A5_LOGIN","parsingModel","NO_PARSING_CASES","MAMBO_A5_NOTIFY","writeUuid","MAMBO_A5_WRITE","mainCommandUuid","MamboA5Device","BTManagedDevice","stuckDataTimeout","getSupportedMeasurementTypeKeys","MeasurementTypeKey","bloodOxygenPulseRate","constructor","device","params","frameReader","MamboA5FrameReader","createCommandSequencer","MamboA5Sequencer","clockSync","onResult","result","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/mambo-a5.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAD,OAAA;AAMA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AAOA,IAAAI,iBAAA,GAAAJ,OAAA;AAEA,MAAMK,YAAwB,GAAG,CAC/B;EACEC,IAAI,EAAEC,iCAAgB;EACtBC,YAAY,EAAE,CACZ;IAAEF,IAAI,EAAEG,+BAAc;IAAEC,YAAY,EAAEC;EAAiB,CAAC,EACxD;IAAEL,IAAI,EAAEM,gCAAe;IAAEF,YAAY,EAAEC;EAAiB,CAAC,CAC1D;EACDE,SAAS,EAAE;IAAEP,IAAI,EAAEQ,+BAAc;IAAEC,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACO,MAAMC,aAAa,SAASC,gCAAe,CAA6B;EACnEZ,YAAY,GAAGA,YAAY;EAC3Ba,gBAAgB,GAAG,MAAM;EAEhBC,+BAA+BA,CAAA,EAAyB;IACzE,OAAO,CAACC,wBAAkB,CAACC,oBAAoB,CAAC;EAClD;EAEOC,WAAWA,CAChBC,MAAc,EACdC,MAAsD,EACtD;IACA,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIC,mCAAkB,CAAC,CAAC;IAC3C,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,kCAAgB,CAAC;MACnBC,SAAS,EAAEL,MAAM,CAACK,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;AAEF;AAACC,OAAA,CAAAhB,aAAA,GAAAA,aAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js
CHANGED
|
@@ -4,25 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TranstekCommandDevice = void 0;
|
|
7
|
+
var _noParsingCases = require("../../../constants/no-parsing-cases.js");
|
|
7
8
|
var _integratedDevices = require("../../../types/integrated-devices.js");
|
|
8
9
|
var _deviceSecrets = require("../../device-secrets.js");
|
|
9
10
|
var _btManagedDevice = require("../bt-managed-device.js");
|
|
10
11
|
var _transtekCommandProtocol = require("./transtek-command.protocol.js");
|
|
11
12
|
var _transtekCommandSequencer = require("./transtek-command.sequencer.js");
|
|
12
13
|
/** The sequencer decodes records itself; the declarative parser only has to pass frames on. */
|
|
13
|
-
|
|
14
|
-
caseValuePosition: [],
|
|
15
|
-
cases: []
|
|
16
|
-
};
|
|
14
|
+
|
|
17
15
|
const service = (uuid, data, optional) => ({
|
|
18
16
|
uuid,
|
|
19
17
|
optional,
|
|
20
18
|
monitorUuids: [{
|
|
21
19
|
uuid: _transtekCommandProtocol.TRANSTEK_CHARACTERISTICS.answer,
|
|
22
|
-
parsingModel:
|
|
20
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
23
21
|
}, {
|
|
24
22
|
uuid: data,
|
|
25
|
-
parsingModel:
|
|
23
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
26
24
|
}]
|
|
27
25
|
});
|
|
28
26
|
const SERVICES_BY_KIND = {
|
|
@@ -44,7 +42,6 @@ const secretKey = device => `transtek-password:${device.id}`;
|
|
|
44
42
|
*/
|
|
45
43
|
class TranstekCommandDevice extends _btManagedDevice.BTManagedDevice {
|
|
46
44
|
stuckDataTimeout = 60_000;
|
|
47
|
-
onStreamStart = undefined;
|
|
48
45
|
constructor(device, params) {
|
|
49
46
|
super(device, params);
|
|
50
47
|
const kind = KIND[params.deviceName];
|
|
@@ -63,9 +60,6 @@ class TranstekCommandDevice extends _btManagedDevice.BTManagedDevice {
|
|
|
63
60
|
|
|
64
61
|
/** No framing: every notification is one whole message. */
|
|
65
62
|
validatePackage = () => true;
|
|
66
|
-
handleSuccessResult() {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
63
|
}
|
|
70
64
|
exports.TranstekCommandDevice = TranstekCommandDevice;
|
|
71
65
|
//# sourceMappingURL=transtek-command.device.js.map
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_noParsingCases","require","_integratedDevices","_deviceSecrets","_btManagedDevice","_transtekCommandProtocol","_transtekCommandSequencer","service","uuid","data","optional","monitorUuids","TRANSTEK_CHARACTERISTICS","answer","parsingModel","NO_PARSING_CASES","SERVICES_BY_KIND","TRANSTEK_SERVICES","bloodPressureA2","bloodPressure","bloodPressureA3","scale","scaleA2","weightA2","scaleA3","weightA3","tracker","KIND","IntegratedDevices","TRANSTEK_BPM","TRANSTEK_SCALE","TRANSTEK_SCALE_1525","TRANSTEK_TRACKER","secretKey","device","id","TranstekCommandDevice","BTManagedDevice","stuckDataTimeout","constructor","params","kind","deviceName","mainServices","loadDeviceSecret","createCommandSequencer","TranstekCommandSequencer","heightInCentimetres","onResult","result","onError","error","validatePackage","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.device.ts"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,kBAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAJ,OAAA;AAIA,IAAAK,yBAAA,GAAAL,OAAA;AASA;;AAEA,MAAMM,OAAO,GAAGA,CAACC,IAAY,EAAEC,IAAY,EAAEC,QAAiB,MAAgB;EAC5EF,IAAI;EACJE,QAAQ;EACRC,YAAY,EAAE,CACZ;IAAEH,IAAI,EAAEI,iDAAwB,CAACC,MAAM;IAAEC,YAAY,EAAEC;EAAiB,CAAC,EACzE;IAAEP,IAAI,EAAEC,IAAI;IAAEK,YAAY,EAAEC;EAAiB,CAAC;AAElD,CAAC,CAAC;AAEF,MAAMC,gBAAkD,GAAG;EACzD,gBAAgB,EAAE,CAChBT,OAAO,CAACU,0CAAiB,CAACC,eAAe,EAAEN,iDAAwB,CAACO,aAAa,EAAE,IAAI,CAAC,EACxFZ,OAAO,CAACU,0CAAiB,CAACG,eAAe,EAAER,iDAAwB,CAACO,aAAa,EAAE,IAAI,CAAC,CACzF;EACDE,KAAK,EAAE,CACLd,OAAO,CAACU,0CAAiB,CAACK,OAAO,EAAEV,iDAAwB,CAACW,QAAQ,EAAE,IAAI,CAAC,EAC3EhB,OAAO,CAACU,0CAAiB,CAACO,OAAO,EAAEZ,iDAAwB,CAACa,QAAQ,EAAE,IAAI,CAAC,CAC5E;EACDC,OAAO,EAAE,CAACnB,OAAO,CAACU,0CAAiB,CAACS,OAAO,EAAEd,iDAAwB,CAACc,OAAO,EAAE,KAAK,CAAC;AACvF,CAAC;AAED,MAAMC,IAA0C,GAAG;EACjD,CAACC,oCAAiB,CAACC,YAAY,GAAG,gBAAgB;EAClD,CAACD,oCAAiB,CAACE,cAAc,GAAG,OAAO;EAC3C,CAACF,oCAAiB,CAACG,mBAAmB,GAAG,OAAO;EAChD,CAACH,oCAAiB,CAACI,gBAAgB,GAAG;AACxC,CAAC;AAED,MAAMC,SAAS,GAAIC,MAAc,IAAa,qBAAqBA,MAAM,CAACC,EAAE,EAAE;;AAE9E;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,SAASC,gCAAe,CAAiB;EAExDC,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACL,MAAc,EAAEM,MAA0C,EAAE;IAC7E,KAAK,CAACN,MAAM,EAAEM,MAAM,CAAC;IAErB,MAAMC,IAAI,GAAGd,IAAI,CAACa,MAAM,CAACE,UAAU,CAAC;IAEpC,IAAI,CAACC,YAAY,GAAG3B,gBAAgB,CAACyB,IAAI,CAAC;;IAE1C;IACA,KAAK,IAAAG,+BAAgB,EAACX,SAAS,CAACC,MAAM,CAAC,CAAC;IAExC,IAAI,CAACW,sBAAsB,GAAG,MAC5B,IAAIC,kDAAwB,CAAC;MAC3BL,IAAI;MACJR,SAAS,EAAEA,SAAS,CAACC,MAAM,CAAC;MAC5Ba,mBAAmB,EACjBP,MAAM,CAACE,UAAU,KAAKd,oCAAiB,CAACG,mBAAmB;MAC7DiB,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF,CAAC;MACHC,OAAO,EAAGC,KAAK,IAAK,IAAI,CAACD,OAAO,GAAGC,KAAK;IAC1C,CAAC,CAAC;EACN;;EAEA;EACUC,eAAe,GAAGA,CAAA,KAAe,IAAI;AAEjD;AAACC,OAAA,CAAAjB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js
CHANGED
|
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.verificationCommand = exports.u32 = exports.u16 = exports.transtekTime = exports.transtekSeconds = exports.trackerUserDataCommand = exports.trackerConfigurationCommand = exports.setTimeCommand = exports.scaleProfileCommand = exports.readRandom = exports.readPassword = exports.opcode = exports.endSessionCommand = exports.bindUserCommand = exports.accountIdCommand = exports.TRANSTEK_SERVICES = exports.TRANSTEK_CHARACTERISTICS = exports.ANSWER = void 0;
|
|
7
|
+
var _bytesToHex = require("../../../utils/bytes-to-hex.js");
|
|
7
8
|
var _hexToByte = require("../../../utils/hex-to-byte.js");
|
|
8
9
|
var _le32FromHex = require("../../../utils/le-32-from-hex.js");
|
|
10
|
+
var _sigUuid = require("../../../utils/sig-uuid.js");
|
|
9
11
|
/* eslint-disable import/group-exports */
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -18,21 +20,20 @@ var _le32FromHex = require("../../../utils/le-32-from-hex.js");
|
|
|
18
20
|
*
|
|
19
21
|
* Generation is picked by which primary service the device has: A2 or A3 for each kind.
|
|
20
22
|
*/
|
|
21
|
-
const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
|
|
22
23
|
const TRANSTEK_SERVICES = exports.TRANSTEK_SERVICES = {
|
|
23
|
-
bloodPressureA2:
|
|
24
|
-
bloodPressureA3:
|
|
25
|
-
scaleA2:
|
|
26
|
-
scaleA3:
|
|
27
|
-
tracker:
|
|
24
|
+
bloodPressureA2: (0, _sigUuid.sigUuid)("7809"),
|
|
25
|
+
bloodPressureA3: (0, _sigUuid.sigUuid)("7889"),
|
|
26
|
+
scaleA2: (0, _sigUuid.sigUuid)("7802"),
|
|
27
|
+
scaleA3: (0, _sigUuid.sigUuid)("7892"),
|
|
28
|
+
tracker: (0, _sigUuid.sigUuid)("7801")
|
|
28
29
|
};
|
|
29
30
|
const TRANSTEK_CHARACTERISTICS = exports.TRANSTEK_CHARACTERISTICS = {
|
|
30
|
-
command:
|
|
31
|
-
answer:
|
|
32
|
-
bloodPressure:
|
|
33
|
-
weightA2:
|
|
34
|
-
weightA3:
|
|
35
|
-
tracker:
|
|
31
|
+
command: (0, _sigUuid.sigUuid)("8a81"),
|
|
32
|
+
answer: (0, _sigUuid.sigUuid)("8a82"),
|
|
33
|
+
bloodPressure: (0, _sigUuid.sigUuid)("8a91"),
|
|
34
|
+
weightA2: (0, _sigUuid.sigUuid)("8a21"),
|
|
35
|
+
weightA3: (0, _sigUuid.sigUuid)("8a24"),
|
|
36
|
+
tracker: (0, _sigUuid.sigUuid)("8a11")
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
/** Device-to-app opcodes on the answer characteristic. */
|
|
@@ -45,7 +46,6 @@ const ANSWER = exports.ANSWER = {
|
|
|
45
46
|
|
|
46
47
|
/** Seconds since this local wall-clock instant are how both directions carry time. */
|
|
47
48
|
const EPOCH_UTC_MS = Date.UTC(2010, 0, 1);
|
|
48
|
-
const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
|
|
49
49
|
const le32 = value => [value & 0xff, value >>> 8 & 0xff, value >>> 16 & 0xff, value >>> 24 & 0xff];
|
|
50
50
|
const u32 = (frame, index) => (0, _le32FromHex.le32FromHex)([...frame], index) >>> 0;
|
|
51
51
|
exports.u32 = u32;
|
|
@@ -70,23 +70,23 @@ const readRandom = frame => u32(frame, 1);
|
|
|
70
70
|
|
|
71
71
|
/** `21 FF 00 00 UU`: sent after the pairing password. */
|
|
72
72
|
exports.readRandom = readRandom;
|
|
73
|
-
const accountIdCommand = user =>
|
|
73
|
+
const accountIdCommand = user => (0, _bytesToHex.bytesToHex)([0x21, 0xff, 0x00, 0x00, user]);
|
|
74
74
|
|
|
75
75
|
/** `20` + (password XOR random): proves this phone holds the device's password. */
|
|
76
76
|
exports.accountIdCommand = accountIdCommand;
|
|
77
|
-
const verificationCommand = (password, random) =>
|
|
77
|
+
const verificationCommand = (password, random) => (0, _bytesToHex.bytesToHex)([0x20, ...le32((password ^ random) >>> 0)]);
|
|
78
78
|
exports.verificationCommand = verificationCommand;
|
|
79
|
-
const setTimeCommand = now =>
|
|
79
|
+
const setTimeCommand = now => (0, _bytesToHex.bytesToHex)([0x02, ...le32(transtekSeconds(now))]);
|
|
80
80
|
|
|
81
81
|
/** `22`: the app is done with this session. */
|
|
82
82
|
exports.setTimeCommand = setTimeCommand;
|
|
83
|
-
const endSessionCommand = () =>
|
|
83
|
+
const endSessionCommand = () => (0, _bytesToHex.bytesToHex)([0x22]);
|
|
84
84
|
|
|
85
85
|
/** `03 UU` + an 18-byte, space-padded user name (A3 pairing). */
|
|
86
86
|
exports.endSessionCommand = endSessionCommand;
|
|
87
87
|
const bindUserCommand = (user, name) => {
|
|
88
88
|
const bytes = Array.from(name.slice(0, 18), char => char.charCodeAt(0) & 0x7f);
|
|
89
|
-
return
|
|
89
|
+
return (0, _bytesToHex.bytesToHex)([0x03, user, ...bytes, ...Array(18 - bytes.length).fill(0x20)]);
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -98,15 +98,15 @@ exports.bindUserCommand = bindUserCommand;
|
|
|
98
98
|
const scaleProfileCommand = (user, heightInCentimetres) => {
|
|
99
99
|
const heightCm = 175;
|
|
100
100
|
const height = heightInCentimetres ? [heightCm & 0xff, 0xe0 + (heightCm >> 8)] : [heightCm * 10 & 0xff, 0xd0 | heightCm * 10 >> 8];
|
|
101
|
-
return
|
|
101
|
+
return (0, _bytesToHex.bytesToHex)([0x51, 0x17, user, 0x01, 30, ...height, 0x00, 0x00, 0x00, 0x00, 0x00]);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
/** `40 00`: tracker configuration, leaving stored data in place. */
|
|
105
105
|
exports.scaleProfileCommand = scaleProfileCommand;
|
|
106
|
-
const trackerConfigurationCommand = () =>
|
|
106
|
+
const trackerConfigurationCommand = () => (0, _bytesToHex.bytesToHex)([0x40, 0x00]);
|
|
107
107
|
|
|
108
108
|
/** `05`: tracker user data - 70 kg and 1.75 m, the same defaults as the scale profile. */
|
|
109
109
|
exports.trackerConfigurationCommand = trackerConfigurationCommand;
|
|
110
|
-
const trackerUserDataCommand = () =>
|
|
110
|
+
const trackerUserDataCommand = () => (0, _bytesToHex.bytesToHex)([0x05, 0x0a, 0x00, ...[7000 & 0xff, 7000 >> 8], 0x00, 0xfe, 175 & 0xff, 0xe0]);
|
|
111
111
|
exports.trackerUserDataCommand = trackerUserDataCommand;
|
|
112
112
|
//# sourceMappingURL=transtek-command.protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_bytesToHex","require","_hexToByte","_le32FromHex","_sigUuid","TRANSTEK_SERVICES","exports","bloodPressureA2","sigUuid","bloodPressureA3","scaleA2","scaleA3","tracker","TRANSTEK_CHARACTERISTICS","command","answer","bloodPressure","weightA2","weightA3","ANSWER","password","random","userCount","userInfo","EPOCH_UTC_MS","Date","UTC","le32","value","u32","frame","index","le32FromHex","u16","hexToByte","opcode","transtekTime","seconds","wall","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","transtekSeconds","now","Math","floor","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","readPassword","readRandom","accountIdCommand","user","bytesToHex","verificationCommand","setTimeCommand","endSessionCommand","bindUserCommand","name","bytes","Array","from","slice","char","charCodeAt","length","fill","scaleProfileCommand","heightInCentimetres","heightCm","height","trackerConfigurationCommand","trackerUserDataCommand"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AALA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,eAAe,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;EAChCC,eAAe,EAAE,IAAAD,gBAAO,EAAC,MAAM,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ENTS = [_core.MeasurementTypeKey.stepCount, _core.Mea
|
|
|
35
35
|
class TrasenseS9Device extends _btManagedDevice.BTManagedDevice {
|
|
36
36
|
mainServices = s9Services;
|
|
37
37
|
stuckDataTimeout = 120_000;
|
|
38
|
-
onStreamStart = undefined;
|
|
39
38
|
frameReader = new _s9FrameReader.S9FrameReader();
|
|
40
39
|
constructor(device, params) {
|
|
41
40
|
super(device, params);
|
|
@@ -66,9 +65,6 @@ class TrasenseS9Device extends _btManagedDevice.BTManagedDevice {
|
|
|
66
65
|
getSupportedMeasurementTypeKeys() {
|
|
67
66
|
return [...S9_SUPPORTED_MEASUREMENTS];
|
|
68
67
|
}
|
|
69
|
-
handleSuccessResult() {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
68
|
}
|
|
73
69
|
exports.TrasenseS9Device = TrasenseS9Device;
|
|
74
70
|
//# sourceMappingURL=s9.device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_caseType","_btManagedDevice","_s9FrameReader","_s9CommandSequencer","acceptProtocolFrames","caseValuePosition","cases","caseValue","caseType","CaseType","OTHER","parseDefinitions","description","s9Services","uuid","TRASENSE_S9_SERVICE","writeUuid","mainCommandUuid","TRASENSE_S9_WRITE","monitorUuids","TRASENSE_S9_NOTIFY","parsingModel","S9_SUPPORTED_MEASUREMENTS","MeasurementTypeKey","stepCount","heartRate","TrasenseS9Device","BTManagedDevice","mainServices","stuckDataTimeout","
|
|
1
|
+
{"version":3,"names":["_core","require","_caseType","_btManagedDevice","_s9FrameReader","_s9CommandSequencer","acceptProtocolFrames","caseValuePosition","cases","caseValue","caseType","CaseType","OTHER","parseDefinitions","description","s9Services","uuid","TRASENSE_S9_SERVICE","writeUuid","mainCommandUuid","TRASENSE_S9_WRITE","monitorUuids","TRASENSE_S9_NOTIFY","parsingModel","S9_SUPPORTED_MEASUREMENTS","MeasurementTypeKey","stepCount","heartRate","TrasenseS9Device","BTManagedDevice","mainServices","stuckDataTimeout","frameReader","S9FrameReader","constructor","device","params","deviceData","manufacturerData","createCommandSequencer","S9CommandSequencer","clockSync","write","serviceUuid","characteristicUuid","onResult","result","onConnectionEvent","event","onIdentity","_firmware","hardwareAddress","model","onError","error","onComplete","setTimeout","disconnect","getSupportedMeasurementTypeKeys","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/trasense/s9.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAKA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,MAAMK,oBAAoB,GAAG;EAC3BC,iBAAiB,EAAE,EAAE;EACrBC,KAAK,EAAE,CACL;IACEC,SAAS,EAAE,EAAE;IACbC,QAAQ,EAAEC,kBAAQ,CAACC,KAAK;IACxBC,gBAAgB,EAAE,EAAE;IACpBC,WAAW,EAAE;EACf,CAAC;AAEL,CAAC;AAED,MAAMC,UAAsB,GAAG,CAC7B;EACEC,IAAI,EAAEC,uCAAmB;EACzBC,SAAS,EAAE;IACTF,IAAI,EAAEC,uCAAmB;IACzBE,eAAe,EAAEC;EACnB,CAAC;EACDC,YAAY,EAAE,CACZ;IAAEL,IAAI,EAAEM,sCAAkB;IAAEC,YAAY,EAAEjB;EAAqB,CAAC;AAEpE,CAAC,CACF;AAED,MAAMkB,yBAAyB,GAAG,CAChCC,wBAAkB,CAACC,SAAS,EAC5BD,wBAAkB,CAACE,SAAS,CAC7B;;AAED;AACO,MAAMC,gBAAgB,SAASC,gCAAe,CAAgC;EACzEC,YAAY,GAAGf,UAAU;EACzBgB,gBAAgB,GAAG,OAAO;EAC1BC,WAAW,GAAG,IAAIC,4BAAa,CAAC,CAAC;EAEpCC,WAAWA,CAChBC,MAAc,EACdC,MAAyD,EACzD;IACA,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;;IAErB;IACA,IAAI,CAACC,UAAU,CAACC,gBAAgB,GAAG,EAAE;IAErC,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,sCAAkB,CAAC;MACrBC,SAAS,EAAEL,MAAM,CAACK,SAAS;MAC3BC,KAAK,EAAE;QACLC,WAAW,EAAE1B,uCAAmB;QAChC2B,kBAAkB,EAAExB;MACtB,CAAC;MACDyB,QAAQ,EAAGC,MAAM,IAAK,IAAI,CAACD,QAAQ,GAAGC,MAAM,CAAC;MAC7CC,iBAAiB,EAAGC,KAAK,IACvB,IAAI,CAACD,iBAAiB,GAAG;QAAEV,UAAU,EAAE,IAAI,CAACA,UAAU;QAAE,GAAGW;MAAM,CAAC,CAAC;MACrEC,UAAU,EAAEA,CAACC,SAAS,EAAEC,eAAe,KAAK;QAC1C,IAAI,CAACd,UAAU,CAACe,KAAK,GAAG,MAAM;QAC9B,IAAI,CAACf,UAAU,CAACc,eAAe,GAAGA,eAAe;MACnD,CAAC;MACDE,OAAO,EAAGC,KAAK,IAAK,IAAI,CAACD,OAAO,GAAGC,KAAK,CAAC;MACzCC,UAAU,EAAEA,CAAA,KAAM;QAChBC,UAAU,CAAC,MAAM,KAAK,IAAI,CAACC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;MAC7C;IACF,CAAC,CAAC;EACN;EAEmBC,+BAA+BA,CAAA,EAAyB;IACzE,OAAO,CAAC,GAAGlC,yBAAyB,CAAC;EACvC;AAEF;AAACmC,OAAA,CAAA/B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js
CHANGED
|
@@ -24,7 +24,6 @@ const acceptEverything = {
|
|
|
24
24
|
class VerovalActivityDevice extends _btManagedDevice.BTManagedDevice {
|
|
25
25
|
stuckDataTimeout = STUCK_TIMEOUT_MS;
|
|
26
26
|
preferredMtu = PREFERRED_MTU;
|
|
27
|
-
onStreamStart = undefined;
|
|
28
27
|
mainServices = [{
|
|
29
28
|
uuid: _verovalActivitySequencer.VEROVAL_ACTIVITY_SERVICE,
|
|
30
29
|
monitorUuids: [{
|
|
@@ -49,9 +48,6 @@ class VerovalActivityDevice extends _btManagedDevice.BTManagedDevice {
|
|
|
49
48
|
super(device, params);
|
|
50
49
|
this.frameReader = new _verovalActivityFrameReader.VerovalActivityFrameReader();
|
|
51
50
|
}
|
|
52
|
-
handleSuccessResult() {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
51
|
}
|
|
56
52
|
exports.VerovalActivityDevice = VerovalActivityDevice;
|
|
57
53
|
//# sourceMappingURL=veroval.activity-device.js.map
|