@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.
Files changed (592) hide show
  1. package/lib/commonjs/modules/bt-device/components/btdevice-instruction.js +1 -1
  2. package/lib/commonjs/modules/bt-device/components/btdevice-instruction.js.map +1 -1
  3. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +4 -78
  4. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  5. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js +577 -0
  6. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js.map +1 -0
  7. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js +2 -0
  8. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
  9. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +1 -0
  10. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
  11. package/lib/commonjs/modules/bt-management/constants/device-variants.js +2 -1
  12. package/lib/commonjs/modules/bt-management/constants/device-variants.js.map +1 -1
  13. package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js +12 -0
  14. package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
  15. package/lib/commonjs/modules/bt-management/constants/transtek-a6-bp-device-variants.js +478 -0
  16. package/lib/commonjs/modules/bt-management/constants/transtek-a6-bp-device-variants.js.map +1 -0
  17. package/lib/commonjs/modules/bt-management/core/resolve-device-key.js +8 -1
  18. package/lib/commonjs/modules/bt-management/core/resolve-device-key.js.map +1 -1
  19. package/lib/commonjs/modules/bt-management/services/device-classes.js +3 -2
  20. package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
  21. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js +0 -4
  22. package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
  23. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
  24. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
  25. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
  26. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
  27. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
  28. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
  29. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
  30. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
  31. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
  32. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
  33. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
  34. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
  35. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
  36. package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
  37. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  38. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
  39. package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
  40. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +5 -0
  41. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  42. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
  43. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
  44. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
  45. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
  46. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
  47. package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
  48. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
  49. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
  50. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +14 -17
  51. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
  52. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
  53. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  54. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  55. package/lib/commonjs/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
  56. package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
  57. package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
  58. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
  59. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
  60. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
  61. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
  62. package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
  63. package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
  64. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
  65. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
  66. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
  67. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
  68. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
  69. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
  70. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
  71. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
  72. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +5 -4
  73. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
  74. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +4 -6
  75. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
  76. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
  77. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
  78. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
  79. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
  80. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js +103 -0
  81. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js.map +1 -0
  82. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +97 -0
  83. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -0
  84. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +7 -1
  85. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -1
  86. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +5 -53
  87. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
  88. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js +53 -0
  89. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
  90. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js +70 -0
  91. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
  92. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
  93. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
  94. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
  95. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
  96. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
  97. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
  98. package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
  99. package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
  100. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
  101. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
  102. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
  103. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
  104. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
  105. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  106. package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
  107. package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
  108. package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
  109. package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
  110. package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
  111. package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
  112. package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
  113. package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
  114. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
  115. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
  116. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
  117. package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
  118. package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
  119. package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
  120. package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
  121. package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
  122. package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
  123. package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
  124. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
  125. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
  126. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
  127. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
  128. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
  129. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
  130. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
  131. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
  132. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
  133. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
  134. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
  135. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
  136. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
  137. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
  138. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
  139. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
  140. package/lib/commonjs/modules/bt-management/types/clock-sync.js +1 -0
  141. package/lib/commonjs/modules/bt-management/types/clock-sync.js.map +1 -1
  142. package/lib/commonjs/modules/bt-management/types/integrated-devices.js +1 -0
  143. package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
  144. package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js +10 -0
  145. package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
  146. package/lib/commonjs/modules/bt-management/utils/frame-bytes.js +11 -0
  147. package/lib/commonjs/modules/bt-management/utils/frame-bytes.js.map +1 -0
  148. package/lib/commonjs/modules/bt-management/utils/sig-uuid.js +10 -0
  149. package/lib/commonjs/modules/bt-management/utils/sig-uuid.js.map +1 -0
  150. package/lib/module/modules/bt-device/components/btdevice-instruction.js +1 -1
  151. package/lib/module/modules/bt-device/components/btdevice-instruction.js.map +1 -1
  152. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +4 -78
  153. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  154. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js +575 -0
  155. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.js.map +1 -0
  156. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js +2 -0
  157. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
  158. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +1 -0
  159. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -1
  160. package/lib/module/modules/bt-management/constants/device-variants.js +2 -1
  161. package/lib/module/modules/bt-management/constants/device-variants.js.map +1 -1
  162. package/lib/module/modules/bt-management/constants/no-parsing-cases.js +8 -0
  163. package/lib/module/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
  164. package/lib/module/modules/bt-management/constants/transtek-a6-bp-device-variants.js +476 -0
  165. package/lib/module/modules/bt-management/constants/transtek-a6-bp-device-variants.js.map +1 -0
  166. package/lib/module/modules/bt-management/core/resolve-device-key.js +7 -1
  167. package/lib/module/modules/bt-management/core/resolve-device-key.js.map +1 -1
  168. package/lib/module/modules/bt-management/services/device-classes.js +3 -2
  169. package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
  170. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +0 -4
  171. package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
  172. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
  173. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
  174. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
  175. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
  176. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
  177. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
  178. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
  179. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
  180. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
  181. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
  182. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
  183. package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
  184. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
  185. package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
  186. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  187. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
  188. package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
  189. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +5 -0
  190. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  191. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
  192. package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
  193. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
  194. package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
  195. package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
  196. package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
  197. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
  198. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
  199. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +13 -15
  200. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
  201. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
  202. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
  203. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  204. package/lib/module/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
  205. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
  206. package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
  207. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
  208. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
  209. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
  210. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
  211. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
  212. package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
  213. package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
  214. package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
  215. package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
  216. package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
  217. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
  218. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
  219. package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
  220. package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
  221. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +2 -1
  222. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
  223. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +2 -3
  224. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
  225. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
  226. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
  227. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
  228. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
  229. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js +98 -0
  230. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.js.map +1 -0
  231. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +92 -0
  232. package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -0
  233. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +6 -0
  234. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -1
  235. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +6 -54
  236. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
  237. package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js +48 -0
  238. package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
  239. package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js +66 -0
  240. package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
  241. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
  242. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
  243. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
  244. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
  245. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
  246. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
  247. package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
  248. package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
  249. package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
  250. package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
  251. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
  252. package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
  253. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
  254. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  255. package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
  256. package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
  257. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
  258. package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
  259. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
  260. package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
  261. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
  262. package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
  263. package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
  264. package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
  265. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
  266. package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
  267. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
  268. package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
  269. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
  270. package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
  271. package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
  272. package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
  273. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
  274. package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
  275. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
  276. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
  277. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
  278. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
  279. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
  280. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
  281. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
  282. package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
  283. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
  284. package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
  285. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
  286. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
  287. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
  288. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
  289. package/lib/module/modules/bt-management/types/clock-sync.js +1 -0
  290. package/lib/module/modules/bt-management/types/clock-sync.js.map +1 -1
  291. package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
  292. package/lib/module/modules/bt-management/types/integrated-devices.js +1 -0
  293. package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
  294. package/lib/module/modules/bt-management/utils/bytes-to-hex.js +5 -0
  295. package/lib/module/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
  296. package/lib/module/modules/bt-management/utils/frame-bytes.js +7 -0
  297. package/lib/module/modules/bt-management/utils/frame-bytes.js.map +1 -0
  298. package/lib/module/modules/bt-management/utils/sig-uuid.js +5 -0
  299. package/lib/module/modules/bt-management/utils/sig-uuid.js.map +1 -0
  300. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
  301. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts +5 -0
  303. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
  308. package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts +5 -0
  310. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +3 -2
  313. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
  315. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
  317. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
  318. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
  319. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
  321. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
  323. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
  324. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
  325. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
  327. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
  328. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
  329. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
  331. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
  333. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
  335. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
  337. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
  339. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
  341. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
  342. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
  343. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
  344. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
  345. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
  346. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
  347. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  348. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
  349. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
  350. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
  351. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
  352. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
  353. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
  354. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
  355. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
  356. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
  357. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
  358. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
  359. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
  361. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
  363. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
  364. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
  365. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
  366. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
  367. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
  368. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  369. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
  370. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
  371. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
  372. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts +19 -0
  373. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +27 -0
  375. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +6 -0
  377. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
  379. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
  381. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
  382. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
  383. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
  384. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
  385. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
  386. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
  387. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
  388. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
  389. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
  391. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
  393. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
  395. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
  396. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
  397. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
  398. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
  400. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
  401. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
  402. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
  404. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
  406. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
  408. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
  410. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
  412. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
  414. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
  416. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
  418. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
  419. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
  420. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
  421. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
  422. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
  424. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
  425. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
  426. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
  428. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
  429. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
  430. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
  431. package/lib/typescript/commonjs/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  432. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +1 -0
  433. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +1 -0
  435. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
  437. package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
  438. package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
  439. package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
  440. package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
  441. package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
  442. package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
  443. package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  444. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts +5 -0
  445. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-bp-variants.d.ts.map +1 -0
  446. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
  447. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -1
  448. package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
  449. package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
  450. package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
  451. package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts +5 -0
  452. package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-bp-device-variants.d.ts.map +1 -0
  453. package/lib/typescript/module/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
  454. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +3 -2
  455. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  456. package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
  457. package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
  458. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
  459. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
  460. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
  461. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
  462. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
  463. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
  464. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
  465. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
  466. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
  467. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
  468. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
  469. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
  470. package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
  471. package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
  472. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
  473. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  474. package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
  475. package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
  476. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
  477. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  478. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
  479. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
  480. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
  481. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
  482. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
  483. package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
  484. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
  485. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
  486. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
  487. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
  488. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
  489. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  490. package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
  491. package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
  492. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
  493. package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
  494. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
  495. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
  496. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
  497. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
  498. package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
  499. package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
  500. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
  501. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
  502. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
  503. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
  504. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
  505. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
  506. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
  507. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
  508. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
  509. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
  510. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
  511. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
  512. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
  513. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
  514. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts +19 -0
  515. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.measurements.d.ts.map +1 -0
  516. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +27 -0
  517. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -0
  518. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +6 -0
  519. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -1
  520. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
  521. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
  522. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
  523. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
  524. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
  525. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
  526. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
  527. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
  528. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
  529. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
  530. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
  531. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
  532. package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
  533. package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
  534. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
  535. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
  536. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
  537. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
  538. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
  539. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
  540. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
  541. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
  542. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
  543. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
  544. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
  545. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
  546. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
  547. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
  548. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
  549. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
  550. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
  551. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
  552. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
  553. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
  554. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
  555. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
  556. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
  557. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
  558. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
  559. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
  560. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
  561. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
  562. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
  563. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
  564. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
  565. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
  566. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
  567. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
  568. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
  569. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
  570. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
  571. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
  572. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
  573. package/lib/typescript/module/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  574. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +1 -0
  575. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  576. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +1 -0
  577. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  578. package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
  579. package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
  580. package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
  581. package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
  582. package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
  583. package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
  584. package/package.json +1 -1
  585. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -50
  586. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
  587. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -45
  588. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
  589. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
  590. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +0 -1
  591. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
  592. 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":["_cryptoJs","_interopRequireDefault","require","_frameReadStatus","_base64ToHex","e","__esModule","default","A6_SCALE_SERVICE","exports","A6_SCALE_NOTIFY","A6_SCALE_WRITE","A6_SCALE_ACK","A6_SCALE_WEIGHT","byte","value","Number","parseInt","readA6Uint","bytes","offset","length","slice","reduce","current","bytesToHex","map","toString","padStart","join","hexToBytes","hex","match","a6EncryptionKey","deviceId","manufacturerData","mac","replace","toLowerCase","manufacturer","base64ToHex","test","startsWith","undefined","prefix","Array","from","character","charCodeAt","encryptA6Body","body","key","padded","fill","encrypted","CryptoJS","AES","encrypt","enc","Hex","parse","mode","ECB","padding","pad","NoPadding","stringify","ciphertext","decryptA6Body","lib","CipherParams","create","decrypted","decrypt","encodeA6Command","command","encodedBody","content","A6ScaleFrameReader","readFrame","buffer","status","FrameReadStatus","INCOMPLETE","consumedBytes","control","frameCount","frameIndex","contentLength","CORRUPT","COMPLETE","frame","decodeA6Command","a6CommandBody"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAP5D;;AASO,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,sCAAsC;AAC/D,MAAME,eAAe,GAAAD,OAAA,CAAAC,eAAA,GAAG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AAC;EAEpC,OAAOA,KAAK,CAACrE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAGkE,aAAa,CAAC;AAC1C,CAAC;AAAC/E,OAAA,CAAAoF,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["_cryptoJs","_interopRequireDefault","require","_frameReadStatus","_base64ToHex","e","__esModule","default","A6_SCALE_SERVICE","exports","A6_BPM_SERVICE","A6_SCALE_NOTIFY","A6_SCALE_WRITE","A6_SCALE_ACK","A6_SCALE_WEIGHT","A6_BPM_SYNC","A6_BPM_MEASUREMENT","A6_BPM_START_MEASURING_RESPONSE","A6_BPM_TIME","A6_BPM_SETTING_RESPONSE","byte","value","Number","parseInt","readA6Uint","bytes","offset","length","slice","reduce","current","bytesToHex","map","toString","padStart","join","hexToBytes","hex","match","a6EncryptionKey","deviceId","manufacturerData","mac","replace","toLowerCase","manufacturer","base64ToHex","test","startsWith","undefined","prefix","Array","from","character","charCodeAt","encryptA6Body","body","key","padded","fill","encrypted","CryptoJS","AES","encrypt","enc","Hex","parse","mode","ECB","padding","pad","NoPadding","stringify","ciphertext","decryptA6Body","lib","CipherParams","create","decrypted","decrypt","encodeA6Command","command","encodedBody","content","A6ScaleFrameReader","readFrame","buffer","status","FrameReadStatus","INCOMPLETE","consumedBytes","control","frameCount","frameIndex","contentLength","CORRUPT","COMPLETE","frame","decodeA6Command","a6CommandBody"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAP5D;;AASO,MAAMG,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,sCAAs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ClB;EAEA,MAAMgC,OAAO,GAAGzD,UAAU,CAAC2D,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;EACzC,MAAM3B,IAAI,GAAGkB,aAAa,CAACS,OAAO,CAACvD,KAAK,CAAC,CAAC,CAAC,EAAE6B,GAAG,CAAC;EAEjD,OAAOD,IAAI,GAAG;IAAEyB,OAAO;IAAEzB;EAAK,CAAC,GAAGP,SAAS;AAC7C,CAAC;AAACxC,OAAA,CAAAyF,eAAA,GAAAA,eAAA;AAEK,MAAMC,aAAa,GAAIF,KAAwB,IAAe;EACnE,MAAMH,aAAa,GAAG1E,IAAI,CAAC6E,KAAK,CAAC,CAAC,CAAC,CAAC;EAEpC,OAAOA,KAAK,CAACrE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAGkE,aAAa,CAAC;AAC1C,CAAC;AAACrF,OAAA,CAAA0F,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -8,62 +8,14 @@ var _core = require("@ovok/core");
8
8
  var _caseType = require("../../../types/case-type.js");
9
9
  var _a6ScaleMeasurements = require("./a6-scale.measurements.js");
10
10
  var _a6ScaleProtocol = require("./a6-scale.protocol.js");
11
- const command = (characteristicUuid, frame, delayBeforeWriteMs) => ({
12
- serviceUuid: _a6ScaleProtocol.A6_SCALE_SERVICE,
13
- characteristicUuid,
14
- frame,
15
- ...(delayBeforeWriteMs ? {
16
- delayBeforeWriteMs
17
- } : {})
18
- });
19
-
11
+ var _a6Sequencer = require("./a6.sequencer.js");
20
12
  /** Answers A6 authentication/init requests and decodes the scale's weight records. */
21
- class A6ScaleSequencer {
22
- expectedFragmentCount = 0;
13
+ class A6ScaleSequencer extends _a6Sequencer.A6Sequencer {
23
14
  userNumber = 0;
24
15
  constructor(options) {
16
+ super(_a6ScaleProtocol.A6_SCALE_SERVICE, options);
25
17
  this.options = options;
26
- this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(options.deviceId, options.manufacturerData);
27
18
  }
28
- initialCommands = () => [];
29
- isHistoryTransfer = () => true;
30
- nextCommand = frame => {
31
- const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
32
- const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
33
- const count = control >> 4;
34
- const index = control & 0x0f;
35
- const replies = [];
36
- if (count === 0) {
37
- return replies;
38
- }
39
- if (!(count === 1 && content.length === 1 && content[0] === "01")) {
40
- replies.push(command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
41
- }
42
- if (count === 1) {
43
- replies.push(...this.processMessage(content));
44
- return replies;
45
- }
46
- if (index === 0) {
47
- this.fragments = Array.from({
48
- length: count
49
- }, () => []);
50
- this.expectedFragmentCount = count;
51
- }
52
- if (!this.fragments || this.expectedFragmentCount !== count) {
53
- this.fragments = undefined;
54
- this.expectedFragmentCount = 0;
55
- return replies;
56
- }
57
- this.fragments[index] = content;
58
- if (this.fragments.some(part => part.length === 0)) {
59
- return replies;
60
- }
61
- const assembled = this.fragments.flat();
62
- this.fragments = undefined;
63
- this.expectedFragmentCount = 0;
64
- replies.push(...this.processMessage(assembled));
65
- return replies;
66
- };
67
19
  processMessage = content => {
68
20
  const message = (0, _a6ScaleProtocol.decodeA6Command)(content, this.key);
69
21
  if (!message) {
@@ -75,7 +27,7 @@ class A6ScaleSequencer {
75
27
  }
76
28
  this.userNumber = message.body[6] ?? 0;
77
29
  const response = (0, _a6ScaleProtocol.encodeA6Command)(0x0008, [0x01, ...message.body.slice(0, 6), 0x00, 0x02], this.key);
78
- return response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : [];
30
+ return response ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : [];
79
31
  }
80
32
  if (message.command === 0x0009) {
81
33
  const now = this.options.clockSync?.now?.() ?? new Date();
@@ -83,7 +35,7 @@ class A6ScaleSequencer {
83
35
  const timezone = this.options.clockSync?.timezone === "utc" ? 48 : 48 - Math.round(now.getTimezoneOffset() / 15);
84
36
  const response = (0, _a6ScaleProtocol.encodeA6Command)(0x000a, [0x18, seconds >>> 24 & 0xff, seconds >>> 16 & 0xff, seconds >>> 8 & 0xff, seconds & 0xff, timezone], this.key);
85
37
  const sync = (0, _a6ScaleProtocol.encodeA6Command)(0x4801, [this.userNumber, 1], this.key);
86
- return [...(response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : []), ...(sync ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, 500)] : [])];
38
+ return [...(response ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : []), ...(sync ? [this.command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, 500)] : [])];
87
39
  }
88
40
  if (message.command === _a6ScaleProtocol.A6_SCALE_WEIGHT) {
89
41
  const weight = (0, _a6ScaleMeasurements.parseA6Weight)(message.body);
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_caseType","_a6ScaleMeasurements","_a6ScaleProtocol","command","characteristicUuid","frame","delayBeforeWriteMs","serviceUuid","A6_SCALE_SERVICE","A6ScaleSequencer","expectedFragmentCount","userNumber","constructor","options","key","a6EncryptionKey","deviceId","manufacturerData","initialCommands","isHistoryTransfer","nextCommand","content","a6CommandBody","control","Number","parseInt","count","index","replies","length","push","A6_SCALE_ACK","processMessage","fragments","Array","from","undefined","some","part","assembled","flat","message","decodeA6Command","body","response","encodeA6Command","slice","A6_SCALE_WRITE","now","clockSync","Date","seconds","Math","floor","getTime","timezone","round","getTimezoneOffset","sync","A6_SCALE_WEIGHT","weight","parseA6Weight","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","bodyWeight","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAQA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAsBA,MAAMI,OAAO,GAAGA,CACdC,kBAA0B,EAC1BC,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AAG,CAAC;MAEpE,OAAO,CACL,IAAI8B,QAAQ,GAAG,CAACzC,OAAO,CAAC4C,+BAAc,EAAEH,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC,EACxD,IAAIc,IAAI,GAAG,CAACvD,OAAO,CAAC4C,+BAAc,EAAEW,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CACtD;IACH;IAEA,IAAIjB,OAAO,CAACtC,OAAO,KAAKwD,gCAAe,EAAE;MACvC,MAAMC,MAAM,GAAG,IAAAC,kCAAa,EAACpB,OAAO,CAACE,IAAI,CAAC;MAE1C,IAAIiB,MAAM,EAAE;QACV,IAAI,CAAC/C,OAAO,CAACiD,QAAQ,CAAC;UACpBC,QAAQ,EAAEC,kBAAQ,CAACC,MAAM;UACzBC,kBAAkB,EAAEC,wBAAkB,CAACC,UAAU;UACjD,GAAGR;QACL,CAAa,CAAC;MAChB;IACF;IAEA,OAAO,EAAE;EACX,CAAC;AACH;AAACS,OAAA,CAAA5D,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_caseType","_a6ScaleMeasurements","_a6ScaleProtocol","_a6Sequencer","A6ScaleSequencer","A6Sequencer","userNumber","constructor","options","A6_SCALE_SERVICE","processMessage","content","message","decodeA6Command","key","command","body","length","response","encodeA6Command","slice","A6_SCALE_WRITE","now","clockSync","Date","seconds","Math","floor","getTime","timezone","round","getTimezoneOffset","sync","A6_SCALE_WEIGHT","weight","parseA6Weight","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","bodyWeight","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAOA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAOA,IAAAI,YAAA,GAAAJ,OAAA;AAcA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});
6
+ exports.TranstekA6Device = void 0;
7
+ var _noParsingCases = require("../../../constants/no-parsing-cases.js");
8
+ var _integratedDevices = require("../../../types/integrated-devices.js");
9
+ var _btManagedDevice = require("../bt-managed-device.js");
10
+ var _a6BloodPressureSequencer = require("./a6-blood-pressure.sequencer.js");
11
+ var _a6ScaleProtocol = require("./a6-scale.protocol.js");
12
+ var _a6ScaleSequencer = require("./a6-scale.sequencer.js");
13
+ /** What differs between the A6 scale (A602) and the A6 blood-pressure monitor (A610). */
14
+ const A6_DEVICES = {
15
+ [_integratedDevices.IntegratedDevices.RPM_SCALE]: {
16
+ service: _a6ScaleProtocol.A6_SCALE_SERVICE,
17
+ sequencer: options => new _a6ScaleSequencer.A6ScaleSequencer(options)
18
+ },
19
+ [_integratedDevices.IntegratedDevices.TRANSTEK_A6_BPM]: {
20
+ service: _a6ScaleProtocol.A6_BPM_SERVICE,
21
+ sequencer: options => new _a6BloodPressureSequencer.A6BloodPressureSequencer(options)
22
+ }
23
+ };
24
+ const servicesFor = service => [{
25
+ uuid: service,
26
+ monitorUuids: [{
27
+ uuid: _a6ScaleProtocol.A6_SCALE_NOTIFY,
28
+ parsingModel: _noParsingCases.NO_PARSING_CASES
29
+ }],
30
+ writeUuid: {
31
+ uuid: _a6ScaleProtocol.A6_SCALE_WRITE,
32
+ mainCommandUuid: "0007"
33
+ }
34
+ }];
35
+
36
+ /** Transtek A6-generation devices: the GBS-2012-B scale family and the A6 blood-pressure monitors. */
37
+ class TranstekA6Device extends _btManagedDevice.BTManagedDevice {
38
+ stuckDataTimeout = 60_000;
39
+ constructor(device, params) {
40
+ super(device, params);
41
+ const a6 = A6_DEVICES[params.deviceName];
42
+ this.mainServices = servicesFor(a6.service);
43
+ this.frameReader = new _a6ScaleProtocol.A6ScaleFrameReader();
44
+ this.createCommandSequencer = () => a6.sequencer({
45
+ deviceId: device.id,
46
+ manufacturerData: device.manufacturerData,
47
+ clockSync: params.clockSync,
48
+ onResult: result => this.onResult?.(result)
49
+ });
50
+ }
51
+ }
52
+ exports.TranstekA6Device = TranstekA6Device;
53
+ //# sourceMappingURL=a6.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_noParsingCases","require","_integratedDevices","_btManagedDevice","_a6BloodPressureSequencer","_a6ScaleProtocol","_a6ScaleSequencer","A6_DEVICES","IntegratedDevices","RPM_SCALE","service","A6_SCALE_SERVICE","sequencer","options","A6ScaleSequencer","TRANSTEK_A6_BPM","A6_BPM_SERVICE","A6BloodPressureSequencer","servicesFor","uuid","monitorUuids","A6_SCALE_NOTIFY","parsingModel","NO_PARSING_CASES","writeUuid","A6_SCALE_WRITE","mainCommandUuid","TranstekA6Device","BTManagedDevice","stuckDataTimeout","constructor","device","params","a6","deviceName","mainServices","frameReader","A6ScaleFrameReader","createCommandSequencer","deviceId","id","manufacturerData","clockSync","onResult","result","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6.device.ts"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAKA,IAAAC,kBAAA,GAAAD,OAAA;AAGA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,yBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAOA,IAAAK,iBAAA,GAAAL,OAAA;AAWA;AACA,MAAMM,UAAkH,GAAG;EACzH,CAACC,oCAAiB,CAACC,SAAS,GAAG;IAC7BC,OAAO,EAAEC,iCAAgB;IACzBC,SAAS,EAAGC,OAAO,IAAK,IAAIC,kCAAgB,CAACD,OAAO;EACtD,CAAC;EACD,CAACL,oCAAiB,CAACO,eAAe,GAAG;IACnCL,OAAO,EAAEM,+BAAc;IACvBJ,SAAS,EAAGC,OAAO,IAAK,IAAII,kDAAwB,CAACJ,OAAO;EAC9D;AACF,CAAC;AAED,MAAMK,WAAW,GAAIR,OAAe,IAAiB,CACnD;EACES,IAAI,EAAET,OAAO;EACbU,YAAY,EAAE,CAAC;IAAED,IAAI,EAAEE,gCAAe;IAAEC,YAAY,EAAEC;EAAiB,CAAC,CAAC;EACzEC,SAAS,EAAE;IAAEL,IAAI,EAAEM,+BAAc;IAAEC,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACO,MAAMC,gBAAgB,SAASC,gCAAe,CAAgB;EAEzDC,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAyC,EAAE;IAC5E,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IAErB,MAAMC,EAAE,GAAG1B,UAAU,CAACyB,MAAM,CAACE,UAAU,CAAC;IAExC,IAAI,CAACC,YAAY,GAAGjB,WAAW,CAACe,EAAE,CAACvB,OAAO,CAAC;IAC3C,IAAI,CAAC0B,WAAW,GAAG,IAAIC,mCAAkB,CAAC,CAAC;IAC3C,IAAI,CAACC,sBAAsB,GAAG,MAC5BL,EAAE,CAACrB,SAAS,CAAC;MACX2B,QAAQ,EAAER,MAAM,CAACS,EAAE;MACnBC,gBAAgB,EAAEV,MAAM,CAACU,gBAAgB;MACzCC,SAAS,EAAEV,MAAM,CAACU,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IAAK,IAAI,CAACD,QAAQ,GAAGC,MAAM;IAC9C,CAAC,CAAC;EACN;AACF;AAACC,OAAA,CAAAlB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.A6Sequencer = void 0;
7
+ var _a6ScaleProtocol = require("./a6-scale.protocol.js");
8
+ /**
9
+ * The A6 session both Transtek A6 devices share: control-byte framing, fragment reassembly, the
10
+ * acknowledgement of each frame, and the device's encryption key. Subclasses handle only the
11
+ * decoded messages of their own service.
12
+ */
13
+ class A6Sequencer {
14
+ expectedFragmentCount = 0;
15
+ constructor(serviceUuid, device) {
16
+ this.serviceUuid = serviceUuid;
17
+ this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(device.deviceId, device.manufacturerData);
18
+ }
19
+ initialCommands = () => [];
20
+ isHistoryTransfer = () => true;
21
+ nextCommand = frame => {
22
+ const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
23
+ const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
24
+ const count = control >> 4;
25
+ const index = control & 0x0f;
26
+ const replies = [];
27
+ if (count === 0) {
28
+ return replies;
29
+ }
30
+ if (!(count === 1 && content.length === 1 && content[0] === "01")) {
31
+ replies.push(this.command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
32
+ }
33
+ if (count === 1) {
34
+ replies.push(...this.processMessage(content));
35
+ return replies;
36
+ }
37
+ if (index === 0) {
38
+ this.fragments = Array.from({
39
+ length: count
40
+ }, () => []);
41
+ this.expectedFragmentCount = count;
42
+ }
43
+ if (!this.fragments || this.expectedFragmentCount !== count) {
44
+ this.fragments = undefined;
45
+ this.expectedFragmentCount = 0;
46
+ return replies;
47
+ }
48
+ this.fragments[index] = content;
49
+ if (this.fragments.some(part => part.length === 0)) {
50
+ return replies;
51
+ }
52
+ const assembled = this.fragments.flat();
53
+ this.fragments = undefined;
54
+ this.expectedFragmentCount = 0;
55
+ replies.push(...this.processMessage(assembled));
56
+ return replies;
57
+ };
58
+ command(characteristicUuid, frame, delayBeforeWriteMs) {
59
+ return {
60
+ serviceUuid: this.serviceUuid,
61
+ characteristicUuid,
62
+ frame,
63
+ ...(delayBeforeWriteMs ? {
64
+ delayBeforeWriteMs
65
+ } : {})
66
+ };
67
+ }
68
+ }
69
+ exports.A6Sequencer = A6Sequencer;
70
+ //# sourceMappingURL=a6.sequencer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_a6ScaleProtocol","require","A6Sequencer","expectedFragmentCount","constructor","serviceUuid","device","key","a6EncryptionKey","deviceId","manufacturerData","initialCommands","isHistoryTransfer","nextCommand","frame","content","a6CommandBody","control","Number","parseInt","count","index","replies","length","push","command","A6_SCALE_ACK","processMessage","fragments","Array","from","undefined","some","part","assembled","flat","characteristicUuid","delayBeforeWriteMs","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6.sequencer.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAeC,WAAW,CAA6B;EAEpDC,qBAAqB,GAAG,CAAC;EAGvBC,WAAWA,CACFC,WAAmB,EACpCC,MAA8D,EAC9D;IAAA,KAFiBD,WAAmB,GAAnBA,WAAmB;IAGpC,IAAI,CAACE,GAAG,GAAG,IAAAC,gCAAe,EAACF,MAAM,CAACG,QAAQ,EAAEH,MAAM,CAACI,gBAAgB,CAAC;EACtE;EAEOC,eAAe,GAAGA,CAAA,KAAgC,EAAE;EAEpDC,iBAAiB,GAAGA,CAAA,KAAe,IAAI;EAEvCC,WAAW,GAAIC,KAAwB,IAA+B;IAC3E,MAAMC,OAAO,GAAG,IAAAC,8BAAa,EAACF,KAAK,CAAC;IACpC,MAAMG,OAAO,GAAGC,MAAM,CAACC,QAAQ,CAACL,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IAC1D,MAAMM,KAAK,GAAGH,OAAO,IAAI,CAAC;IAC1B,MAAMI,KAAK,GAAGJ,OAAO,GAAG,IAAI;IAC5B,MAAMK,OAAwB,GAAG,EAAE;IAEnC,IAAIF,KAAK,KAAK,CAAC,EAAE;MACf,OAAOE,OAAO;IAChB;IAEA,IAAI,EAAEF,KAAK,KAAK,CAAC,IAAIL,OAAO,CAACQ,MAAM,KAAK,CAAC,IAAIR,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE;MACjEO,OAAO,CAACE,IAAI,CAAC,IAAI,CAACC,OAAO,CAACC,6BAAY,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAC9D;IAEA,IAAIN,KAAK,KAAK,CAAC,EAAE;MACfE,OAAO,C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 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MamboA5Device = void 0;
7
7
  var _core = require("@ovok/core");
8
+ var _noParsingCases = require("../../../constants/no-parsing-cases.js");
8
9
  var _btManagedDevice = require("../bt-managed-device.js");
9
10
  var _mamboA5Protocol = require("./mambo-a5.protocol.js");
10
11
  var _mamboA5Sequencer = require("./mambo-a5.sequencer.js");
11
- const acceptNothing = {
12
- caseValuePosition: [],
13
- cases: []
14
- };
15
12
  const mainServices = [{
16
13
  uuid: _mamboA5Protocol.MAMBO_A5_SERVICE,
17
14
  monitorUuids: [{
18
15
  uuid: _mamboA5Protocol.MAMBO_A5_LOGIN,
19
- parsingModel: acceptNothing
16
+ parsingModel: _noParsingCases.NO_PARSING_CASES
20
17
  }, {
21
18
  uuid: _mamboA5Protocol.MAMBO_A5_NOTIFY,
22
- parsingModel: acceptNothing
19
+ parsingModel: _noParsingCases.NO_PARSING_CASES
23
20
  }],
24
21
  writeUuid: {
25
22
  uuid: _mamboA5Protocol.MAMBO_A5_WRITE,
@@ -31,7 +28,6 @@ const mainServices = [{
31
28
  class MamboA5Device extends _btManagedDevice.BTManagedDevice {
32
29
  mainServices = mainServices;
33
30
  stuckDataTimeout = 60_000;
34
- onStreamStart = undefined;
35
31
  getSupportedMeasurementTypeKeys() {
36
32
  return [_core.MeasurementTypeKey.bloodOxygenPulseRate];
37
33
  }
@@ -43,9 +39,6 @@ class MamboA5Device extends _btManagedDevice.BTManagedDevice {
43
39
  onResult: result => this.onResult?.(result)
44
40
  });
45
41
  }
46
- handleSuccessResult() {
47
- return;
48
- }
49
42
  }
50
43
  exports.MamboA5Device = MamboA5Device;
51
44
  //# sourceMappingURL=mambo-a5.device.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_btManagedDevice","_mamboA5Protocol","_mamboA5Sequencer","acceptNothing","caseValuePosition","cases","mainServices","uuid","MAMBO_A5_SERVICE","monitorUuids","MAMBO_A5_LOGIN","parsingModel","MAMBO_A5_NOTIFY","writeUuid","MAMBO_A5_WRITE","mainCommandUuid","MamboA5Device","BTManagedDevice","stuckDataTimeout","onStreamStart","undefined","getSupportedMeasurementTypeKeys","MeasurementTypeKey","bloodOxygenPulseRate","constructor","device","params","frameReader","MamboA5FrameReader","createCommandSequencer","MamboA5Sequencer","clockSync","onResult","result","handleSuccessResult","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/mambo-a5.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAOA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAE1D,MAAMC,YAAwB,GAAG,CAC/B;EACEC,IAAI,EAAEC,iCAAgB;EACtBC,YAAY,EAAE,CACZ;IAAEF,IAAI,EAAEG,+BAAc;IAAEC,YAAY,EAAER;EAAc,CAAC,EACrD;IAAEI,IAAI,EAAEK,gCAAe;IAAED,YAAY,EAAER;EAAc,CAAC,CACvD;EACDU,SAAS,EAAE;IAAEN,IAAI,EAAEO,+BAAc;IAAEC,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACO,MAAMC,aAAa,SAASC,gCAAe,CAA6B;EACnEX,YAAY,GAAGA,YAAY;EAC3BY,gBAAgB,GAAG,MAAM;EACzBC,aAAa,GAAGC,SAAS;EAEhBC,+BAA+BA,CAAA,EAAyB;IACzE,OAAO,CAACC,wBAAkB,CAACC,oBAAoB,CAAC;EAClD;EAEOC,WAAWA,CAChBC,MAAc,EACdC,MAAsD,EACtD;IACA,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIC,mCAAkB,CAAC,CAAC;IAC3C,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,kCAAgB,CAAC;MACnBC,SAAS,EAAEL,MAAM,CAACK,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;EAEUC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAACC,OAAA,CAAAnB,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_noParsingCases","_btManagedDevice","_mamboA5Protocol","_mamboA5Sequencer","mainServices","uuid","MAMBO_A5_SERVICE","monitorUuids","MAMBO_A5_LOGIN","parsingModel","NO_PARSING_CASES","MAMBO_A5_NOTIFY","writeUuid","MAMBO_A5_WRITE","mainCommandUuid","MamboA5Device","BTManagedDevice","stuckDataTimeout","getSupportedMeasurementTypeKeys","MeasurementTypeKey","bloodOxygenPulseRate","constructor","device","params","frameReader","MamboA5FrameReader","createCommandSequencer","MamboA5Sequencer","clockSync","onResult","result","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/mambo-a5.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAD,OAAA;AAMA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AAOA,IAAAI,iBAAA,GAAAJ,OAAA;AAEA,MAAMK,YAAwB,GAAG,CAC/B;EACEC,IAAI,EAAEC,iCAAgB;EACtBC,YAAY,EAAE,CACZ;IAAEF,IAAI,EAAEG,+BAAc;IAAEC,YAAY,EAAEC;EAAiB,CAAC,EACxD;IAAEL,IAAI,EAAEM,gCAAe;IAAEF,YAAY,EAAEC;EAAiB,CAAC,CAC1D;EACDE,SAAS,EAAE;IAAEP,IAAI,EAAEQ,+BAAc;IAAEC,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACO,MAAMC,aAAa,SAASC,gCAAe,CAA6B;EACnEZ,YAAY,GAAGA,YAAY;EAC3Ba,gBAAgB,GAAG,MAAM;EAEhBC,+BAA+BA,CAAA,EAAyB;IACzE,OAAO,CAACC,wBAAkB,CAACC,oBAAoB,CAAC;EAClD;EAEOC,WAAWA,CAChBC,MAAc,EACdC,MAAsD,EACtD;IACA,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIC,mCAAkB,CAAC,CAAC;IAC3C,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,kCAAgB,CAAC;MACnBC,SAAS,EAAEL,MAAM,CAACK,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;AAEF;AAACC,OAAA,CAAAhB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -4,25 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TranstekCommandDevice = void 0;
7
+ var _noParsingCases = require("../../../constants/no-parsing-cases.js");
7
8
  var _integratedDevices = require("../../../types/integrated-devices.js");
8
9
  var _deviceSecrets = require("../../device-secrets.js");
9
10
  var _btManagedDevice = require("../bt-managed-device.js");
10
11
  var _transtekCommandProtocol = require("./transtek-command.protocol.js");
11
12
  var _transtekCommandSequencer = require("./transtek-command.sequencer.js");
12
13
  /** The sequencer decodes records itself; the declarative parser only has to pass frames on. */
13
- const passThrough = {
14
- caseValuePosition: [],
15
- cases: []
16
- };
14
+
17
15
  const service = (uuid, data, optional) => ({
18
16
  uuid,
19
17
  optional,
20
18
  monitorUuids: [{
21
19
  uuid: _transtekCommandProtocol.TRANSTEK_CHARACTERISTICS.answer,
22
- parsingModel: passThrough
20
+ parsingModel: _noParsingCases.NO_PARSING_CASES
23
21
  }, {
24
22
  uuid: data,
25
- parsingModel: passThrough
23
+ parsingModel: _noParsingCases.NO_PARSING_CASES
26
24
  }]
27
25
  });
28
26
  const SERVICES_BY_KIND = {
@@ -44,7 +42,6 @@ const secretKey = device => `transtek-password:${device.id}`;
44
42
  */
45
43
  class TranstekCommandDevice extends _btManagedDevice.BTManagedDevice {
46
44
  stuckDataTimeout = 60_000;
47
- onStreamStart = undefined;
48
45
  constructor(device, params) {
49
46
  super(device, params);
50
47
  const kind = KIND[params.deviceName];
@@ -63,9 +60,6 @@ class TranstekCommandDevice extends _btManagedDevice.BTManagedDevice {
63
60
 
64
61
  /** No framing: every notification is one whole message. */
65
62
  validatePackage = () => true;
66
- handleSuccessResult() {
67
- return;
68
- }
69
63
  }
70
64
  exports.TranstekCommandDevice = TranstekCommandDevice;
71
65
  //# sourceMappingURL=transtek-command.device.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_integratedDevices","require","_deviceSecrets","_btManagedDevice","_transtekCommandProtocol","_transtekCommandSequencer","passThrough","caseValuePosition","cases","service","uuid","data","optional","monitorUuids","TRANSTEK_CHARACTERISTICS","answer","parsingModel","SERVICES_BY_KIND","TRANSTEK_SERVICES","bloodPressureA2","bloodPressure","bloodPressureA3","scale","scaleA2","weightA2","scaleA3","weightA3","tracker","KIND","IntegratedDevices","TRANSTEK_BPM","TRANSTEK_SCALE","TRANSTEK_SCALE_1525","TRANSTEK_TRACKER","secretKey","device","id","TranstekCommandDevice","BTManagedDevice","stuckDataTimeout","onStreamStart","undefined","constructor","params","kind","deviceName","mainServices","loadDeviceSecret","createCommandSequencer","TranstekCommandSequencer","heightInCentimetres","onResult","result","onError","error","validatePackage","handleSuccessResult","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.device.ts"],"mappings":";;;;;;AAIA,IAAAA,kBAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,wBAAA,GAAAH,OAAA;AAIA,IAAAI,yBAAA,GAAAJ,OAAA;AASA;AACA,MAAMK,WAAW,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAEx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,WAAWA,CAACP,MAAc,EAAEQ,MAA0C,EAAE;IAC7E,KAAK,CAACR,MAAM,EAAEQ,MAAM,CAAC;IAErB,MAAMC,IAAI,GAAGhB,IAAI,CAACe,MAAM,CAACE,UAAU,CAAC;IAEpC,IAAI,CAACC,YAAY,GAAG7B,gBAAgB,CAAC2B,IAAI,CAAC;;IAE1C;IACA,KAAK,IAAAG,+BAAgB,EAACb,SAAS,CAACC,MAAM,CAAC,CAAC;IAExC,IAAI,CAACa,sBAAsB,GAAG,MAC5B,IAAIC,kDAAwB,CAAC;MAC3BL,IAAI;MACJV,SAAS,EAAEA,SAAS,CAACC,MAAM,CAAC;MAC5Be,mBAAmB,EACjBP,MAAM,CAACE,UAAU,KAAKhB,oCAAiB,CAACG,mBAAmB;MAC7DmB,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF,CAAC;MACHC,OAAO,EAAGC,KAAK,IAAK,IAAI,CAACD,OAAO,GAAGC,KAAK;IAC1C,CAAC,CAAC;EACN;;EAEA;EACUC,eAAe,GAAGA,CAAA,KAAe,IAAI;EAErCC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAACC,OAAA,CAAApB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_noParsingCases","require","_integratedDevices","_deviceSecrets","_btManagedDevice","_transtekCommandProtocol","_transtekCommandSequencer","service","uuid","data","optional","monitorUuids","TRANSTEK_CHARACTERISTICS","answer","parsingModel","NO_PARSING_CASES","SERVICES_BY_KIND","TRANSTEK_SERVICES","bloodPressureA2","bloodPressure","bloodPressureA3","scale","scaleA2","weightA2","scaleA3","weightA3","tracker","KIND","IntegratedDevices","TRANSTEK_BPM","TRANSTEK_SCALE","TRANSTEK_SCALE_1525","TRANSTEK_TRACKER","secretKey","device","id","TranstekCommandDevice","BTManagedDevice","stuckDataTimeout","constructor","params","kind","deviceName","mainServices","loadDeviceSecret","createCommandSequencer","TranstekCommandSequencer","heightInCentimetres","onResult","result","onError","error","validatePackage","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.device.ts"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,kBAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAJ,OAAA;AAIA,IAAAK,yBAAA,GAAAL,OAAA;AASA;;AAEA,MAAMM,OAAO,GAAGA,CAACC,IAAY,EAAEC,IAAY,EAAEC,QAAiB,MAAgB;EAC5EF,IAAI;EACJE,QAAQ;EACRC,YAAY,EAAE,CACZ;IAAEH,IAAI,EAAEI,iDAAwB,CAACC,MAAM;IAAEC,YAAY,EAAEC;EAAiB,CAAC,EACzE;IAAEP,IAAI,EAAEC,IAAI;IAAEK,YAAY,EAAEC;EAAiB,CAAC;AAElD,CAAC,CAAC;AAEF,MAAMC,gBAAkD,GAAG;EACzD,gBAAgB,EAAE,CAChBT,OAAO,CAACU,0CAAiB,CAACC,eAAe,EAAEN,iDAAwB,CAACO,aAAa,EAAE,IAAI,CAAC,EACxFZ,OAAO,CAACU,0CAAiB,CAACG,eAAe,EAAER,iDAAwB,CAACO,aAAa,EAAE,IAAI,CAAC,CACzF;EACDE,KAAK,EAAE,CACLd,OAAO,CAACU,0CAAiB,CAACK,OAAO,EAAEV,iDAAwB,CAACW,QAAQ,EAAE,IAAI,CAAC,EAC3EhB,OAAO,CAACU,0CAAiB,CAACO,OAAO,EAAEZ,iDAAwB,CAACa,QAAQ,EAAE,IAAI,CAAC,CAC5E;EACDC,OAAO,EAAE,CAACnB,OAAO,CAACU,0CAAiB,CAACS,OAAO,EAAEd,iDAAwB,CAACc,OAAO,EAAE,KAAK,CAAC;AACvF,CAAC;AAED,MAAMC,IAA0C,GAAG;EACjD,CAACC,oCAAiB,CAACC,YAAY,GAAG,gBAAgB;EAClD,CAACD,oCAAiB,CAACE,cAAc,GAAG,OAAO;EAC3C,CAACF,oCAAiB,CAACG,mBAAmB,GAAG,OAAO;EAChD,CAACH,oCAAiB,CAACI,gBAAgB,GAAG;AACxC,CAAC;AAED,MAAMC,SAAS,GAAIC,MAAc,IAAa,qBAAqBA,MAAM,CAACC,EAAE,EAAE;;AAE9E;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,SAASC,gCAAe,CAAiB;EAExDC,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACL,MAAc,EAAEM,MAA0C,EAAE;IAC7E,KAAK,CAACN,MAAM,EAAEM,MAAM,CAAC;IAErB,MAAMC,IAAI,GAAGd,IAAI,CAACa,MAAM,CAACE,UAAU,CAAC;IAEpC,IAAI,CAACC,YAAY,GAAG3B,gBAAgB,CAACyB,IAAI,CAAC;;IAE1C;IACA,KAAK,IAAAG,+BAAgB,EAACX,SAAS,CAACC,MAAM,CAAC,CAAC;IAExC,IAAI,CAACW,sBAAsB,GAAG,MAC5B,IAAIC,kDAAwB,CAAC;MAC3BL,IAAI;MACJR,SAAS,EAAEA,SAAS,CAACC,MAAM,CAAC;MAC5Ba,mBAAmB,EACjBP,MAAM,CAACE,UAAU,KAAKd,oCAAiB,CAACG,mBAAmB;MAC7DiB,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF,CAAC;MACHC,OAAO,EAAGC,KAAK,IAAK,IAAI,CAACD,OAAO,GAAGC,KAAK;IAC1C,CAAC,CAAC;EACN;;EAEA;EACUC,eAAe,GAAGA,CAAA,KAAe,IAAI;AAEjD;AAACC,OAAA,CAAAjB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.verificationCommand = exports.u32 = exports.u16 = exports.transtekTime = exports.transtekSeconds = exports.trackerUserDataCommand = exports.trackerConfigurationCommand = exports.setTimeCommand = exports.scaleProfileCommand = exports.readRandom = exports.readPassword = exports.opcode = exports.endSessionCommand = exports.bindUserCommand = exports.accountIdCommand = exports.TRANSTEK_SERVICES = exports.TRANSTEK_CHARACTERISTICS = exports.ANSWER = void 0;
7
+ var _bytesToHex = require("../../../utils/bytes-to-hex.js");
7
8
  var _hexToByte = require("../../../utils/hex-to-byte.js");
8
9
  var _le32FromHex = require("../../../utils/le-32-from-hex.js");
10
+ var _sigUuid = require("../../../utils/sig-uuid.js");
9
11
  /* eslint-disable import/group-exports */
10
12
 
11
13
  /**
@@ -18,21 +20,20 @@ var _le32FromHex = require("../../../utils/le-32-from-hex.js");
18
20
  *
19
21
  * Generation is picked by which primary service the device has: A2 or A3 for each kind.
20
22
  */
21
- const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
22
23
  const TRANSTEK_SERVICES = exports.TRANSTEK_SERVICES = {
23
- bloodPressureA2: sig16("7809"),
24
- bloodPressureA3: sig16("7889"),
25
- scaleA2: sig16("7802"),
26
- scaleA3: sig16("7892"),
27
- tracker: sig16("7801")
24
+ bloodPressureA2: (0, _sigUuid.sigUuid)("7809"),
25
+ bloodPressureA3: (0, _sigUuid.sigUuid)("7889"),
26
+ scaleA2: (0, _sigUuid.sigUuid)("7802"),
27
+ scaleA3: (0, _sigUuid.sigUuid)("7892"),
28
+ tracker: (0, _sigUuid.sigUuid)("7801")
28
29
  };
29
30
  const TRANSTEK_CHARACTERISTICS = exports.TRANSTEK_CHARACTERISTICS = {
30
- command: sig16("8a81"),
31
- answer: sig16("8a82"),
32
- bloodPressure: sig16("8a91"),
33
- weightA2: sig16("8a21"),
34
- weightA3: sig16("8a24"),
35
- tracker: sig16("8a11")
31
+ command: (0, _sigUuid.sigUuid)("8a81"),
32
+ answer: (0, _sigUuid.sigUuid)("8a82"),
33
+ bloodPressure: (0, _sigUuid.sigUuid)("8a91"),
34
+ weightA2: (0, _sigUuid.sigUuid)("8a21"),
35
+ weightA3: (0, _sigUuid.sigUuid)("8a24"),
36
+ tracker: (0, _sigUuid.sigUuid)("8a11")
36
37
  };
37
38
 
38
39
  /** Device-to-app opcodes on the answer characteristic. */
@@ -45,7 +46,6 @@ const ANSWER = exports.ANSWER = {
45
46
 
46
47
  /** Seconds since this local wall-clock instant are how both directions carry time. */
47
48
  const EPOCH_UTC_MS = Date.UTC(2010, 0, 1);
48
- const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
49
49
  const le32 = value => [value & 0xff, value >>> 8 & 0xff, value >>> 16 & 0xff, value >>> 24 & 0xff];
50
50
  const u32 = (frame, index) => (0, _le32FromHex.le32FromHex)([...frame], index) >>> 0;
51
51
  exports.u32 = u32;
@@ -70,23 +70,23 @@ const readRandom = frame => u32(frame, 1);
70
70
 
71
71
  /** `21 FF 00 00 UU`: sent after the pairing password. */
72
72
  exports.readRandom = readRandom;
73
- const accountIdCommand = user => toHex([0x21, 0xff, 0x00, 0x00, user]);
73
+ const accountIdCommand = user => (0, _bytesToHex.bytesToHex)([0x21, 0xff, 0x00, 0x00, user]);
74
74
 
75
75
  /** `20` + (password XOR random): proves this phone holds the device's password. */
76
76
  exports.accountIdCommand = accountIdCommand;
77
- const verificationCommand = (password, random) => toHex([0x20, ...le32((password ^ random) >>> 0)]);
77
+ const verificationCommand = (password, random) => (0, _bytesToHex.bytesToHex)([0x20, ...le32((password ^ random) >>> 0)]);
78
78
  exports.verificationCommand = verificationCommand;
79
- const setTimeCommand = now => toHex([0x02, ...le32(transtekSeconds(now))]);
79
+ const setTimeCommand = now => (0, _bytesToHex.bytesToHex)([0x02, ...le32(transtekSeconds(now))]);
80
80
 
81
81
  /** `22`: the app is done with this session. */
82
82
  exports.setTimeCommand = setTimeCommand;
83
- const endSessionCommand = () => toHex([0x22]);
83
+ const endSessionCommand = () => (0, _bytesToHex.bytesToHex)([0x22]);
84
84
 
85
85
  /** `03 UU` + an 18-byte, space-padded user name (A3 pairing). */
86
86
  exports.endSessionCommand = endSessionCommand;
87
87
  const bindUserCommand = (user, name) => {
88
88
  const bytes = Array.from(name.slice(0, 18), char => char.charCodeAt(0) & 0x7f);
89
- return toHex([0x03, user, ...bytes, ...Array(18 - bytes.length).fill(0x20)]);
89
+ return (0, _bytesToHex.bytesToHex)([0x03, user, ...bytes, ...Array(18 - bytes.length).fill(0x20)]);
90
90
  };
91
91
 
92
92
  /**
@@ -98,15 +98,15 @@ exports.bindUserCommand = bindUserCommand;
98
98
  const scaleProfileCommand = (user, heightInCentimetres) => {
99
99
  const heightCm = 175;
100
100
  const height = heightInCentimetres ? [heightCm & 0xff, 0xe0 + (heightCm >> 8)] : [heightCm * 10 & 0xff, 0xd0 | heightCm * 10 >> 8];
101
- return toHex([0x51, 0x17, user, 0x01, 30, ...height, 0x00, 0x00, 0x00, 0x00, 0x00]);
101
+ return (0, _bytesToHex.bytesToHex)([0x51, 0x17, user, 0x01, 30, ...height, 0x00, 0x00, 0x00, 0x00, 0x00]);
102
102
  };
103
103
 
104
104
  /** `40 00`: tracker configuration, leaving stored data in place. */
105
105
  exports.scaleProfileCommand = scaleProfileCommand;
106
- const trackerConfigurationCommand = () => toHex([0x40, 0x00]);
106
+ const trackerConfigurationCommand = () => (0, _bytesToHex.bytesToHex)([0x40, 0x00]);
107
107
 
108
108
  /** `05`: tracker user data - 70 kg and 1.75 m, the same defaults as the scale profile. */
109
109
  exports.trackerConfigurationCommand = trackerConfigurationCommand;
110
- const trackerUserDataCommand = () => toHex([0x05, 0x0a, 0x00, ...[7000 & 0xff, 7000 >> 8], 0x00, 0xfe, 175 & 0xff, 0xe0]);
110
+ const trackerUserDataCommand = () => (0, _bytesToHex.bytesToHex)([0x05, 0x0a, 0x00, ...[7000 & 0xff, 7000 >> 8], 0x00, 0xfe, 175 & 0xff, 0xe0]);
111
111
  exports.trackerUserDataCommand = trackerUserDataCommand;
112
112
  //# sourceMappingURL=transtek-command.protocol.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_hexToByte","require","_le32FromHex","sig16","assigned","TRANSTEK_SERVICES","exports","bloodPressureA2","bloodPressureA3","scaleA2","scaleA3","tracker","TRANSTEK_CHARACTERISTICS","command","answer","bloodPressure","weightA2","weightA3","ANSWER","password","random","userCount","userInfo","EPOCH_UTC_MS","Date","UTC","toHex","bytes","map","value","toString","padStart","le32","u32","frame","index","le32FromHex","u16","hexToByte","opcode","transtekTime","seconds","wall","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","transtekSeconds","now","Math","floor","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","readPassword","readRandom","accountIdCommand","user","verificationCommand","setTimeCommand","endSessionCommand","bindUserCommand","name","Array","from","slice","char","charCodeAt","length","fill","scaleProfileCommand","heightInCentimetres","heightCm","height","trackerConfigurationCommand","trackerUserDataCommand"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,KAAK,GAAIC,QAAgB,IAC7B,OAAOA,QAAQ,8BAA8B;AAExC,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,eAAe,EAAEJ,KAAK,CAAC,MAAM,CAAC;EAC9BK,eAAe,EAAEL,KAAK,CAAC,MAAM,CAAC;EAC9BM,OAAO,EAAEN,KAAK,CAAC,MAAM,CAAC;EACtBO,OAAO,EAAEP,KAAK,CAAC,MAAM,CAAC;EACtBQ,OAAO,EAAER,KAAK,CAAC,MAAM;AACvB,CAAU;AAEH,MAAMS,wBAAwB,GAAAN,OAAA,CAAAM,wBAAA,GAAG;EACtCC,OAAO,EAAEV,KAAK,CAAC,MAAM,CAAC;EACtBW,MAAM,EAAEX,KAAK,CAAC,MAAM,CAAC;EACrBY,aAAa,EAAEZ,KAAK,CAAC,MAAM,CAAC;EAC5Ba,QAAQ,EAAEb,KAAK,CAAC,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AAG,GAAG;EAEpB,MAAMC,MAAM,GAAGF,mBAAmB,GAC9B,CAACC,QAAQ,GAAG,IAAI,EAAE,IAAI,IAAIA,QAAQ,IAAI,CAAC,CAAC,CAAC,GACzC,CAAEA,QAAQ,GAAG,EAAE,GAAI,IAAI,EAAE,IAAI,GAAKA,QAAQ,GAAG,EAAE,IAAK,CAAE,CAAC;EAE3D,OAAOnD,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAEoC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAGgB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACrF,CAAC;;AAED;AAAAxE,OAAA,CAAAqE,mBAAA,GAAAA,mBAAA;AACO,MAAMI,2BAA2B,GAAGA,CAAA,KAAgBrD,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;;AAE9E;AAAApB,OAAA,CAAAyE,2BAAA,GAAAA,2BAAA;AACO,MAAMC,sBAAsB,GAAGA,CAAA,KACpCtD,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC;AAACpB,OAAA,CAAA0E,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_bytesToHex","require","_hexToByte","_le32FromHex","_sigUuid","TRANSTEK_SERVICES","exports","bloodPressureA2","sigUuid","bloodPressureA3","scaleA2","scaleA3","tracker","TRANSTEK_CHARACTERISTICS","command","answer","bloodPressure","weightA2","weightA3","ANSWER","password","random","userCount","userInfo","EPOCH_UTC_MS","Date","UTC","le32","value","u32","frame","index","le32FromHex","u16","hexToByte","opcode","transtekTime","seconds","wall","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","transtekSeconds","now","Math","floor","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","readPassword","readRandom","accountIdCommand","user","bytesToHex","verificationCommand","setTimeCommand","endSessionCommand","bindUserCommand","name","bytes","Array","from","slice","char","charCodeAt","length","fill","scaleProfileCommand","heightInCentimetres","heightCm","height","trackerConfigurationCommand","trackerUserDataCommand"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AALA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,eAAe,EAAE,IAAAC,gBAAO,EAAC,MAAM,CAAC;EAChCC,eAAe,EAAE,IAAAD,gBAAO,EAAC,MAAM,CAAC;EAChCE,OAAO,EAAE,IAAAF,gBAAO,EAAC,MAAM,CAAC;EACxBG,OAAO,EAAE,IAAAH,gBAAO,EAAC,MAAM,CAAC;EACxBI,OAAO,EAAE,IAAAJ,gBAAO,EAAC,MAAM;AACzB,CAAU;AAEH,MAAMK,wBAAwB,GAAAP,OAAA,CAAAO,wBAAA,GAAG;EACtCC,OAAO,EAAE,IAAAN,gBAAO,EAAC,MAAM,CAAC;EACxBO,MAAM,EAAE,IAAAP,gBAAO,EAAC,MAAM,CAAC;EACvBQ,aAAa,EAAE,IAAAR,gBAAO,EAAC,MAAM,CAAC;EAC9BS,QAAQ,EAAE,IAAAT,gBAAO,EAAC,MAAM,CAAC;EACzBU,QAAQ,EAAE,IAAAV,gBAAO,EAAC,MAAM,CAAC;EACzBI,OAAO,EAAE,IAAAJ,gBAAO,EAAC,MAAM;AACzB,CAAU;;AAEV;AACO,MAAMW,MAAM,GAAAb,OAAA,CAAAa,MA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GAAGkB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC1F,CAAC;;AAED;AAAAtE,OAAA,CAAAmE,mBAAA,GAAAA,mBAAA;AACO,MAAMI,2BAA2B,GAAGA,CAAA,KAAgB,IAAAlB,sBAAU,EAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;;AAEnF;AAAArD,OAAA,CAAAuE,2BAAA,GAAAA,2BAAA;AACO,MAAMC,sBAAsB,GAAGA,CAAA,KACpC,IAAAnB,sBAAU,EAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC;AAACrD,OAAA,CAAAwE,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -35,7 +35,6 @@ const S9_SUPPORTED_MEASUREMENTS = [_core.MeasurementTypeKey.stepCount, _core.Mea
35
35
  class TrasenseS9Device extends _btManagedDevice.BTManagedDevice {
36
36
  mainServices = s9Services;
37
37
  stuckDataTimeout = 120_000;
38
- onStreamStart = undefined;
39
38
  frameReader = new _s9FrameReader.S9FrameReader();
40
39
  constructor(device, params) {
41
40
  super(device, params);
@@ -66,9 +65,6 @@ class TrasenseS9Device extends _btManagedDevice.BTManagedDevice {
66
65
  getSupportedMeasurementTypeKeys() {
67
66
  return [...S9_SUPPORTED_MEASUREMENTS];
68
67
  }
69
- handleSuccessResult() {
70
- return;
71
- }
72
68
  }
73
69
  exports.TrasenseS9Device = TrasenseS9Device;
74
70
  //# sourceMappingURL=s9.device.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_caseType","_btManagedDevice","_s9FrameReader","_s9CommandSequencer","acceptProtocolFrames","caseValuePosition","cases","caseValue","caseType","CaseType","OTHER","parseDefinitions","description","s9Services","uuid","TRASENSE_S9_SERVICE","writeUuid","mainCommandUuid","TRASENSE_S9_WRITE","monitorUuids","TRASENSE_S9_NOTIFY","parsingModel","S9_SUPPORTED_MEASUREMENTS","MeasurementTypeKey","stepCount","heartRate","TrasenseS9Device","BTManagedDevice","mainServices","stuckDataTimeout","onStreamStart","undefined","frameReader","S9FrameReader","constructor","device","params","deviceData","manufacturerData","createCommandSequencer","S9CommandSequencer","clockSync","write","serviceUuid","characteristicUuid","onResult","result","onConnectionEvent","event","onIdentity","_firmware","hardwareAddress","model","onError","error","onComplete","setTimeout","disconnect","getSupportedMeasurementTypeKeys","handleSuccessResult","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/trasense/s9.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAKA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,MAAMK,oBAAoB,GAAG;EAC3BC,iBAAiB,EAAE,EAAE;EACrBC,KAAK,EAAE,CACL;IACEC,SAAS,EAAE,EAAE;IACbC,QAAQ,EAAEC,kBAAQ,CAACC,KAAK;IACxBC,gBAAgB,EAAE,EAAE;IACpBC,WAAW,EAAE;EACf,CAAC;AAEL,CAAC;AAED,MAAMC,UAAsB,GAAG,CAC7B;EACEC,IAAI,EAAEC,uCAAmB;EACzBC,SAAS,EAAE;IACTF,IAAI,EAAEC,uCAAmB;IACzBE,eAAe,EAAEC;EACnB,CAAC;EACDC,YAAY,EAAE,CACZ;IAAEL,IAAI,EAAEM,sCAAkB;IAAEC,YAAY,EAAEjB;EAAqB,CAAC;AAEpE,CAAC,CACF;AAED,MAAMkB,yBAAyB,GAAG,CAChCC,wBAAkB,CAACC,SAAS,EAC5BD,wBAAkB,CAACE,SAAS,CAC7B;;AAED;AACO,MAAMC,gBAAgB,SAASC,gCAAe,CAAgC;EACzEC,YAA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caseType","_btManagedDevice","_s9FrameReader","_s9CommandSequencer","acceptProtocolFrames","caseValuePosition","cases","caseValue","caseType","CaseType","OTHER","parseDefinitions","description","s9Services","uuid","TRASENSE_S9_SERVICE","writeUuid","mainCommandUuid","TRASENSE_S9_WRITE","monitorUuids","TRASENSE_S9_NOTIFY","parsingModel","S9_SUPPORTED_MEASUREMENTS","MeasurementTypeKey","stepCount","heartRate","TrasenseS9Device","BTManagedDevice","mainServices","stuckDataTimeout","frameReader","S9FrameReader","constructor","device","params","deviceData","manufacturerData","createCommandSequencer","S9CommandSequencer","clockSync","write","serviceUuid","characteristicUuid","onResult","result","onConnectionEvent","event","onIdentity","_firmware","hardwareAddress","model","onError","error","onComplete","setTimeout","disconnect","getSupportedMeasurementTypeKeys","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/trasense/s9.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAKA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAOA,MAAMK,oBAAoB,GAAG;EAC3BC,iBAAiB,EAAE,EAAE;EACrBC,KAAK,EAAE,CACL;IACEC,SAAS,EAAE,EAAE;IACbC,QAAQ,EAAEC,kBAAQ,CAACC,KAAK;IACxBC,gBAAgB,EAAE,EAAE;IACpBC,WAAW,EAAE;EACf,CAAC;AAEL,CAAC;AAED,MAAMC,UAAsB,GAAG,CAC7B;EACEC,IAAI,EAAEC,uCAAmB;EACzBC,SAAS,EAAE;IACTF,IAAI,EAAEC,uCAAmB;IACzBE,eAAe,EAAEC;EACnB,CAAC;EACDC,YAAY,EAAE,CACZ;IAAEL,IAAI,EAAEM,sCAAkB;IAAEC,YAAY,EAAEjB;EAAqB,CAAC;AAEpE,CAAC,CACF;AAED,MAAMkB,yBAAyB,GAAG,CAChCC,wBAAkB,CAACC,SAAS,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
@@ -24,7 +24,6 @@ const acceptEverything = {
24
24
  class VerovalActivityDevice extends _btManagedDevice.BTManagedDevice {
25
25
  stuckDataTimeout = STUCK_TIMEOUT_MS;
26
26
  preferredMtu = PREFERRED_MTU;
27
- onStreamStart = undefined;
28
27
  mainServices = [{
29
28
  uuid: _verovalActivitySequencer.VEROVAL_ACTIVITY_SERVICE,
30
29
  monitorUuids: [{
@@ -49,9 +48,6 @@ class VerovalActivityDevice extends _btManagedDevice.BTManagedDevice {
49
48
  super(device, params);
50
49
  this.frameReader = new _verovalActivityFrameReader.VerovalActivityFrameReader();
51
50
  }
52
- handleSuccessResult() {
53
- return;
54
- }
55
51
  }
56
52
  exports.VerovalActivityDevice = VerovalActivityDevice;
57
53
  //# sourceMappingURL=veroval.activity-device.js.map