@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
|
@@ -4,40 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.readHa120 = exports.readFr302 = exports.JUMPER_SERVICE = exports.JUMPER_NOTIFY = exports.JUMPER_GATT = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _frameBytes = require("../../../utils/frame-bytes.js");
|
|
8
|
+
var _sigUuid = require("../../../utils/sig-uuid.js");
|
|
8
9
|
/* eslint-disable import/group-exports */
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Jumper Medical devices and their rebrands, from MedM Health Diary 3.12.11's `CJumper_*`
|
|
12
13
|
* classes. All three kinds here only notify; the app never writes.
|
|
13
14
|
*/
|
|
14
|
-
const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
|
|
15
|
-
|
|
16
15
|
/** Jumper's own service and characteristic, used by the oximeter and thermometers. */
|
|
17
16
|
const JUMPER_SERVICE = exports.JUMPER_SERVICE = "cdeacb80-5235-4c07-8846-93a37ee6b86d";
|
|
18
17
|
const JUMPER_NOTIFY = exports.JUMPER_NOTIFY = "cdeacb81-5235-4c07-8846-93a37ee6b86d";
|
|
19
18
|
const JUMPER_GATT = exports.JUMPER_GATT = {
|
|
20
19
|
oximeterAlternate: {
|
|
21
|
-
service:
|
|
22
|
-
notify:
|
|
20
|
+
service: (0, _sigUuid.sigUuid)("fee0"),
|
|
21
|
+
notify: (0, _sigUuid.sigUuid)("fee1")
|
|
23
22
|
},
|
|
24
23
|
thermometerAlternate: {
|
|
25
|
-
service:
|
|
26
|
-
notify:
|
|
24
|
+
service: (0, _sigUuid.sigUuid)("fff0"),
|
|
25
|
+
notify: (0, _sigUuid.sigUuid)("fff3")
|
|
27
26
|
},
|
|
28
27
|
bloodPressure: {
|
|
29
|
-
service:
|
|
30
|
-
notify:
|
|
28
|
+
service: (0, _sigUuid.sigUuid)("fff0"),
|
|
29
|
+
notify: (0, _sigUuid.sigUuid)("fff1")
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
const bytes = frame => frame.map(byte => (0, _hexToByte.hexToByte)(byte));
|
|
34
32
|
|
|
35
33
|
/**
|
|
36
34
|
* HA120 (and Medicare Lifesense MD1803, Oxiline Pressure X Pro, Alphamed U80N/U90): a single
|
|
37
35
|
* `FD FD FC SYS DIA PULSE [X] 0D 0A` frame per measurement, in mmHg, timed by the phone.
|
|
38
36
|
*/
|
|
39
37
|
const readHa120 = frame => {
|
|
40
|
-
const b =
|
|
38
|
+
const b = (0, _frameBytes.frameBytes)(frame);
|
|
41
39
|
if (b.length !== 8 && b.length !== 9 || b[0] !== 0xfd || b[1] !== 0xfd || b[2] !== 0xfc || b[b.length - 2] !== 0x0d || b[b.length - 1] !== 0x0a) {
|
|
42
40
|
return undefined;
|
|
43
41
|
}
|
|
@@ -54,7 +52,7 @@ const readHa120 = frame => {
|
|
|
54
52
|
*/
|
|
55
53
|
exports.readHa120 = readHa120;
|
|
56
54
|
const readFr302 = frame => {
|
|
57
|
-
const b =
|
|
55
|
+
const b = (0, _frameBytes.frameBytes)(frame);
|
|
58
56
|
if (b.length !== 5 || b[0] !== 0xaa || b[1] !== 0x22 && b[1] !== 0x33) {
|
|
59
57
|
return undefined;
|
|
60
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_frameBytes","require","_sigUuid","JUMPER_SERVICE","exports","JUMPER_NOTIFY","JUMPER_GATT","oximeterAlternate","service","sigUuid","notify","thermometerAlternate","bloodPressure","readHa120","frame","b","frameBytes","length","undefined","systolic","diastolic","heartRate","readFr302"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/jumper/jumper.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAHA;;AAKA;AACA;AACA;AACA;AACA;AACO,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,sCAAsC;AA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OAAA,CAAAS,SAAA,GAAAA,SAAA;AAIO,MAAMS,SAAS,GAAIR,KAAwB,IAAyB;EACzE,MAAMC,CAAC,GAAG,IAAAC,sBAAU,EAACF,KAAK,CAAC;EAE3B,IAAIC,CAAC,CAACE,MAAM,KAAK,CAAC,IAAIF,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IAAKA,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IAAIA,CAAC,CAAC,CAAC,CAAC,KAAK,IAAK,EAAE;IACvE,OAAOG,SAAS;EAClB;EAEA,IAAI,CAAE,CAACH,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAKA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAIA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAIA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAI,IAAI,MAAMA,CAAC,CAAC,CAAC,CAAC,EAAE;IAC7E,OAAOG,SAAS;EAClB;EAEA,OAAO,CAAE,CAACH,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG;AACjD,CAAC;AAACX,OAAA,CAAAkB,SAAA,GAAAA,SAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.standardGlucoseDevice = exports.recordedAtFromGlucoseFrame = void 0;
|
|
7
7
|
var _core = require("@ovok/core");
|
|
8
|
+
var _sigUuid = require("../../../utils/sig-uuid.js");
|
|
8
9
|
var _defineCustomDevice = require("../../custom/define-custom-device.js");
|
|
9
10
|
var _standardGattProfile = require("./standard-gatt.profile.js");
|
|
10
11
|
/**
|
|
@@ -96,9 +97,9 @@ const standardGlucoseDevice = params => (0, _defineCustomDevice.defineCustomDevi
|
|
|
96
97
|
oneReadingPerConnection: params.oneReadingPerConnection,
|
|
97
98
|
stuckDataTimeoutMs: params.stuckDataTimeoutMs ?? 60_000,
|
|
98
99
|
services: [{
|
|
99
|
-
uuid: (0,
|
|
100
|
+
uuid: (0, _sigUuid.sigUuid)("1808"),
|
|
100
101
|
monitor: [{
|
|
101
|
-
uuid: (0,
|
|
102
|
+
uuid: (0, _sigUuid.sigUuid)("2a18"),
|
|
102
103
|
frame: {
|
|
103
104
|
minLengthBytes: TIME_OFFSET_INDEX
|
|
104
105
|
},
|
|
@@ -115,7 +116,7 @@ const standardGlucoseDevice = params => (0, _defineCustomDevice.defineCustomDevi
|
|
|
115
116
|
description: "A record without a concentration"
|
|
116
117
|
})
|
|
117
118
|
}, {
|
|
118
|
-
uuid: (0,
|
|
119
|
+
uuid: (0, _sigUuid.sigUuid)("2a52"),
|
|
119
120
|
frame: {
|
|
120
121
|
minLengthBytes: 2
|
|
121
122
|
},
|
|
@@ -131,7 +132,7 @@ const standardGlucoseDevice = params => (0, _defineCustomDevice.defineCustomDevi
|
|
|
131
132
|
}]
|
|
132
133
|
}],
|
|
133
134
|
write: {
|
|
134
|
-
uuid: (0,
|
|
135
|
+
uuid: (0, _sigUuid.sigUuid)("2a52"),
|
|
135
136
|
commandHex: REPORT_ALL_STORED_RECORDS,
|
|
136
137
|
when: "connect"
|
|
137
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_defineCustomDevice","_standardGattProfile","MG_PER_DL_PER_KG_PER_L","MG_PER_DL_PER_MOL_PER_L","FLAG_TIME_OFFSET","FLAG_CONCENTRATION","FLAG_MOL_PER_L","BASE_TIME_INDEX","TIME_OFFSET_INDEX","CONTROL_SOLUTION_TYPE","CONTROL_SOLUTION_LOCATION","REPORT_ALL_STORED_RECORDS","concentrationIndex","flags","selector","toString","padStart","ALL_FLAGS","Array","from","length","_","glucoseField","index","littleEndian","scale","decimals","byte","frame","value","Number","parseInt","isInteger","undefined","recordedAtFromGlucoseFrame","parts","i","some","part","yearLow","yearHigh","month","day","hour","minute","second","year","recordedAt","Date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","low","high","offsetMinutes","setMinutes","exports","isControlSolution","typeAndLocation","standardGlucoseDevice","params","defineCustomDevice","id","MeasurementTypeKey","bloodGlucose","nameMatch","matchByService","oneReadingPerConnection","stuckDataTimeoutMs","services","uuid","sigUuid","monitor","minLengthBytes","caseSelectorBytes","cases","map","kind","measurementTypeKey","fields","description","write","commandHex","when","decorateReading","reading","recordOffset","decorated"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAIA,IAAAC,
|
|
1
|
+
{"version":3,"names":["_core","require","_sigUuid","_defineCustomDevice","_standardGattProfile","MG_PER_DL_PER_KG_PER_L","MG_PER_DL_PER_MOL_PER_L","FLAG_TIME_OFFSET","FLAG_CONCENTRATION","FLAG_MOL_PER_L","BASE_TIME_INDEX","TIME_OFFSET_INDEX","CONTROL_SOLUTION_TYPE","CONTROL_SOLUTION_LOCATION","REPORT_ALL_STORED_RECORDS","concentrationIndex","flags","selector","toString","padStart","ALL_FLAGS","Array","from","length","_","glucoseField","index","littleEndian","scale","decimals","byte","frame","value","Number","parseInt","isInteger","undefined","recordedAtFromGlucoseFrame","parts","i","some","part","yearLow","yearHigh","month","day","hour","minute","second","year","recordedAt","Date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","low","high","offsetMinutes","setMinutes","exports","isControlSolution","typeAndLocation","standardGlucoseDevice","params","defineCustomDevice","id","MeasurementTypeKey","bloodGlucose","nameMatch","matchByService","oneReadingPerConnection","stuckDataTimeoutMs","services","uuid","sigUuid","monitor","minLengthBytes","caseSelectorBytes","cases","map","kind","measurementTypeKey","fields","description","write","commandHex","when","decorateReading","reading","recordOffset","decorated"],"sourceRoot":"../../../../../../../src","sources":["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EAAE,MAAe;QAAEG,WAAW,EAAE;MAAyB,CAAC;IAEpF,CAAC,CACF;IACDC,KAAK,EAAE;MACLX,IAAI,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;MACrBW,UAAU,EAAE1E,yBAAyB;MACrC2E,IAAI,EAAE;IACR;EACF,CAAC;AAEL,CAAC,EACD;EACEC,eAAe,EAAEA,CAACC,OAAO,EAAE5D,KAAK,EAAE6D,YAAY,KAAK;IACjD,IAAI7D,KAAK,IAAIgC,iBAAiB,CAAChC,KAAK,CAAC,EAAE;MACrC,OAAO,IAAI;IACb;IAEA,MAAMmB,UAAU,GAAGnB,KAAK,GAAGM,0BAA0B,CAACN,KAAK,CAAC,GAAGK,SAAS;IACxE,MAAMyD,SAAS,GAAG3C,UAAU,GAAG;MAAE,GAAGyC,OAAO;MAAEzC;IAAW,CAAC,GAAGyC,OAAO;IAEnE,OAAOzB,MAAM,CAACwB,eAAe,GACzBxB,MAAM,CAACwB,eAAe,CAACG,SAAS,EAAE9D,KAAK,EAAE6D,YAAY,CAAC,GACtDC,SAAS;EACf;AACF,CACF,CAAC;AAAC/B,OAAA,CAAAG,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js
CHANGED
|
@@ -9,21 +9,19 @@ Object.defineProperty(exports, "bloodPressureStatusFromFrame", {
|
|
|
9
9
|
return _standardGattBloodPressureStatus.bloodPressureStatusFromFrame;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
exports.
|
|
12
|
+
exports.recordedAtFromBloodPressureFrame = exports.littleEndian = exports.decorateBloodPressureReading = exports.declareProfile = void 0;
|
|
13
13
|
var _bloodPressureStates = require("../../../types/blood-pressure-states.js");
|
|
14
|
+
var _sigUuid = require("../../../utils/sig-uuid.js");
|
|
14
15
|
var _defineCustomDevice = require("../../custom/define-custom-device.js");
|
|
15
16
|
var _standardGattBloodPressureStatus = require("./standard-gatt.blood-pressure-status.js");
|
|
16
17
|
/** Milliseconds a spot-check device may take to produce its reading. */
|
|
17
18
|
const SPOT_CHECK_TIMEOUT_MS = 60_000;
|
|
18
|
-
const sigUuid = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* The flags byte selects the case, because it decides which optional fields are present and
|
|
22
21
|
* therefore where the later ones sit. Fields common to every shape are declared once; a
|
|
23
22
|
* field a flag adds is declared against the selector that carries it, at the offset that
|
|
24
23
|
* flag combination puts it and with the frame length that shape guarantees.
|
|
25
24
|
*/
|
|
26
|
-
exports.sigUuid = sigUuid;
|
|
27
25
|
const declareProfile = (params, profile) => (0, _defineCustomDevice.defineCustomDevice)({
|
|
28
26
|
id: params.id ?? `standard-${profile.measurementTypeKey}`,
|
|
29
27
|
nameMatch: params.nameMatch,
|
|
@@ -31,9 +29,9 @@ const declareProfile = (params, profile) => (0, _defineCustomDevice.defineCustom
|
|
|
31
29
|
oneReadingPerConnection: params.oneReadingPerConnection,
|
|
32
30
|
stuckDataTimeoutMs: params.stuckDataTimeoutMs ?? SPOT_CHECK_TIMEOUT_MS,
|
|
33
31
|
services: [{
|
|
34
|
-
uuid: sigUuid(profile.service),
|
|
32
|
+
uuid: (0, _sigUuid.sigUuid)(profile.service),
|
|
35
33
|
monitor: [{
|
|
36
|
-
uuid: sigUuid(profile.characteristic),
|
|
34
|
+
uuid: (0, _sigUuid.sigUuid)(profile.characteristic),
|
|
37
35
|
frame: {
|
|
38
36
|
minLengthBytes: profile.minLengthBytes
|
|
39
37
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bloodPressureStates","require","_defineCustomDevice","_standardGattBloodPressureStatus","SPOT_CHECK_TIMEOUT_MS","
|
|
1
|
+
{"version":3,"names":["_bloodPressureStates","require","_sigUuid","_defineCustomDevice","_standardGattBloodPressureStatus","SPOT_CHECK_TIMEOUT_MS","declareProfile","params","profile","defineCustomDevice","id","measurementTypeKey","nameMatch","matchByService","undefined","oneReadingPerConnection","stuckDataTimeoutMs","services","uuid","sigUuid","service","monitor","characteristic","frame","minLengthBytes","caseSelectorBytes","cases","selectors","map","selector","optional","optionalFields","fields","fieldsBySelector","kind","decorateReading","exports","littleEndian","name","byteIndexes","unit","encoding","byteOrder","byteAt","index","offset","value","Number","parseInt","isInteger","recordedAtFromBloodPressureFrame","flags","yearLow","yearHigh","month","day","hour","minute","second","year","recordedAt","Date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","decorateBloodPressureReading","reading","recordOffset","cursor","metadata","userId","memorySlot","status","bloodPressureStatusFromFrame","BloodPressureStates","DISTURB_DETECTED","LOOSE_SLEEVE","REGULAR","irregularHeartbeat","Object","keys","length"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.ts"],"mappings":";;;;;;;;;;;;AAEA,IAAAA,oBAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,gCAAA,GAAAH,OAAA;AAEA;AACA,MAAMI,qBAAqB,GAAG,MAAM;AAkDpC;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,cAAc,GAAGA,CACrBC,MAA4B,EAC5BC,OAAoB,KAEpB,IAAAC,sCAAkB,EAChB;EACEC,EAAE,EAAEH,MAAM,CAACG,EAAE,IAAI,YAAYF,OAAO,CAACG,kBAAkB,EAAE;EACzDC,SAAS,EAAEL,MAAM,CAACK,SAAS;EAC3BC,cAAc,EAAEN,MAAM,CAACK,SAAS,KAAKE,SAAS;EAC9CC,uBAAuB,EAAER,MAAM,CAACQ,uBAAuB;EACvDC,kBAAkB,EAAET,MAAM,CAACS,kBAAkB,IAAIX,qBAAqB;EACtEY,QAAQ,EAAE,CACR;IACEC,IAAI,EAAE,IAAAC,gBAAO,EAACX,OAAO,CAACY,OAAO,CAAC;IAC9BC,OAAO,EAAE,CACP;MACEH,IAAI,EAAE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;IAAEA;EAAW,CAAC,GAAG,CAAC,CAAC;EAE1E,IAAI,CAACT,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE;IACxB,MAAMsB,MAAM,GAAG9B,MAAM,CAACpB,KAAK,EAAEgD,MAAM,EAAE1B,MAAM,CAAC;IAE5C,IAAI4B,MAAM,KAAK,CAAC,IAAIA,MAAM,KAAK,CAAC,EAAE;MAChCD,QAAQ,CAACE,UAAU,GAAGD,MAAM,GAAG,CAAC;IAClC;IAEAF,MAAM,IAAI,CAAC;EACb;EAEA,IAAI,CAACpB,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE;IACxB,MAAMwB,MAAM,GAAG,IAAAC,6DAA4B,EAACrD,KAAK,EAAEsB,MAAM,CAAC;IAE1D,IAAI8B,MAAM,KAAK7D,SAAS,EAAE;MACxB0D,QAAQ,CAACG,MAAM,GACb,CAACA,MAAM,GAAG,IAAI,MAAM,CAAC,GACjBE,wCAAmB,CAACC,gBAAgB,GACpC,CAACH,MAAM,GAAG,IAAI,MAAM,CAAC,GACnBE,wCAAmB,CAACE,YAAY,GAChCF,wCAAmB,CAACG,OAAO;MAEnC,IAAI,CAACL,MAAM,GAAG,IAAI,MAAM,CAAC,EAAE;QACzBH,QAAQ,CAACS,kBAAkB,GAAG,IAAI;MACpC;IACF;EACF;EAEA,OAAOC,MAAM,CAACC,IAAI,CAACX,QAAQ,CAAC,CAACY,MAAM,GAAG,CAAC,GAAG;IAAE,GAAGf,OAAO;IAAE,GAAGG;EAAS,CAAC,GAAGH,OAAO;AACjF,CAAC;AAACjC,OAAA,CAAAgC,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TaidocDevice = void 0;
|
|
7
|
+
var _noParsingCases = require("../../../constants/no-parsing-cases.js");
|
|
7
8
|
var _integratedDevices = require("../../../types/integrated-devices.js");
|
|
8
9
|
var _btManagedDevice = require("../bt-managed-device.js");
|
|
9
10
|
var _taidocProtocol = require("./taidoc.protocol.js");
|
|
@@ -17,15 +18,12 @@ const KIND = {
|
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
/** The sequencer decodes records itself; the declarative parser only passes frames on. */
|
|
20
|
-
|
|
21
|
-
caseValuePosition: [],
|
|
22
|
-
cases: []
|
|
23
|
-
};
|
|
21
|
+
|
|
24
22
|
const taidocMainServices = [{
|
|
25
23
|
uuid: _taidocProtocol.TAIDOC_SERVICE,
|
|
26
24
|
monitorUuids: [{
|
|
27
25
|
uuid: _taidocProtocol.TAIDOC_CHARACTERISTIC,
|
|
28
|
-
parsingModel:
|
|
26
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
29
27
|
}]
|
|
30
28
|
}];
|
|
31
29
|
|
|
@@ -33,7 +31,6 @@ const taidocMainServices = [{
|
|
|
33
31
|
class TaidocDeviceClass extends _btManagedDevice.BTManagedDevice {
|
|
34
32
|
mainServices = taidocMainServices;
|
|
35
33
|
stuckDataTimeout = 90_000;
|
|
36
|
-
onStreamStart = undefined;
|
|
37
34
|
constructor(device, params) {
|
|
38
35
|
super(device, params);
|
|
39
36
|
this.frameReader = new _taidocProtocol.TaidocFrameReader();
|
|
@@ -42,9 +39,6 @@ class TaidocDeviceClass extends _btManagedDevice.BTManagedDevice {
|
|
|
42
39
|
onResult: result => this.onResult?.(result)
|
|
43
40
|
});
|
|
44
41
|
}
|
|
45
|
-
handleSuccessResult() {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
42
|
}
|
|
49
43
|
exports.TaidocDevice = TaidocDeviceClass;
|
|
50
44
|
//# sourceMappingURL=taidoc.device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_noParsingCases","require","_integratedDevices","_btManagedDevice","_taidocProtocol","_taidocSequencer","KIND","IntegratedDevices","TAIDOC_MULTI","TAIDOC_BPM","TAIDOC_THERMOMETER","TAIDOC_OXIMETER","TAIDOC_SCALE","taidocMainServices","uuid","TAIDOC_SERVICE","monitorUuids","TAIDOC_CHARACTERISTIC","parsingModel","NO_PARSING_CASES","TaidocDeviceClass","BTManagedDevice","mainServices","stuckDataTimeout","constructor","device","params","frameReader","TaidocFrameReader","createCommandSequencer","TaidocSequencer","kind","deviceName","onResult","result","exports","TaidocDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/taidoc/taidoc.device.ts"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,kBAAA,GAAAD,OAAA;AAGA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AASA,MAAMK,IAAsC,GAAG;EAC7C,CAACC,oCAAiB,CAACC,YAAY,GAAG,OAAO;EACzC,CAACD,oCAAiB,CAACE,UAAU,GAAG,KAAK;EACrC,CAACF,oCAAiB,CAACG,kBAAkB,GAAG,aAAa;EACrD,CAACH,oCAAiB,CAACI,eAAe,GAAG,UAAU;EAC/C,CAACJ,oCAAiB,CAACK,YAAY,GAAG;AACpC,CAAC;;AAED;;AAEA,MAAMC,kBAA8B,GAAG,CACrC;EACEC,IAAI,EAAEC,8BAAc;EACpBC,YAAY,EAAE,CAAC;IAAEF,IAAI,EAAEG,qCAAqB;IAAEC,YAAY,EAAEC;EAAiB,CAAC;AAChF,CAAC,CACF;;AAED;AACA,MAAMC,iBAAiB,SAASC,gCAAe,CAAe;EAClDC,YAAY,GAAGT,kBAAkB;EACjCU,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAwC,EAAE;IAC3E,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIC,iCAAiB,CAAC,CAAC;IAC1C,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,gCAAe,CAAC;MAClBC,IAAI,EAAEzB,IAAI,CAACoB,MAAM,CAACM,UAAU,CAAC;MAC7BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;AAEF;AAACC,OAAA,CAAAC,YAAA,GAAAhB,iBAAA","ignoreList":[]}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.weightRecordCommand = exports.usersFor = exports.taidocCommand = exports.setTimeCommand = exports.readingCountCommand = exports.readingCommand = exports.readCount = exports.isHostFrame = exports.commandOf = exports.TaidocFrameReader = exports.TAIDOC_SERVICE = exports.TAIDOC_CHARACTERISTIC = exports.TAIDOC = void 0;
|
|
7
7
|
var _frameReadStatus = require("../../../types/frame-read-status.js");
|
|
8
|
+
var _bytesToHex = require("../../../utils/bytes-to-hex.js");
|
|
9
|
+
var _frameBytes = require("../../../utils/frame-bytes.js");
|
|
8
10
|
var _hexToByte = require("../../../utils/hex-to-byte.js");
|
|
9
11
|
/* eslint-disable import/group-exports */
|
|
10
12
|
|
|
@@ -42,10 +44,9 @@ const HOST_END = 0xa3;
|
|
|
42
44
|
const DEVICE_END = 0xa5;
|
|
43
45
|
const FIXED_FRAME_BYTES = 8;
|
|
44
46
|
const VARIABLE_COMMANDS = [TAIDOC.weightRecord, TAIDOC.setUser];
|
|
45
|
-
const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
|
|
46
47
|
const byteAt = (frame, index) => (0, _hexToByte.hexToByte)(frame[index] ?? "00");
|
|
47
48
|
const sum = bytes => bytes.reduce((total, value) => total + value, 0) & 0xff;
|
|
48
|
-
const withChecksum = bytes =>
|
|
49
|
+
const withChecksum = bytes => (0, _bytesToHex.bytesToHex)([...bytes, sum(bytes)]);
|
|
49
50
|
const commandOf = frame => byteAt(frame, 1);
|
|
50
51
|
|
|
51
52
|
/** `51 cmd a b c d A3 cs`. */
|
|
@@ -96,7 +97,7 @@ class TaidocFrameReader {
|
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
99
|
const received = buffer.slice(start, start + length);
|
|
99
|
-
const bytes =
|
|
100
|
+
const bytes = (0, _frameBytes.frameBytes)(received);
|
|
100
101
|
const end = bytes[length - 2];
|
|
101
102
|
if (end !== HOST_END && end !== DEVICE_END || sum(bytes.slice(0, -1)) !== bytes[length - 1]) {
|
|
102
103
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_frameReadStatus","require","_hexToByte","TAIDOC_SERVICE","exports","TAIDOC_CHARACTERISTIC","TAIDOC","wakeUp","deviceTime","model","readingTime","readingResult","serial1","serial2","oximeterAfterTime","readingCount","setTime","shutdown","wakeNotice","weightRecord","setUser","busy","START","HOST_END","DEVICE_END","FIXED_FRAME_BYTES","VARIABLE_COMMANDS","
|
|
1
|
+
{"version":3,"names":["_frameReadStatus","require","_bytesToHex","_frameBytes","_hexToByte","TAIDOC_SERVICE","exports","TAIDOC_CHARACTERISTIC","TAIDOC","wakeUp","deviceTime","model","readingTime","readingResult","serial1","serial2","oximeterAfterTime","readingCount","setTime","shutdown","wakeNotice","weightRecord","setUser","busy","START","HOST_END","DEVICE_END","FIXED_FRAME_BYTES","VARIABLE_COMMANDS","byteAt","frame","index","hexToByte","sum","bytes","reduce","total","value","withChecksum","bytesToHex","commandOf","taidocCommand","command","a","b","c","d","readingCountCommand","user","readingCommand","setTimeCommand","now","date","getFullYear","getMonth","getDate","getMinutes","getHours","weightRecordCommand","isHostFrame","length","TaidocFrameReader","readFrame","buffer","start","findIndex","byte","status","FrameReadStatus","INCOMPLETE","consumedBytes","includes","received","slice","frameBytes","end","CORRUPT","COMPLETE","MULTI_USER_CODES","Set","usersFor","has","readCount"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/taidoc/taidoc.protocol.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OA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KAAwB,IAChDD,MAAM,CAACC,KAAK,EAAE,CAAC,CAAC,GAAID,MAAM,CAACC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAE;AAACxB,OAAA,CAAA4E,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.parseA6BloodPressure = void 0;
|
|
7
|
+
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
8
|
+
const A6_BPM_EPOCH_MS = Date.UTC(2009, 11, 31, 16, 0, 0);
|
|
9
|
+
const KPA_TO_MMHG = 7.500617;
|
|
10
|
+
const RECORD_FLAGS = 0x0000030f;
|
|
11
|
+
const readA6Int16 = (bytes, offset) => {
|
|
12
|
+
const value = (0, _a6ScaleProtocol.readA6Uint)(bytes, offset, 2);
|
|
13
|
+
return value > 0x7fff ? value - 0x10000 : value;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Reads the A6 BPM MeasureDataBpm body from Transtek Health 2.0.5's
|
|
18
|
+
* LSBloodPressure(byte[]) parser.
|
|
19
|
+
* Fixed prefix: remaining count, flags, systolic, diastolic, mean pressure, status. Optional
|
|
20
|
+
* fields follow in pulse, user, vendor UTC, timezone, local-time order. The APK ignores the
|
|
21
|
+
* timezone and seven local-time bytes; only the vendor UTC value is exposed as a timestamp.
|
|
22
|
+
*/
|
|
23
|
+
const parseA6BloodPressure = body => {
|
|
24
|
+
if (body.length < 14) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
const bytes = body.map(value => (value & 0xff).toString(16).padStart(2, "0"));
|
|
28
|
+
const flags = (0, _a6ScaleProtocol.readA6Uint)(bytes, 2, 4);
|
|
29
|
+
if ((flags & ~RECORD_FLAGS) !== 0) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
const rawSystolic = readA6Int16(bytes, 6);
|
|
33
|
+
const rawDiastolic = readA6Int16(bytes, 8);
|
|
34
|
+
const rawMeanPressure = readA6Int16(bytes, 10);
|
|
35
|
+
const status = (0, _a6ScaleProtocol.readA6Uint)(bytes, 12, 2);
|
|
36
|
+
const multiplier = (flags & 0x01) !== 0 ? KPA_TO_MMHG : 1;
|
|
37
|
+
const systolic = Math.round(rawSystolic * multiplier);
|
|
38
|
+
const diastolic = Math.round(rawDiastolic * multiplier);
|
|
39
|
+
const meanArterialPressure = rawMeanPressure > 0 ? Math.round(rawMeanPressure * multiplier) : undefined;
|
|
40
|
+
if (systolic <= 0 || diastolic <= 0) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
let offset = 14;
|
|
44
|
+
let heartRate;
|
|
45
|
+
let memorySlot;
|
|
46
|
+
let recordedAt;
|
|
47
|
+
if ((flags & 0x02) !== 0) {
|
|
48
|
+
if (body.length < offset + 2) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
heartRate = readA6Int16(bytes, offset);
|
|
52
|
+
offset += 2;
|
|
53
|
+
}
|
|
54
|
+
if ((flags & 0x04) !== 0) {
|
|
55
|
+
if (body.length < offset + 1) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
memorySlot = body[offset] ?? 0;
|
|
59
|
+
offset += 1;
|
|
60
|
+
}
|
|
61
|
+
if ((flags & 0x08) !== 0) {
|
|
62
|
+
if (body.length < offset + 4) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
const vendorSeconds = (0, _a6ScaleProtocol.readA6Uint)(bytes, offset, 4);
|
|
66
|
+
recordedAt = new Date(A6_BPM_EPOCH_MS + vendorSeconds * 1000);
|
|
67
|
+
offset += 4;
|
|
68
|
+
}
|
|
69
|
+
if ((flags & 0x100) !== 0) {
|
|
70
|
+
if (body.length < offset + 1) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
offset += 1;
|
|
74
|
+
}
|
|
75
|
+
if ((flags & 0x200) !== 0) {
|
|
76
|
+
if (body.length < offset + 7) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
offset += 7;
|
|
80
|
+
}
|
|
81
|
+
if (body.length < offset) {
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
systolic,
|
|
86
|
+
diastolic,
|
|
87
|
+
...(meanArterialPressure !== undefined ? {
|
|
88
|
+
meanArterialPressure
|
|
89
|
+
} : {}),
|
|
90
|
+
...(heartRate !== undefined && heartRate > 0 ? {
|
|
91
|
+
heartRate
|
|
92
|
+
} : {}),
|
|
93
|
+
...(memorySlot !== undefined ? {
|
|
94
|
+
memorySlot
|
|
95
|
+
} : {}),
|
|
96
|
+
irregularHeartbeat: (status & 0x04) !== 0,
|
|
97
|
+
...(recordedAt ? {
|
|
98
|
+
recordedAt
|
|
99
|
+
} : {})
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
exports.parseA6BloodPressure = parseA6BloodPressure;
|
|
103
|
+
//# sourceMappingURL=a6-blood-pressure.measurements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_a6ScaleProtocol","require","A6_BPM_EPOCH_MS","Date","UTC","KPA_TO_MMHG","RECORD_FLAGS","readA6Int16","bytes","offset","value","readA6Uint","parseA6BloodPressure","body","length","undefined","map","toString","padStart","flags","rawSystolic","rawDiastolic","rawMeanPressure","status","multiplier","systolic","Math","round","diastolic","meanArterialPressure","heartRate","memorySlot","recordedAt","vendorSeconds","irregularHeartbeat","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,MAAMC,eAAe,GAAGC,IAAI,CAACC,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,C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M,CAAC,EAAE;IACzB,IAAIN,IAAI,CAACC,MAAM,GAAGL,MAAM,GAAG,CAAC,EAAE;MAC5B,OAAOM,SAAS;IAClB;IAEAN,MAAM,IAAI,CAAC;EACb;EACA,IAAI,CAACU,KAAK,GAAG,KAAK,MAAM,CAAC,EAAE;IACzB,IAAIN,IAAI,CAACC,MAAM,GAAGL,MAAM,GAAG,CAAC,EAAE;MAC5B,OAAOM,SAAS;IAClB;IAEAN,MAAM,IAAI,CAAC;EACb;EACA,IAAII,IAAI,CAACC,MAAM,GAAGL,MAAM,EAAE;IACxB,OAAOM,SAAS;EAClB;EAEA,OAAO;IACLU,QAAQ;IACRG,SAAS;IACT,IAAIC,oBAAoB,KAAKd,SAAS,GAAG;MAAEc;IAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IACvE,IAAIC,SAAS,KAAKf,SAAS,IAAIe,SAAS,GAAG,CAAC,GAAG;MAAEA;IAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,IAAIC,UAAU,KAAKhB,SAAS,GAAG;MAAEgB;IAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IACnDG,kBAAkB,EAAE,CAACX,MAAM,GAAG,IAAI,MAAM,CAAC;IACzC,IAAIS,UAAU,GAAG;MAAEA;IAAW,CAAC,GAAG,CAAC,CAAC;EACtC,CAAC;AACH,CAAC;AAACG,OAAA,CAAAvB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.buildA6BloodPressureTimeBody = exports.A6BloodPressureSequencer = void 0;
|
|
7
|
+
var _core = require("@ovok/core");
|
|
8
|
+
var _caseType = require("../../../types/case-type.js");
|
|
9
|
+
var _clockSync = require("../../../types/clock-sync.js");
|
|
10
|
+
var _a6BloodPressureMeasurements = require("./a6-blood-pressure.measurements.js");
|
|
11
|
+
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
12
|
+
var _a6Sequencer = require("./a6.sequencer.js");
|
|
13
|
+
const vendorEpochSeconds = Date.UTC(2010, 0, 1) / 1000;
|
|
14
|
+
const byte = value => (value & 0xff).toString(16).padStart(2, "0");
|
|
15
|
+
|
|
16
|
+
/** Vendor BP time is wall-clock seconds from 2010-01-01, encoded big-endian. */
|
|
17
|
+
const buildA6BloodPressureTimeBody = (now, timezone = "local") => {
|
|
18
|
+
const parts = (0, _clockSync.getClockParts)(now, timezone);
|
|
19
|
+
const seconds = Date.UTC(parts.year, parts.month - 1, parts.day, parts.hours, parts.minutes, parts.seconds) / 1000 - vendorEpochSeconds;
|
|
20
|
+
const encoded = Math.floor(seconds) >>> 0;
|
|
21
|
+
return [0x01, encoded >>> 24 & 0xff, encoded >>> 16 & 0xff, encoded >>> 8 & 0xff, encoded & 0xff];
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** Answers A6 BP login/settings requests, then fetches the cuff's BP history. */
|
|
25
|
+
exports.buildA6BloodPressureTimeBody = buildA6BloodPressureTimeBody;
|
|
26
|
+
class A6BloodPressureSequencer extends _a6Sequencer.A6Sequencer {
|
|
27
|
+
userNumber = 0;
|
|
28
|
+
waitingForClockSettingResponse = false;
|
|
29
|
+
historySyncSent = false;
|
|
30
|
+
constructor(options) {
|
|
31
|
+
super(_a6ScaleProtocol.A6_BPM_SERVICE, options);
|
|
32
|
+
this.options = options;
|
|
33
|
+
}
|
|
34
|
+
processMessage = content => {
|
|
35
|
+
const message = (0, _a6ScaleProtocol.decodeA6Command)(content, this.key);
|
|
36
|
+
if (!message) {
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
if (message.command === 0x0007) {
|
|
40
|
+
if (message.body.length < 8) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
this.userNumber = message.body[6] ?? 0;
|
|
44
|
+
const response = (0, _a6ScaleProtocol.encodeA6Command)(0x0008, [0x01, ...message.body.slice(0, 6), 0x00, 0x02], this.key);
|
|
45
|
+
if (!response) {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
const replies = [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)];
|
|
49
|
+
if ((0, _clockSync.isClockSyncEnabled)(this.options.clockSync)) {
|
|
50
|
+
const now = this.options.clockSync?.now?.() ?? new Date();
|
|
51
|
+
const time = (0, _a6ScaleProtocol.encodeA6Command)(_a6ScaleProtocol.A6_BPM_TIME, buildA6BloodPressureTimeBody(now, this.options.clockSync?.timezone), this.key);
|
|
52
|
+
if (time) {
|
|
53
|
+
this.waitingForClockSettingResponse = true;
|
|
54
|
+
replies.push(this.command(_a6ScaleProtocol.A6_SCALE_WRITE, time, 500));
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
replies.push(...this.startHistorySync(500));
|
|
58
|
+
}
|
|
59
|
+
return replies;
|
|
60
|
+
}
|
|
61
|
+
if (message.command === _a6ScaleProtocol.A6_BPM_SETTING_RESPONSE) {
|
|
62
|
+
if (!this.waitingForClockSettingResponse) {
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
this.waitingForClockSettingResponse = false;
|
|
66
|
+
return this.startHistorySync(500);
|
|
67
|
+
}
|
|
68
|
+
if (message.command === _a6ScaleProtocol.A6_BPM_MEASUREMENT || message.command === _a6ScaleProtocol.A6_BPM_START_MEASURING_RESPONSE) {
|
|
69
|
+
if (message.command === _a6ScaleProtocol.A6_BPM_START_MEASURING_RESPONSE && (0, _a6ScaleProtocol.readA6Uint)(message.body.map(byte), 0, 2) === 1) {
|
|
70
|
+
return [];
|
|
71
|
+
}
|
|
72
|
+
const reading = (0, _a6BloodPressureMeasurements.parseA6BloodPressure)(message.body);
|
|
73
|
+
if (reading) {
|
|
74
|
+
this.options.onResult({
|
|
75
|
+
caseType: _caseType.CaseType.RESULT,
|
|
76
|
+
measurementTypeKey: _core.MeasurementTypeKey.bloodPressure,
|
|
77
|
+
...reading,
|
|
78
|
+
memorySlot: reading.memorySlot ?? this.userNumber
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return [];
|
|
83
|
+
};
|
|
84
|
+
startHistorySync = delayBeforeWriteMs => {
|
|
85
|
+
if (this.historySyncSent) {
|
|
86
|
+
return [];
|
|
87
|
+
}
|
|
88
|
+
const sync = (0, _a6ScaleProtocol.encodeA6Command)(_a6ScaleProtocol.A6_BPM_SYNC, [this.userNumber, 0x01], this.key);
|
|
89
|
+
if (!sync) {
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
this.historySyncSent = true;
|
|
93
|
+
return [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, delayBeforeWriteMs)];
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
exports.A6BloodPressureSequencer = A6BloodPressureSequencer;
|
|
97
|
+
//# sourceMappingURL=a6-blood-pressure.sequencer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_core","require","_caseType","_clockSync","_a6BloodPressureMeasurements","_a6ScaleProtocol","_a6Sequencer","vendorEpochSeconds","Date","UTC","byte","value","toString","padStart","buildA6BloodPressureTimeBody","now","timezone","parts","getClockParts","seconds","year","month","day","hours","minutes","encoded","Math","floor","exports","A6BloodPressureSequencer","A6Sequencer","userNumber","waitingForClockSettingResponse","historySyncSent","constructor","options","A6_BPM_SERVICE","processMessage","content","message","decodeA6Command","key","command","body","length","response","encodeA6Command","slice","replies","A6_SCALE_WRITE","isClockSyncEnabled","clockSync","time","A6_BPM_TIME","push","startHistorySync","A6_BPM_SETTING_RESPONSE","A6_BPM_MEASUREMENT","A6_BPM_START_MEASURING_RESPONSE","readA6Uint","map","reading","parseA6BloodPressure","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","bloodPressure","memorySlot","delayBeforeWriteMs","sync","A6_BPM_SYNC"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.ts"],"mappings":";;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAUA,IAAAG,4BAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAYA,IAAAK,YAAA,GAAAL,OAAA;AAaA,MAAMM,kBAAkB,GAAGC,IAAI,CAACC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;AAEtD,MAAMC,IAAI,GAAIC,KAAa,IACzB,CAACA,KAAK,GAAG,IAAI,EAAEC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;;AAG9C;AACA,MAAMC,4BAA4B,GAAGA,CACnCC,GAAS,EACTC,QAAsC,GAAG,OAAO,KACnC;EACb,MAAMC,KAAK,GAAG,IAAAC,wBAAa,EAACH,GAAG,EAAEC,QAAQ,CAAC;EAE1C,MAAMG,OAAO,GACXX,IAAI,CAACC,GAAG,CACNQ,KAAK,CAACG,IAAI,EACVH,KAAK,CAACI,KAAK,GAAG,CAAC,EACfJ,KAAK,CAACK,GAAG,EACTL,KAAK,CAACM,KAAK,EACXN,KAAK,CAACO,OAAO,EACbP,KAAK,CAACE,OACR,CAAC,GACC,IAAI,GACNZ,kBAAkB;EAEpB,MAAMkB,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACR,OAAO,CAAC,KAAK,CAAC;EAEzC,OAAO,CACL,IAAI,EACHM,OAAO,KAAK,EAAE,GAAI,IAAI,EACtBA,OAAO,KAAK,EAAE,GAAI,IAAI,EACtBA,OAAO,KAAK,CAAC,GAAI,IAAI,EACtBA,OAAO,GAAG,IAAI,CACf;AACH,CAAC;;AAED;AAAAG,OAAA,CAAAd,4BAAA,GAAAA,4BAAA;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QACzC,CAA0B,CAAC;MAC7B;IACF;IAEA,OAAO,EAAE;EACX,CAAC;EAEOwB,gBAAgB,GAAIgB,kBAA0B,IAAsB;IAC1E,IAAI,IAAI,CAACtC,eAAe,EAAE;MACxB,OAAO,EAAE;IACX;IAEA,MAAMuC,IAAI,GAAG,IAAA1B,gCAAe,EAC1B2B,4BAAW,EACX,CAAC,IAAI,CAAC1C,UAAU,EAAE,IAAI,CAAC,EACvB,IAAI,CAACU,GACP,CAAC;IAED,IAAI,CAAC+B,IAAI,EAAE;MACT,OAAO,EAAE;IACX;IAEA,IAAI,CAACvC,eAAe,GAAG,IAAI;IAE3B,OAAO,CAAC,IAAI,CAACS,OAAO,CAACO,+BAAc,EAAEuB,IAAI,EAAED,kBAAkB,CAAC,CAAC;EACjE,CAAC;AACH;AAAC3C,OAAA,CAAAC,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.readA6Uint = exports.encryptA6Body = exports.encodeA6Command = exports.decryptA6Body = exports.decodeA6Command = exports.a6EncryptionKey = exports.a6CommandBody = exports.A6_SCALE_WRITE = exports.A6_SCALE_WEIGHT = exports.A6_SCALE_SERVICE = exports.A6_SCALE_NOTIFY = exports.A6_SCALE_ACK = exports.A6ScaleFrameReader = void 0;
|
|
6
|
+
exports.readA6Uint = exports.encryptA6Body = exports.encodeA6Command = exports.decryptA6Body = exports.decodeA6Command = exports.a6EncryptionKey = exports.a6CommandBody = exports.A6_SCALE_WRITE = exports.A6_SCALE_WEIGHT = exports.A6_SCALE_SERVICE = exports.A6_SCALE_NOTIFY = exports.A6_SCALE_ACK = exports.A6_BPM_TIME = exports.A6_BPM_SYNC = exports.A6_BPM_START_MEASURING_RESPONSE = exports.A6_BPM_SETTING_RESPONSE = exports.A6_BPM_SERVICE = exports.A6_BPM_MEASUREMENT = exports.A6ScaleFrameReader = void 0;
|
|
7
7
|
var _cryptoJs = _interopRequireDefault(require("crypto-js"));
|
|
8
8
|
var _frameReadStatus = require("../../../types/frame-read-status.js");
|
|
9
9
|
var _base64ToHex = require("../../../utils/base-64-to-hex.js");
|
|
@@ -11,10 +11,16 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
/* eslint-disable import/group-exports */
|
|
12
12
|
|
|
13
13
|
const A6_SCALE_SERVICE = exports.A6_SCALE_SERVICE = "0000a602-0000-1000-8000-00805f9b34fb";
|
|
14
|
+
const A6_BPM_SERVICE = exports.A6_BPM_SERVICE = "0000a610-0000-1000-8000-00805f9b34fb";
|
|
14
15
|
const A6_SCALE_NOTIFY = exports.A6_SCALE_NOTIFY = "0000a621-0000-1000-8000-00805f9b34fb";
|
|
15
16
|
const A6_SCALE_WRITE = exports.A6_SCALE_WRITE = "0000a624-0000-1000-8000-00805f9b34fb";
|
|
16
17
|
const A6_SCALE_ACK = exports.A6_SCALE_ACK = "0000a622-0000-1000-8000-00805f9b34fb";
|
|
17
18
|
const A6_SCALE_WEIGHT = exports.A6_SCALE_WEIGHT = 0x4802;
|
|
19
|
+
const A6_BPM_SYNC = exports.A6_BPM_SYNC = 0x4901;
|
|
20
|
+
const A6_BPM_MEASUREMENT = exports.A6_BPM_MEASUREMENT = 0x4902;
|
|
21
|
+
const A6_BPM_START_MEASURING_RESPONSE = exports.A6_BPM_START_MEASURING_RESPONSE = 0x4906;
|
|
22
|
+
const A6_BPM_TIME = exports.A6_BPM_TIME = 0x1102;
|
|
23
|
+
const A6_BPM_SETTING_RESPONSE = exports.A6_BPM_SETTING_RESPONSE = 0x1100;
|
|
18
24
|
const byte = value => Number.parseInt(value ?? "00", 16) || 0;
|
|
19
25
|
const readA6Uint = (bytes, offset, length) => bytes.slice(offset, offset + length).reduce((value, current) => value * 256 + byte(current), 0);
|
|
20
26
|
exports.readA6Uint = readA6Uint;
|