@ovok/native 1.10.13 → 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 -79
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.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/services/device-classes.js +3 -4
- 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.sequencer.js +6 -55
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.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/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 -79
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.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/services/device-classes.js +3 -4
- 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.sequencer.js +7 -56
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.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/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-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/services/device-classes.d.ts +3 -4
- 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.sequencer.d.ts +3 -9
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.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/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-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/services/device-classes.d.ts +3 -4
- 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.sequencer.d.ts +3 -9
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.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/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-blood-pressure.device.js +0 -50
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.js.map +0 -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-blood-pressure.device.js +0 -45
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.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-blood-pressure.device.d.ts +0 -16
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.d.ts.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-blood-pressure.device.d.ts +0 -16
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_frameReadStatus","require","
|
|
1
|
+
{"version":3,"names":["_frameReadStatus","require","_bytesToHex","_frameBytes","_hexToByte","_sigUuid","JOYTECH","exports","service","sigUuid","notify","write","JOYTECH_COMMAND","bloodPressureRecord","temperatureRecords","setTimeRequest","deviceInfo","ACK_ONLY","MAGIC","HEADER","TAIL","frame","command","payload","length","covered","sum","reduce","total","value","bytesToHex","ack","timePayload","now","getFullYear","getMonth","getDate","getHours","getMinutes","setTimeCommand","thermometer","getHistoryCommand","DEVICE_INFO_REPLY","commandOf","received","hexToByte","payloadOf","frameBytes","slice","JoytechFrameReader","readFrame","buffer","values","start","findIndex","_","index","every","magic","offset","status","FrameReadStatus","INCOMPLETE","consumedBytes","Math","max","CORRUPT","COMPLETE","readTime","at","year","undefined","Date","AFIB_STATUS","readBloodPressure","recordedAt","user","systolic","diastolic","heartRate","irregularHeartbeat","atrialFibrillation","includes","memorySlot","readTemperatures","records","push","bodyTemp"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/joytech/joytech.protocol.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AARA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMK,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACrBE,OAAO,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;EACxBC,MAAM,EAAE,IAAAD,gBAAO,EAAC,MAAM,CAAC;EACvBE,KAAK,EAAE,IAAAF,g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;IAE5C,IAAI9C,OAAO,CAAC8C,EAAE,CAAC,KAAK,CAAC,IAAIM,UAAU,EAAE;MACnCU,OAAO,CAACC,IAAI,CAAC;QACXC,QAAQ,EAAE,CAAC,CAAE,CAAChE,OAAO,CAAC8C,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAK9C,OAAO,CAAC8C,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,IAAI,GAAG;QACnFM;MACF,CAAC,CAAC;IACJ;EACF;EAEA,OAAOU,OAAO;AAChB,CAAC;AAAC9E,OAAA,CAAA6E,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -4,21 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.JumperDevice = 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 _liveOximeterSequencer = require("../live-oximeter.sequencer.js");
|
|
10
11
|
var _jumperProtocol = require("./jumper.protocol.js");
|
|
11
12
|
var _jumperSequencer = require("./jumper.sequencer.js");
|
|
12
|
-
const passThrough = {
|
|
13
|
-
caseValuePosition: [],
|
|
14
|
-
cases: []
|
|
15
|
-
};
|
|
16
13
|
const service = (uuid, notify, optional) => ({
|
|
17
14
|
uuid,
|
|
18
15
|
optional,
|
|
19
16
|
monitorUuids: [{
|
|
20
17
|
uuid: notify,
|
|
21
|
-
parsingModel:
|
|
18
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
22
19
|
}]
|
|
23
20
|
});
|
|
24
21
|
|
|
@@ -32,7 +29,6 @@ const SERVICES = {
|
|
|
32
29
|
/** Jumper JPD-500D oximeters, HA120 blood-pressure monitors and FR302-family thermometers. */
|
|
33
30
|
class JumperDeviceClass extends _btManagedDevice.BTManagedDevice {
|
|
34
31
|
stuckDataTimeout = 120_000;
|
|
35
|
-
onStreamStart = undefined;
|
|
36
32
|
constructor(device, params) {
|
|
37
33
|
super(device, params);
|
|
38
34
|
this.mainServices = SERVICES[params.deviceName];
|
|
@@ -48,9 +44,6 @@ class JumperDeviceClass extends _btManagedDevice.BTManagedDevice {
|
|
|
48
44
|
|
|
49
45
|
/** One notification is one frame. */
|
|
50
46
|
validatePackage = () => true;
|
|
51
|
-
handleSuccessResult() {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
47
|
}
|
|
55
48
|
exports.JumperDevice = JumperDeviceClass;
|
|
56
49
|
//# sourceMappingURL=jumper.device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_noParsingCases","require","_integratedDevices","_btManagedDevice","_liveOximeterSequencer","_jumperProtocol","_jumperSequencer","service","uuid","notify","optional","monitorUuids","parsingModel","NO_PARSING_CASES","SERVICES","IntegratedDevices","JUMPER_OXIMETER","JUMPER_SERVICE","JUMPER_NOTIFY","JUMPER_GATT","oximeterAlternate","JUMPER_THERMOMETER","thermometerAlternate","JUMPER_BPM","bloodPressure","JumperDeviceClass","BTManagedDevice","stuckDataTimeout","constructor","device","params","mainServices","deviceName","onResult","result","createCommandSequencer","LiveOximeterSequencer","readValues","frame","readOximeterData","JUMPER_VALUES","JumperSequencer","kind","validatePackage","exports","JumperDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/jumper/jumper.device.ts"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,kBAAA,GAAAD,OAAA;AAGA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAOA,MAAMM,OAAO,GAAGA,CAACC,IAAY,EAAEC,MAAc,EAAEC,QAAiB,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K,IAAAC,uCAAgB,EAACD,KAAK,EAAEE,oCAAa,CAAC;MAC7DP;IACF,CAAC,CAAC,GACF,IAAIQ,gCAAe,CAAC;MAClBC,IAAI,EACFZ,MAAM,CAACE,UAAU,KAAKjB,oCAAiB,CAACQ,UAAU,GAAG,gBAAgB,GAAG,aAAa;MACvFU;IACF,CAAC,CAAC;EACV;;EAEA;EACUU,eAAe,GAAGA,CAAA,KAAe,IAAI;AAEjD;AAACC,OAAA,CAAAC,YAAA,GAAApB,iBAAA","ignoreList":[]}
|
|
@@ -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;AAC7D,MAAME,aAAa,GAAAD,OAAA,CAAAC,aAAA,GAAG,sCAAsC;AAE5D,MAAMC,WAAW,GAAAF,OAAA,CAAAE,WAAA,GAAG;EACzBC,iBAAiB,EAAE;IAAEC,OAAO,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;IAAEC,MAAM,EAAE,IAAAD,gBAAO,EAAC,MAAM;EAAE,CAAC;EACxEE,oBAAoB,EAAE;IAAEH,OAAO,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;IAAEC,MAAM,EAAE,IAAAD,gBAAO,EAAC,MAAM;EAAE,CAAC;EAC3EG,aAAa,EAAE;IAAEJ,OAAO,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;IAAEC,MAAM,EAAE,IAAAD,gBAAO,EAAC,MAAM;EAAE;AACrE,CAAU;;AAEV;AACA;AACA;AACA;AACO,MAAMI,SAAS,GACpBC,KAAwB,IACmD;EAC3E,MAAMC,CAAC,GAAG,IAAAC,sBAAU,EAACF,KAAK,CAAC;EAE3B,IACGC,CAAC,CAACE,MAAM,KAAK,CAAC,IAAIF,CAAC,CAACE,MAAM,KAAK,CAAC,IACjCF,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IACbA,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IACbA,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IACbA,CAAC,CAACA,CAAC,CAACE,MAAM,GAAG,CAAC,CAAC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 +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":["modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAIA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,oBAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,sBAAsB,GAAG,OAAO;;AAEtC;AACA,MAAMC,uBAAuB,GAAG,MAAM;AAEtC,MAAMC,gBAAgB,GAAG,IAAI;AAC7B,MAAMC,kBAAkB,GAAG,IAAI;AAC/B,MAAMC,cAAc,GAAG,IAAI;AAE3B,MAAMC,eAAe,GAAG,CAAC;AACzB,MAAMC,iBAAiB,GAAG,EAAE;;AAE5B;AACA,MAAMC,qBAAqB,GAAG,IAAI;AAClC,MAAMC,yBAAyB,GAAG,IAAI;AAEtC,MAAMC,yBAAyB,GAAG,MAAM;AAExC,MAAMC,kBAAkB,GAAIC,KAAa,IACvCA,KAAK,GAAGT,gBAAgB,GAAGI,iBAAiB,GAAG,CAAC,GAAGA,iBAAiB;AAEtE,MAAMM,QAAQ,GAAID,KAAa,IAAaA,KAAK,CAACE,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;;AAE/E;AACA,MAAMC,SAAS,GAAGC,KAAK,CAACC,IAAI,CAA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G,WAAW,EAAE;MACf,CACN;IACF,CAAC,EACD;MACEV,IAAI,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;MACrB9C,KAAK,EAAE;QAAEgD,cAAc,EAAE;MAAE,CAAC;MAC5BC,iBAAiB,EAAE,CAAC,CAAC,CAAC;MACtBC,KAAK,EAAE,CACL;QAAEhE,QAAQ,EAAE,IAAI;QAAEkE,IAAI,EAAE,MAAe;QAAEG,WAAW,EAAE;MAA2B,CAAC,EAClF;QAAErE,QAAQ,EAAE,IAAI;QAAEkE,IAAI,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,CA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;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,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAPA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,sCAAsC;AAC7D,MAAME,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,GAAG,sCAAsC;AAEpE,MAAMC,MAAM,GAAAF,OAAA,CAAAE,MAAA,GAAG;EACpBC,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EACXC,WAAW,EAAE,IAAI;EACjBC,aAAa,EAAE,IAAI;EACnBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,iBAAiB,EAAE,IAAI;EACvBC,YAAY,EAAE,IAAI;EAClBC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,UAAU,EAAE,IAAI;EAChBC,YAAY,EAAE,IAAI;EAClBC,OAAO,EAAE,IAAI;EACbC,IAAI,EAAE;AACR,CAAU;AAEV,MAAMC,KAAK,GAAG,IAAI;AAClB,MAAMC,QAAQ,GAAG,IAAI;AACrB,MAAMC,UAAU,GAAG,IAAI;AACvB,MAAMC,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,iBAAoC,GAAG,CAACpB,MAAM,CAACa,YAAY,EAAEb,MAAM,CAACc,OAAO,CAAC;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,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhF,MAAMC,QAAQ,GAAIrE,KAAwB,IAC/CmE,gBAAgB,CAACG,GAAG,CAACpD,MAAM,CAAClB,KAAK,EAAE,CAAC,CAAC,GAAIkB,MAAM,CAAClB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAE,CAAC,GAAG,CAAC,GAAG,CAAC;;AAE1E;AAAAL,OAAA,CAAA0E,QAAA,GAAAA,QAAA;AACO,MAAME,SAAS,GAAIpD,KAAwB,IAChDD,MAAM,CAACC,KAAK,EAAE,CAAC,CAAC,GAAID,MAAM,CAACC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAE;AAACxB,OAAA,CAAA4E,SAAA,GAAAA,SAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js
CHANGED
|
@@ -9,18 +9,9 @@ var _caseType = require("../../../types/case-type.js");
|
|
|
9
9
|
var _clockSync = require("../../../types/clock-sync.js");
|
|
10
10
|
var _a6BloodPressureMeasurements = require("./a6-blood-pressure.measurements.js");
|
|
11
11
|
var _a6ScaleProtocol = require("./a6-scale.protocol.js");
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
var _a6Sequencer = require("./a6.sequencer.js");
|
|
14
13
|
const vendorEpochSeconds = Date.UTC(2010, 0, 1) / 1000;
|
|
15
14
|
const byte = value => (value & 0xff).toString(16).padStart(2, "0");
|
|
16
|
-
const command = (characteristicUuid, frame, delayBeforeWriteMs) => ({
|
|
17
|
-
serviceUuid: _a6ScaleProtocol.A6_BPM_SERVICE,
|
|
18
|
-
characteristicUuid,
|
|
19
|
-
frame,
|
|
20
|
-
...(delayBeforeWriteMs ? {
|
|
21
|
-
delayBeforeWriteMs
|
|
22
|
-
} : {})
|
|
23
|
-
});
|
|
24
15
|
|
|
25
16
|
/** Vendor BP time is wall-clock seconds from 2010-01-01, encoded big-endian. */
|
|
26
17
|
const buildA6BloodPressureTimeBody = (now, timezone = "local") => {
|
|
@@ -32,54 +23,14 @@ const buildA6BloodPressureTimeBody = (now, timezone = "local") => {
|
|
|
32
23
|
|
|
33
24
|
/** Answers A6 BP login/settings requests, then fetches the cuff's BP history. */
|
|
34
25
|
exports.buildA6BloodPressureTimeBody = buildA6BloodPressureTimeBody;
|
|
35
|
-
class A6BloodPressureSequencer {
|
|
36
|
-
expectedFragmentCount = 0;
|
|
26
|
+
class A6BloodPressureSequencer extends _a6Sequencer.A6Sequencer {
|
|
37
27
|
userNumber = 0;
|
|
38
28
|
waitingForClockSettingResponse = false;
|
|
39
29
|
historySyncSent = false;
|
|
40
30
|
constructor(options) {
|
|
31
|
+
super(_a6ScaleProtocol.A6_BPM_SERVICE, options);
|
|
41
32
|
this.options = options;
|
|
42
|
-
this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(options.deviceId, options.manufacturerData);
|
|
43
33
|
}
|
|
44
|
-
initialCommands = () => [];
|
|
45
|
-
isHistoryTransfer = () => true;
|
|
46
|
-
nextCommand = frame => {
|
|
47
|
-
const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
|
|
48
|
-
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
49
|
-
const count = control >> 4;
|
|
50
|
-
const index = control & 0x0f;
|
|
51
|
-
const replies = [];
|
|
52
|
-
if (count === 0) {
|
|
53
|
-
return replies;
|
|
54
|
-
}
|
|
55
|
-
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
56
|
-
replies.push(command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
|
|
57
|
-
}
|
|
58
|
-
if (count === 1) {
|
|
59
|
-
replies.push(...this.processMessage(content));
|
|
60
|
-
return replies;
|
|
61
|
-
}
|
|
62
|
-
if (index === 0) {
|
|
63
|
-
this.fragments = Array.from({
|
|
64
|
-
length: count
|
|
65
|
-
}, () => []);
|
|
66
|
-
this.expectedFragmentCount = count;
|
|
67
|
-
}
|
|
68
|
-
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
69
|
-
this.fragments = undefined;
|
|
70
|
-
this.expectedFragmentCount = 0;
|
|
71
|
-
return replies;
|
|
72
|
-
}
|
|
73
|
-
this.fragments[index] = content;
|
|
74
|
-
if (this.fragments.some(part => part.length === 0)) {
|
|
75
|
-
return replies;
|
|
76
|
-
}
|
|
77
|
-
const assembled = this.fragments.flat();
|
|
78
|
-
this.fragments = undefined;
|
|
79
|
-
this.expectedFragmentCount = 0;
|
|
80
|
-
replies.push(...this.processMessage(assembled));
|
|
81
|
-
return replies;
|
|
82
|
-
};
|
|
83
34
|
processMessage = content => {
|
|
84
35
|
const message = (0, _a6ScaleProtocol.decodeA6Command)(content, this.key);
|
|
85
36
|
if (!message) {
|
|
@@ -94,13 +45,13 @@ class A6BloodPressureSequencer {
|
|
|
94
45
|
if (!response) {
|
|
95
46
|
return [];
|
|
96
47
|
}
|
|
97
|
-
const replies = [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)];
|
|
48
|
+
const replies = [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)];
|
|
98
49
|
if ((0, _clockSync.isClockSyncEnabled)(this.options.clockSync)) {
|
|
99
50
|
const now = this.options.clockSync?.now?.() ?? new Date();
|
|
100
51
|
const time = (0, _a6ScaleProtocol.encodeA6Command)(_a6ScaleProtocol.A6_BPM_TIME, buildA6BloodPressureTimeBody(now, this.options.clockSync?.timezone), this.key);
|
|
101
52
|
if (time) {
|
|
102
53
|
this.waitingForClockSettingResponse = true;
|
|
103
|
-
replies.push(command(_a6ScaleProtocol.A6_SCALE_WRITE, time, 500));
|
|
54
|
+
replies.push(this.command(_a6ScaleProtocol.A6_SCALE_WRITE, time, 500));
|
|
104
55
|
}
|
|
105
56
|
} else {
|
|
106
57
|
replies.push(...this.startHistorySync(500));
|
|
@@ -139,7 +90,7 @@ class A6BloodPressureSequencer {
|
|
|
139
90
|
return [];
|
|
140
91
|
}
|
|
141
92
|
this.historySyncSent = true;
|
|
142
|
-
return [command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, delayBeforeWriteMs)];
|
|
93
|
+
return [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, delayBeforeWriteMs)];
|
|
143
94
|
};
|
|
144
95
|
}
|
|
145
96
|
exports.A6BloodPressureSequencer = A6BloodPressureSequencer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_caseType","_clockSync","_a6BloodPressureMeasurements","_a6ScaleProtocol","vendorEpochSeconds","Date","UTC","byte","value","toString","padStart","
|
|
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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