@ovok/native 1.10.9 → 1.10.11

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 (654) hide show
  1. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +34 -1
  2. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  3. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +47 -0
  4. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
  5. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-aoj-variants.js +137 -0
  6. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-aoj-variants.js.map +1 -0
  7. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js +15 -1
  8. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
  9. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +119 -0
  10. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
  11. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js +3 -2
  12. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  13. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js +227 -0
  14. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js.map +1 -0
  15. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-joytech-variants.js +95 -0
  16. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-joytech-variants.js.map +1 -0
  17. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-jumper-variants.js +149 -0
  18. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-jumper-variants.js.map +1 -0
  19. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js +1007 -0
  20. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -0
  21. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +173 -0
  22. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
  23. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-variants.js +1093 -0
  24. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-variants.js.map +1 -0
  25. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js +320 -0
  26. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -0
  27. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +113 -0
  28. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
  29. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +58 -27
  30. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  31. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +2 -1
  32. package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  33. package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js +39 -0
  34. package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
  35. package/lib/commonjs/modules/bt-management/constants/aoj-device-variants.js +112 -0
  36. package/lib/commonjs/modules/bt-management/constants/aoj-device-variants.js.map +1 -0
  37. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +84 -0
  38. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
  39. package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js +101 -0
  40. package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
  41. package/lib/commonjs/modules/bt-management/constants/device-variants.js +256 -0
  42. package/lib/commonjs/modules/bt-management/constants/device-variants.js.map +1 -0
  43. package/lib/commonjs/modules/bt-management/constants/famidoc-device-variants.js +190 -0
  44. package/lib/commonjs/modules/bt-management/constants/famidoc-device-variants.js.map +1 -0
  45. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js +9 -1
  46. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  47. package/lib/commonjs/modules/bt-management/constants/joytech-device-variants.js +80 -0
  48. package/lib/commonjs/modules/bt-management/constants/joytech-device-variants.js.map +1 -0
  49. package/lib/commonjs/modules/bt-management/constants/jumper-device-variants.js +115 -0
  50. package/lib/commonjs/modules/bt-management/constants/jumper-device-variants.js.map +1 -0
  51. package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js +807 -0
  52. package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js.map +1 -0
  53. package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js +144 -0
  54. package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
  55. package/lib/commonjs/modules/bt-management/constants/transtek-device-variants.js +890 -0
  56. package/lib/commonjs/modules/bt-management/constants/transtek-device-variants.js.map +1 -0
  57. package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js +93 -0
  58. package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
  59. package/lib/commonjs/modules/bt-management/index.js +20 -0
  60. package/lib/commonjs/modules/bt-management/index.js.map +1 -1
  61. package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js +33 -0
  62. package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
  63. package/lib/commonjs/modules/bt-management/services/custom/define-custom-device.js +7 -1
  64. package/lib/commonjs/modules/bt-management/services/custom/define-custom-device.js.map +1 -1
  65. package/lib/commonjs/modules/bt-management/services/device-classes.js +44 -1
  66. package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
  67. package/lib/commonjs/modules/bt-management/services/device-secrets.js +68 -0
  68. package/lib/commonjs/modules/bt-management/services/device-secrets.js.map +1 -0
  69. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +61 -0
  70. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
  71. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +113 -0
  72. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
  73. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +77 -0
  74. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
  75. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +41 -0
  76. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -0
  77. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js +45 -0
  78. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -0
  79. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +140 -0
  80. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -0
  81. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +138 -0
  82. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -0
  83. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +12 -7
  84. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  85. package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js +27 -1
  86. package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
  87. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +4 -4
  88. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  89. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +19 -3
  90. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  91. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +86 -0
  92. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
  93. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +155 -0
  94. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
  95. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +33 -0
  96. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
  97. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +87 -0
  98. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
  99. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +185 -0
  100. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
  101. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +86 -0
  102. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
  103. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +12 -4
  104. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  105. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js +49 -0
  106. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -0
  107. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +163 -0
  108. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -0
  109. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +95 -0
  110. package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -0
  111. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js +40 -0
  112. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -0
  113. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js +162 -0
  114. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -0
  115. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js +63 -0
  116. package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -0
  117. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +56 -0
  118. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -0
  119. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js +67 -0
  120. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -0
  121. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js +60 -0
  122. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -0
  123. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js +89 -0
  124. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -0
  125. package/lib/commonjs/modules/bt-management/services/devices/polling-command-sequencer.js +22 -8
  126. package/lib/commonjs/modules/bt-management/services/devices/polling-command-sequencer.js.map +1 -1
  127. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +13 -2
  128. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
  129. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +153 -0
  130. package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -0
  131. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +50 -0
  132. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
  133. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +127 -0
  134. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
  135. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js +181 -0
  136. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
  137. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +139 -0
  138. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
  139. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js +71 -0
  140. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -0
  141. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +112 -0
  142. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -0
  143. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js +132 -0
  144. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -0
  145. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js +145 -0
  146. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js.map +1 -0
  147. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js +91 -0
  148. package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js.map +1 -0
  149. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +90 -0
  150. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
  151. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +202 -0
  152. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
  153. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js +137 -0
  154. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
  155. package/lib/commonjs/modules/bt-management/types/integrated-devices.js +33 -0
  156. package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
  157. package/lib/commonjs/modules/bt-management/utils/device-title.js +5 -1
  158. package/lib/commonjs/modules/bt-management/utils/device-title.js.map +1 -1
  159. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +34 -1
  160. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  161. package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +45 -0
  162. package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
  163. package/lib/module/modules/bt-device/constants/supported-device-catalog-aoj-variants.js +135 -0
  164. package/lib/module/modules/bt-device/constants/supported-device-catalog-aoj-variants.js.map +1 -0
  165. package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js +15 -1
  166. package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
  167. package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +117 -0
  168. package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
  169. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js +3 -2
  170. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  171. package/lib/module/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js +225 -0
  172. package/lib/module/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js.map +1 -0
  173. package/lib/module/modules/bt-device/constants/supported-device-catalog-joytech-variants.js +93 -0
  174. package/lib/module/modules/bt-device/constants/supported-device-catalog-joytech-variants.js.map +1 -0
  175. package/lib/module/modules/bt-device/constants/supported-device-catalog-jumper-variants.js +147 -0
  176. package/lib/module/modules/bt-device/constants/supported-device-catalog-jumper-variants.js.map +1 -0
  177. package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js +1005 -0
  178. package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -0
  179. package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +171 -0
  180. package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
  181. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-variants.js +1091 -0
  182. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-variants.js.map +1 -0
  183. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js +317 -0
  184. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -0
  185. package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +111 -0
  186. package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
  187. package/lib/module/modules/bt-device/constants/supported-devices.js +59 -28
  188. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  189. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +2 -1
  190. package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
  191. package/lib/module/modules/bt-management/constants/and-medical-device-variants.js +37 -0
  192. package/lib/module/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
  193. package/lib/module/modules/bt-management/constants/aoj-device-variants.js +110 -0
  194. package/lib/module/modules/bt-management/constants/aoj-device-variants.js.map +1 -0
  195. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +82 -0
  196. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
  197. package/lib/module/modules/bt-management/constants/cofoe-device-variants.js +99 -0
  198. package/lib/module/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
  199. package/lib/module/modules/bt-management/constants/device-variants.js +253 -0
  200. package/lib/module/modules/bt-management/constants/device-variants.js.map +1 -0
  201. package/lib/module/modules/bt-management/constants/famidoc-device-variants.js +188 -0
  202. package/lib/module/modules/bt-management/constants/famidoc-device-variants.js.map +1 -0
  203. package/lib/module/modules/bt-management/constants/integrated-devices-map.js +9 -1
  204. package/lib/module/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  205. package/lib/module/modules/bt-management/constants/joytech-device-variants.js +78 -0
  206. package/lib/module/modules/bt-management/constants/joytech-device-variants.js.map +1 -0
  207. package/lib/module/modules/bt-management/constants/jumper-device-variants.js +113 -0
  208. package/lib/module/modules/bt-management/constants/jumper-device-variants.js.map +1 -0
  209. package/lib/module/modules/bt-management/constants/standard-device-variants.js +804 -0
  210. package/lib/module/modules/bt-management/constants/standard-device-variants.js.map +1 -0
  211. package/lib/module/modules/bt-management/constants/taidoc-device-variants.js +142 -0
  212. package/lib/module/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
  213. package/lib/module/modules/bt-management/constants/transtek-device-variants.js +888 -0
  214. package/lib/module/modules/bt-management/constants/transtek-device-variants.js.map +1 -0
  215. package/lib/module/modules/bt-management/constants/yonker-device-variants.js +91 -0
  216. package/lib/module/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
  217. package/lib/module/modules/bt-management/index.js +2 -0
  218. package/lib/module/modules/bt-management/index.js.map +1 -1
  219. package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js +33 -0
  220. package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
  221. package/lib/module/modules/bt-management/services/custom/define-custom-device.js +7 -1
  222. package/lib/module/modules/bt-management/services/custom/define-custom-device.js.map +1 -1
  223. package/lib/module/modules/bt-management/services/device-classes.js +44 -1
  224. package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
  225. package/lib/module/modules/bt-management/services/device-secrets.js +59 -0
  226. package/lib/module/modules/bt-management/services/device-secrets.js.map +1 -0
  227. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +57 -0
  228. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
  229. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +106 -0
  230. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
  231. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +74 -0
  232. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
  233. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +37 -0
  234. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -0
  235. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js +41 -0
  236. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -0
  237. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +123 -0
  238. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -0
  239. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +134 -0
  240. package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -0
  241. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +12 -7
  242. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  243. package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js +27 -1
  244. package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
  245. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +4 -4
  246. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  247. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +19 -3
  248. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  249. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +82 -0
  250. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
  251. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +148 -0
  252. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
  253. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +30 -0
  254. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
  255. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +83 -0
  256. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
  257. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +173 -0
  258. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
  259. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +78 -0
  260. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
  261. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +12 -4
  262. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  263. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js +45 -0
  264. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -0
  265. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +149 -0
  266. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -0
  267. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +91 -0
  268. package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -0
  269. package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js +36 -0
  270. package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -0
  271. package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js +150 -0
  272. package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -0
  273. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js +60 -0
  274. package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -0
  275. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +52 -0
  276. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -0
  277. package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js +62 -0
  278. package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -0
  279. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js +57 -0
  280. package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -0
  281. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +83 -0
  282. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -0
  283. package/lib/module/modules/bt-management/services/devices/polling-command-sequencer.js +22 -8
  284. package/lib/module/modules/bt-management/services/devices/polling-command-sequencer.js.map +1 -1
  285. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +6 -2
  286. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
  287. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +149 -0
  288. package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -0
  289. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +46 -0
  290. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
  291. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +114 -0
  292. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
  293. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +168 -0
  294. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
  295. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +136 -0
  296. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
  297. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js +67 -0
  298. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -0
  299. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +94 -0
  300. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -0
  301. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js +125 -0
  302. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -0
  303. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js +142 -0
  304. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js.map +1 -0
  305. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.session.js +85 -0
  306. package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.session.js.map +1 -0
  307. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +86 -0
  308. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
  309. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +186 -0
  310. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
  311. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +133 -0
  312. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
  313. package/lib/module/modules/bt-management/types/custom-device-definition.js +2 -0
  314. package/lib/module/modules/bt-management/types/custom-device-definition.js.map +1 -1
  315. package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
  316. package/lib/module/modules/bt-management/types/integrated-devices.js +33 -0
  317. package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
  318. package/lib/module/modules/bt-management/utils/device-title.js +5 -1
  319. package/lib/module/modules/bt-management/utils/device-title.js.map +1 -1
  320. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
  322. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts +5 -0
  324. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +15 -1
  326. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
  328. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts +5 -0
  331. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts +5 -0
  333. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts +5 -0
  335. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts +9 -0
  337. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
  339. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts +5 -0
  341. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts +15 -0
  343. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
  345. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +8 -0
  347. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  348. package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  349. package/lib/typescript/commonjs/src/modules/bt-management/constants/and-medical-device-variants.d.ts +5 -0
  350. package/lib/typescript/commonjs/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/src/modules/bt-management/constants/aoj-device-variants.d.ts +5 -0
  352. package/lib/typescript/commonjs/src/modules/bt-management/constants/aoj-device-variants.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
  354. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
  355. package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
  356. package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts +23 -0
  358. package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/src/modules/bt-management/constants/famidoc-device-variants.d.ts +5 -0
  360. package/lib/typescript/commonjs/src/modules/bt-management/constants/famidoc-device-variants.d.ts.map +1 -0
  361. package/lib/typescript/commonjs/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/src/modules/bt-management/constants/joytech-device-variants.d.ts +5 -0
  363. package/lib/typescript/commonjs/src/modules/bt-management/constants/joytech-device-variants.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/modules/bt-management/constants/jumper-device-variants.d.ts +5 -0
  365. package/lib/typescript/commonjs/src/modules/bt-management/constants/jumper-device-variants.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/modules/bt-management/constants/standard-device-variants.d.ts +10 -0
  367. package/lib/typescript/commonjs/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
  369. package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
  370. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-device-variants.d.ts +10 -0
  371. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-device-variants.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
  373. package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +3 -0
  375. package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
  376. package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
  377. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/define-custom-device.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +43 -0
  379. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/src/modules/bt-management/services/device-secrets.d.ts +22 -0
  381. package/lib/typescript/commonjs/src/modules/bt-management/services/device-secrets.d.ts.map +1 -0
  382. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
  383. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
  384. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
  385. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
  386. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
  387. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
  388. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +17 -0
  389. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -0
  390. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +16 -0
  391. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -0
  392. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +54 -0
  393. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -0
  394. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts +36 -0
  395. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts.map +1 -0
  396. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +1 -1
  397. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +3 -0
  399. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  401. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
  403. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  404. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
  405. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
  407. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
  409. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
  410. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
  411. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
  413. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
  415. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -2
  417. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  418. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +16 -0
  419. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -0
  420. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +56 -0
  421. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts +34 -0
  423. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts.map +1 -0
  424. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +16 -0
  425. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -0
  426. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +43 -0
  427. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -0
  428. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts +23 -0
  429. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts.map +1 -0
  430. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +18 -0
  431. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +32 -0
  433. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -0
  434. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts +22 -0
  435. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts.map +1 -0
  436. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +37 -0
  437. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -0
  438. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts +4 -2
  439. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts +2 -1
  441. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts +7 -0
  443. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -0
  444. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
  445. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
  446. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
  447. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
  448. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
  449. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
  450. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
  451. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
  452. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +21 -0
  453. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -0
  454. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +51 -0
  455. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -0
  456. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts +33 -0
  457. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts.map +1 -0
  458. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts +49 -0
  459. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts.map +1 -0
  460. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts +39 -0
  461. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts.map +1 -0
  462. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
  463. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
  464. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
  465. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
  466. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
  467. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
  468. package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts +4 -2
  469. package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +2 -1
  471. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-service-spec.d.ts +6 -0
  473. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-service-spec.d.ts.map +1 -1
  474. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +6 -0
  475. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +33 -0
  477. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +34 -1
  479. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  480. package/lib/typescript/commonjs/src/modules/bt-management/types/service.type.d.ts +6 -0
  481. package/lib/typescript/commonjs/src/modules/bt-management/types/service.type.d.ts.map +1 -1
  482. package/lib/typescript/commonjs/src/modules/bt-management/types/write-characteristic.d.ts +2 -0
  483. package/lib/typescript/commonjs/src/modules/bt-management/types/write-characteristic.d.ts.map +1 -1
  484. package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts +2 -1
  485. package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts.map +1 -1
  486. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
  487. package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  488. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
  489. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
  490. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts +5 -0
  491. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts.map +1 -0
  492. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +15 -1
  493. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
  494. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
  495. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
  496. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  497. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts +5 -0
  498. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts.map +1 -0
  499. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts +5 -0
  500. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts.map +1 -0
  501. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts +5 -0
  502. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts.map +1 -0
  503. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts +9 -0
  504. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -0
  505. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
  506. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
  507. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts +5 -0
  508. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts.map +1 -0
  509. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts +15 -0
  510. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -0
  511. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
  512. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
  513. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +8 -0
  514. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  515. package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
  516. package/lib/typescript/module/src/modules/bt-management/constants/and-medical-device-variants.d.ts +5 -0
  517. package/lib/typescript/module/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
  518. package/lib/typescript/module/src/modules/bt-management/constants/aoj-device-variants.d.ts +5 -0
  519. package/lib/typescript/module/src/modules/bt-management/constants/aoj-device-variants.d.ts.map +1 -0
  520. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
  521. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
  522. package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
  523. package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
  524. package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts +23 -0
  525. package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts.map +1 -0
  526. package/lib/typescript/module/src/modules/bt-management/constants/famidoc-device-variants.d.ts +5 -0
  527. package/lib/typescript/module/src/modules/bt-management/constants/famidoc-device-variants.d.ts.map +1 -0
  528. package/lib/typescript/module/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  529. package/lib/typescript/module/src/modules/bt-management/constants/joytech-device-variants.d.ts +5 -0
  530. package/lib/typescript/module/src/modules/bt-management/constants/joytech-device-variants.d.ts.map +1 -0
  531. package/lib/typescript/module/src/modules/bt-management/constants/jumper-device-variants.d.ts +5 -0
  532. package/lib/typescript/module/src/modules/bt-management/constants/jumper-device-variants.d.ts.map +1 -0
  533. package/lib/typescript/module/src/modules/bt-management/constants/standard-device-variants.d.ts +10 -0
  534. package/lib/typescript/module/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -0
  535. package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
  536. package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
  537. package/lib/typescript/module/src/modules/bt-management/constants/transtek-device-variants.d.ts +10 -0
  538. package/lib/typescript/module/src/modules/bt-management/constants/transtek-device-variants.d.ts.map +1 -0
  539. package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
  540. package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
  541. package/lib/typescript/module/src/modules/bt-management/index.d.ts +3 -0
  542. package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
  543. package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
  544. package/lib/typescript/module/src/modules/bt-management/services/custom/define-custom-device.d.ts.map +1 -1
  545. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +43 -0
  546. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  547. package/lib/typescript/module/src/modules/bt-management/services/device-secrets.d.ts +22 -0
  548. package/lib/typescript/module/src/modules/bt-management/services/device-secrets.d.ts.map +1 -0
  549. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
  550. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
  551. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
  552. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
  553. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
  554. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
  555. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +17 -0
  556. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -0
  557. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +16 -0
  558. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -0
  559. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +54 -0
  560. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -0
  561. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts +36 -0
  562. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts.map +1 -0
  563. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +1 -1
  564. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  565. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +3 -0
  566. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
  567. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
  568. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  569. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
  570. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  571. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
  572. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
  573. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
  574. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
  575. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
  576. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
  577. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
  578. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
  579. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
  580. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
  581. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
  582. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
  583. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -2
  584. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  585. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +16 -0
  586. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -0
  587. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +56 -0
  588. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -0
  589. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts +34 -0
  590. package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts.map +1 -0
  591. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +16 -0
  592. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -0
  593. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +43 -0
  594. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -0
  595. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts +23 -0
  596. package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts.map +1 -0
  597. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +18 -0
  598. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -0
  599. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +32 -0
  600. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -0
  601. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts +22 -0
  602. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts.map +1 -0
  603. package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +37 -0
  604. package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -0
  605. package/lib/typescript/module/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts +4 -2
  606. package/lib/typescript/module/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts.map +1 -1
  607. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts +2 -1
  608. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts.map +1 -1
  609. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts +7 -0
  610. package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -0
  611. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
  612. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
  613. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
  614. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
  615. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
  616. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
  617. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
  618. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
  619. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +21 -0
  620. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -0
  621. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +51 -0
  622. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -0
  623. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts +33 -0
  624. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts.map +1 -0
  625. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts +49 -0
  626. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts.map +1 -0
  627. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts +39 -0
  628. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts.map +1 -0
  629. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
  630. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
  631. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
  632. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
  633. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
  634. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
  635. package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts +4 -2
  636. package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
  637. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +2 -1
  638. package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
  639. package/lib/typescript/module/src/modules/bt-management/types/custom-service-spec.d.ts +6 -0
  640. package/lib/typescript/module/src/modules/bt-management/types/custom-service-spec.d.ts.map +1 -1
  641. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +6 -0
  642. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  643. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +33 -0
  644. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  645. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +34 -1
  646. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  647. package/lib/typescript/module/src/modules/bt-management/types/service.type.d.ts +6 -0
  648. package/lib/typescript/module/src/modules/bt-management/types/service.type.d.ts.map +1 -1
  649. package/lib/typescript/module/src/modules/bt-management/types/write-characteristic.d.ts +2 -0
  650. package/lib/typescript/module/src/modules/bt-management/types/write-characteristic.d.ts.map +1 -1
  651. package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts +2 -1
  652. package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts.map +1 -1
  653. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
  654. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_caseType","_createFrameValidator","_parseMeasurement","_rejectCustomReading","_bp2Files","_btManagedDevice","_lepuCommandBuilder","_lepuEcgTransfer","_lepuFrameReader","_tmbCommandSequencer","_tmbFrameReader","_viatomBp3Files","_viatomEcgFiles","_customLepuSequencer","CustomDevice","BTManagedDevice","reportedHistoryIds","Set","validators","Map","sessionAggregates","constructor","device","params","definition","oneReadingPerConnection","frameHandler","createFrameHandler","sessionPolicy","deviceData","clockSync","deliveredFileNames","deliveredEcgFileNames","selectedLepu","lepu","selectLepu","manufacturerData","undefined","mainServices","manufacturerDataProtocol","filter","service","uuid","write","serviceUuid","frameReader","stuckDataTimeout","reportsBondedEvent","preferredMtu","declareLepuProtocol","declareTmbProtocol","frames","forEach","frame","set","createFrameValidator","tmb","TmbFrameReader","createCommandSequencer","TmbCommandSequencer","protocol","LepuFrameReader","startBytes","fileTransfer","clear","LepuEcgTransferSequencer","characteristicUuid","builder","LepuCommandBuilder","rejectEncryptionAtBytes","expectedDeviceTypes","onIdentified","onRefused","onIdentityRefused","onFile","reportViatomEcgFile","reportViatomBp2File","reportViatomBp3File","skipFiles","acceptFile","name","ecgFileDecoder","test","pollCommand","pollIntervalMs","afterTransfer","build","onError","reason","Error","onProgress","progress","onConnectionEvent","kind","current","receivedBytes","total","totalBytes","createLepuSequencer","file","decoded","decodeViatomEcgRecording","content","samples","length","onResult","measurementTypeKey","MeasurementTypeKey","ecg","caseType","CaseType","RESULT","diagramPoints","duration","recordedAt","recordedAtFromViatomFileName","recordingId","decodeBP2File","has","add","decodeViatomBp3File","info","recordLepuIdentity","id","validatePackage","pkg","validate","get","String","toLowerCase","handleDependentResult","data","parsingCase","requiresStream","isMeasuring","OTHER","handleFrame","parsedData","handlerOnly","captureSessionSample","STREAM","shouldReportDependentResult","reportFrame","error","_data","handleSuccessResult","successResult","collectedValues","emit","reading","handleMeasurementEnd","policy","aggregates","values","sessionStartedAt","aggregate","count","minSamples","summary","sample","Object","fromEntries","sums","entries","map","sessionAverage","decorateReading","value","decimals","fields","Math","trunc","Number","toFixed","measurements","frameRecordedAt","Date","measurement","createMeasurement","rejection","measurementRejection","key","existing","readingFields","fieldNames","recordOffset","repeated","repeatedRecords","report","records","floor","from","recordBytes","record","parseMeasurement","discard","reportMeasurement","discardedReadingError","parsedFields","rejectCustomReading","find","message","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/custom/custom.device.ts"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAcA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAA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seType","_createFrameValidator","_parseMeasurement","_rejectCustomReading","_bp2Files","_btManagedDevice","_lepuCommandBuilder","_lepuEcgTransfer","_lepuFrameReader","_tmbCommandSequencer","_tmbFrameReader","_viatomBp3Files","_viatomEcgFiles","_customLepuSequencer","CustomDevice","BTManagedDevice","reportedHistoryIds","Set","validators","Map","sessionAggregates","constructor","device","params","definition","oneReadingPerConnection","frameHandler","createFrameHandler","sessionPolicy","deviceData","clockSync","deliveredFileNames","deliveredEcgFileNames","selectedLepu","lepu","selectLepu","manufacturerData","undefined","mainServices","manufacturerDataProtocol","filter","service","uuid","write","serviceUuid","frameReader","stuckDataTimeout","reportsBondedEvent","preferredMtu","declareLepuProtocol","declareTmbProtocol","frames","forEach","frame","set","createFrameValidator","tmb","TmbFrameReader","createCommandSequencer","TmbCommandSequencer","protocol","LepuFrameReader","startBytes","fileTransfer","clear","LepuEcgTransferSequencer","characteristicUuid","builder","LepuCommandBuilder","rejectEncryptionAtBytes","expectedDeviceTypes","onIdentified","onRefused","onIdentityRefused","onFile","reportViatomEcgFile","reportViatomBp2File","reportViatomBp3File","skipFiles","acceptFile","name","ecgFileDecoder","test","pollCommand","pollIntervalMs","afterTransfer","build","onError","reason","Error","onProgress","progress","onConnectionEvent","kind","current","receivedBytes","total","totalBytes","createLepuSequencer","file","decoded","decodeViatomEcgRecording","content","samples","length","onResult","measurementTypeKey","MeasurementTypeKey","ecg","caseType","CaseType","RESULT","diagramPoints","duration","recordedAt","recordedAtFromViatomFileName","recordingId","decodeBP2File","has","add","decodeViatomBp3File","info","recordLepuIdentity","id","validatePackage","pkg","validate","get","String","toLowerCase","handleDependentResult","data","parsingCase","requiresStream","isMeasuring","OTHER","handleFrame","parsedData","handlerOnly","captureSessionSample","STREAM","shouldReportDependentResult","reportFrame","error","_data","handleSuccessResult","successResult","collectedValues","emit","reading","handleMeasurementEnd","policy","aggregates","values","sessionStartedAt","aggregate","count","minSamples","summary","sample","Object","fromEntries","sums","entries","map","sessionAverage","decorateReading","value","decimals","fields","Math","trunc","Number","toFixed","measurements","frameRecordedAt","Date","measurement","createMeasurement","rejection","measurementRejection","key","existing","readingFields","fieldNames","recordOffset","decorate","repeated","repeatedRecords","report","records","floor","from","recordBytes","record","parseMeasurement","discard","reportMeasurement","discardedReadingError","parsedFields","rejectCustomReading","find","message","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/custom/custom.device.ts"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAcA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,gBAAA,GAAAR,OAAA;AAEA,IAAAS,gBAAA,GAAAT,OAAA;AACA,IAAAU,oBAAA,GAAAV,OAAA;AACA,IAAAW,eAAA,GAAAX,OAAA;AACA,IAAAY,eAAA,GAAAZ,OAAA;AACA,IAAAa,eAAA,GAAAb,OAAA;AAKA,IAAAc,oBAAA,GAAAd,OAAA;AAvCA;;AAsDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMe,YAAY,SAASC,gCAAe,CAAiB;EAQxDC,kBAAkB,GAAG,IAAIC,GAAG,CAAS,CAAC;EAC7BC,UAAU,GAAG,IAAIC,GAAG,CAAsC,CAAC;EAE3DC,iBAAiB,GAAG,IAAID,GAAG,CAA2B,CAAC;EAGxEE,WAAWA,CACTC,MAAc,EACdC,MAA0C,EAC1CC,UAAkC,EAClC;IACA,KAAK,CAACF,MAAM,EAAE;MACZ,GAAGC,MAAM;MACTE,uBAAuB,EACrBF,MAAM,CAACE,uBAAuB,IAAID,UAAU,CAACC;IACjD,CAAC,CAAC;IAEF,IAAI,CAACD,UAAU,GAAGA,UAAU;IAC5B,IA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EwC,WAAW,CAACO,UAAU,CAACpI,OAAO,CAAE4B,IAAI,IAAK;MACvCuG,aAAa,CAACvG,IAAI,CAAC,GAAGuH,YAAY,CAACvH,IAAI,CAAC;IAC1C,CAAC,CAAC;IAEF,OAAOqE,OAAO;EAChB;EAEQ+B,oBAAoBA,CAC1B/B,OAAqB,EACrB4B,WAA6B,EACT;IACpB,OAAOA,WAAW,CAACO,UAAU,CAC1BpB,GAAG,CAAEpF,IAAI,IACR,IAAAwH,wCAAmB,EACjB,IAAI,CAAChL,UAAU,CAACiJ,MAAM,EACtBQ,WAAW,CAACvE,kBAAkB,EAC9B1B,IAAI,EACHqE,OAAO,CAA4CrE,IAAI,CAC1D,CACF,CAAC,CACAyH,IAAI,CAAEC,OAAO,IAAKA,OAAO,KAAKrK,SAAS,CAAC;EAC7C;AACF;AAACsK,OAAA,CAAA7L,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FamidocDevice = void 0;
7
+ var _integratedDevices = require("../../../types/integrated-devices.js");
8
+ var _btManagedDevice = require("../bt-managed-device.js");
9
+ var _famidocProtocol = require("./famidoc.protocol.js");
10
+ var _famidocSequencer = require("./famidoc.sequencer.js");
11
+ /** The sequencer decodes records itself; the declarative parser only passes frames on. */
12
+ const passThrough = {
13
+ caseValuePosition: [],
14
+ cases: []
15
+ };
16
+ const famidocMainServices = [{
17
+ uuid: _famidocProtocol.FAMIDOC_SERVICE,
18
+ monitorUuids: [{
19
+ uuid: _famidocProtocol.FAMIDOC_NOTIFY,
20
+ parsingModel: passThrough
21
+ }]
22
+ }];
23
+
24
+ /** Models differ only in the address byte their commands carry. */
25
+ const ADDRESS = {
26
+ [_integratedDevices.IntegratedDevices.FAMIDOC_BPM]: 0xa5,
27
+ [_integratedDevices.IntegratedDevices.FAMIDOC_IR_THERMOMETER]: 0xa7,
28
+ [_integratedDevices.IntegratedDevices.FAMIDOC_CONTACT_THERMOMETER]: 0xa3
29
+ };
30
+
31
+ /** Famidoc blood-pressure monitors and contact and infrared thermometers. */
32
+ class FamidocDeviceClass extends _btManagedDevice.BTManagedDevice {
33
+ mainServices = famidocMainServices;
34
+ stuckDataTimeout = 90_000;
35
+ onStreamStart = undefined;
36
+ constructor(device, params) {
37
+ super(device, params);
38
+ this.frameReader = new _famidocProtocol.FamidocFrameReader();
39
+ this.createCommandSequencer = () => new _famidocSequencer.FamidocSequencer({
40
+ address: ADDRESS[params.deviceName],
41
+ onResult: result => this.onResult?.(result)
42
+ });
43
+ }
44
+ handleSuccessResult() {
45
+ return;
46
+ }
47
+ }
48
+ exports.FamidocDevice = FamidocDeviceClass;
49
+ //# sourceMappingURL=famidoc.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_integratedDevices","require","_btManagedDevice","_famidocProtocol","_famidocSequencer","passThrough","caseValuePosition","cases","famidocMainServices","uuid","FAMIDOC_SERVICE","monitorUuids","FAMIDOC_NOTIFY","parsingModel","ADDRESS","IntegratedDevices","FAMIDOC_BPM","FAMIDOC_IR_THERMOMETER","FAMIDOC_CONTACT_THERMOMETER","FamidocDeviceClass","BTManagedDevice","mainServices","stuckDataTimeout","onStreamStart","undefined","constructor","device","params","frameReader","FamidocFrameReader","createCommandSequencer","FamidocSequencer","address","deviceName","onResult","result","handleSuccessResult","exports","FamidocDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/famidoc/famidoc.device.ts"],"mappings":";;;;;;AAIA,IAAAA,kBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAKA,IAAAG,iBAAA,GAAAH,OAAA;AAOA;AACA,MAAMI,WAAW,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAExD,MAAMC,mBAA+B,GAAG,CACtC;EAAEC,IAAI,EAAEC,gCAAe;EAAEC,YAAY,EAAE,CAAC;IAAEF,IAAI,EAAEG,+BAAc;IAAEC,YAAY,EAAER;EAAY,CAAC;AAAE,CAAC,CAC/F;;AAED;AACA,MAAMS,OAAsC,GAAG;EAC7C,CAACC,oCAAiB,CAACC,WAAW,GAAG,IAAI;EACrC,CAACD,oCAAiB,CAACE,sBAAsB,GAAG,IAAI;EAChD,CAACF,oCAAiB,CAACG,2BAA2B,GAAG;AACnD,CAAC;;AAED;AACA,MAAMC,kBAAkB,SAASC,gCAAe,CAAgB;EACpDC,YAAY,GAAGb,mBAAmB;EAClCc,gBAAgB,GAAG,MAAM;EACzBC,aAAa,GAAGC,SAAS;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAyC,EAAE;IAC5E,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,OAAO,EAAElB,OAAO,CAACa,MAAM,CAACM,UAAU,CAAC;MACnCC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;EAEUC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAACC,OAAA,CAAAC,aAAA,GAAAnB,kBAAA","ignoreList":[]}
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setTimeCommand = exports.readInfraredTemperature = exports.readContactTemperature = exports.readBloodPressure = exports.getVersionCommand = exports.getStateCommand = exports.frame = exports.endSessionCommand = exports.commandOf = exports.bodyOf = exports.FamidocFrameReader = exports.FAMIDOC_WRITE = exports.FAMIDOC_SERVICE = exports.FAMIDOC_NOTIFY = exports.FAMIDOC = exports.ACK = void 0;
7
+ var _frameReadStatus = require("../../../types/frame-read-status.js");
8
+ var _hexToByte = require("../../../utils/hex-to-byte.js");
9
+ /* eslint-disable import/group-exports */
10
+
11
+ /**
12
+ * Famidoc's protocol, shared by its blood-pressure monitors and contact and infrared
13
+ * thermometers. Layouts are from MedM Health Diary 3.12.11's `CFamidoc_Device`.
14
+ *
15
+ * Every frame, both ways, is `AA addr LL cmd body CS 55`: LL counts the command byte and the
16
+ * body, CS is the one's complement of the 8-bit sum of address, length, command and body, and
17
+ * multi-byte fields are big-endian. Models differ only in the address byte.
18
+ */
19
+ const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
20
+ const FAMIDOC_SERVICE = exports.FAMIDOC_SERVICE = sig16("ffff");
21
+ const FAMIDOC_WRITE = exports.FAMIDOC_WRITE = sig16("ff02");
22
+ const FAMIDOC_NOTIFY = exports.FAMIDOC_NOTIFY = sig16("ff01");
23
+
24
+ /** Device-to-app commands. */
25
+ const FAMIDOC = exports.FAMIDOC = {
26
+ version: 0xa1,
27
+ bloodPressureStatus: 0x40,
28
+ thermometerStatus: [0x10, 0x20],
29
+ bloodPressure: 0x42,
30
+ contactTemperature: 0x23,
31
+ infraredTemperature: 0x13
32
+ };
33
+ const START = 0xaa;
34
+ const END = 0x55;
35
+
36
+ /** The longest frame the devices send is twenty bytes; anything longer is a misread length. */
37
+ const MAX_FRAME_BYTES = 64;
38
+ const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
39
+ const byteAt = (frame, index) => (0, _hexToByte.hexToByte)(frame[index] ?? "00");
40
+ const checksum = bytes => ~bytes.reduce((sum, value) => sum + value, 0) & 0xff;
41
+ const frame = (address, command, data = []) => {
42
+ const body = [address, data.length + 1, command, ...data];
43
+ return toHex([START, ...body, checksum(body), END]);
44
+ };
45
+ exports.frame = frame;
46
+ const commandOf = received => byteAt(received, 3);
47
+
48
+ /** The bytes after the command, before the checksum. */
49
+ exports.commandOf = commandOf;
50
+ const bodyOf = received => received.slice(4, -2).map(byte => (0, _hexToByte.hexToByte)(byte));
51
+
52
+ /** The fixed acknowledgement MedM sends for every frame, whatever the model. */
53
+ exports.bodyOf = bodyOf;
54
+ const ACK = exports.ACK = toHex([0xaa, 0xa4, 0x03, 0xf2, 0x4f, 0x4b, 0xcc, 0x55]);
55
+ const getVersionCommand = address => frame(address, 0xa1);
56
+ exports.getVersionCommand = getVersionCommand;
57
+ const getStateCommand = address => frame(address, 0xa2);
58
+
59
+ /** Set time and end-session go to the model's address minus one, as MedM sends them. */
60
+ exports.getStateCommand = getStateCommand;
61
+ const setTimeCommand = (address, now) => frame(address - 1, 0xa3, [now.getFullYear() - 2000 & 0xff, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()]);
62
+ exports.setTimeCommand = setTimeCommand;
63
+ const endSessionCommand = address => frame(address - 1, 0xf2, [0x4f, 0x4d]);
64
+
65
+ /** Isolates `AA … 55` frames whatever the notification boundaries, skipping noise to the next start. */
66
+ exports.endSessionCommand = endSessionCommand;
67
+ class FamidocFrameReader {
68
+ readFrame(buffer) {
69
+ const start = buffer.findIndex(byte => (0, _hexToByte.hexToByte)(byte) === START);
70
+ if (start === -1) {
71
+ return {
72
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
73
+ consumedBytes: buffer.length
74
+ };
75
+ }
76
+ if (start + 3 > buffer.length) {
77
+ return {
78
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
79
+ consumedBytes: start
80
+ };
81
+ }
82
+ const length = byteAt(buffer, start + 2) + 5;
83
+ if (length > MAX_FRAME_BYTES || length < 6) {
84
+ return {
85
+ status: _frameReadStatus.FrameReadStatus.CORRUPT,
86
+ consumedBytes: start + 1
87
+ };
88
+ }
89
+ if (start + length > buffer.length) {
90
+ return {
91
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
92
+ consumedBytes: start
93
+ };
94
+ }
95
+ const received = buffer.slice(start, start + length);
96
+ const covered = received.slice(1, -2).map(byte => (0, _hexToByte.hexToByte)(byte));
97
+ if (byteAt(received, length - 1) !== END || checksum(covered) !== byteAt(received, length - 2)) {
98
+ return {
99
+ status: _frameReadStatus.FrameReadStatus.CORRUPT,
100
+ consumedBytes: start + 1
101
+ };
102
+ }
103
+ return {
104
+ status: _frameReadStatus.FrameReadStatus.COMPLETE,
105
+ consumedBytes: start + length,
106
+ frame: received
107
+ };
108
+ }
109
+ }
110
+
111
+ /** A record's `YY MM DD hh mm ss`, local time. */
112
+ exports.FamidocFrameReader = FamidocFrameReader;
113
+ const readTime = (body, at, year) => new Date(year, (body[at + 1] ?? 1) - 1, body[at + 2] ?? 1, body[at + 3] ?? 0, body[at + 4] ?? 0, body[at + 5] ?? 0);
114
+ /**
115
+ * `42`: user, status (anything but 0 is an error, Lo or Hi), time, then one byte each for
116
+ * systolic, diastolic and pulse in mmHg and bpm, a skipped byte, the irregular-heartbeat flag
117
+ * and an error code.
118
+ *
119
+ * The year byte is the low byte of the full year (2024 → 0xE8); MedM reads anything else,
120
+ * such as a two-digit year, as this year.
121
+ */
122
+ const readBloodPressure = (body, now) => {
123
+ if (body.length < 14 || body[1] !== 0) {
124
+ return undefined;
125
+ }
126
+ const yearByte = body[2] ?? 0;
127
+ return {
128
+ recordedAt: readTime(body, 2, yearByte >= 0xd0 ? 1792 + yearByte : now.getFullYear()),
129
+ systolic: body[8] ?? 0,
130
+ diastolic: body[9] ?? 0,
131
+ heartRate: body[10] ?? 0,
132
+ irregularHeartbeat: (body[12] ?? 0) !== 0
133
+ };
134
+ };
135
+ exports.readBloodPressure = readBloodPressure;
136
+ const isErrorStatus = status => status >= 3 && status <= 6;
137
+
138
+ /** `23`: contact thermometer; the temperature's decimal places are in byte 2. */
139
+ const readContactTemperature = body => {
140
+ if (body.length < 12 || isErrorStatus(body[11] ?? 0)) {
141
+ return undefined;
142
+ }
143
+ const raw = (body[9] ?? 0) << 8 | (body[10] ?? 0);
144
+ return {
145
+ bodyTemp: raw / 10 ** (body[2] ?? 0),
146
+ recordedAt: readTime(body, 3, 2000 + (body[3] ?? 0))
147
+ };
148
+ };
149
+
150
+ /** `13`: infrared thermometer, always hundredths of a degree; ambient temperature is ignored. */
151
+ exports.readContactTemperature = readContactTemperature;
152
+ const readInfraredTemperature = body => {
153
+ const raw = (body[9] ?? 0) << 8 | (body[10] ?? 0);
154
+ if (body.length < 14 || raw === 0 || isErrorStatus(body[13] ?? 0)) {
155
+ return undefined;
156
+ }
157
+ return {
158
+ bodyTemp: raw / 100,
159
+ recordedAt: readTime(body, 3, 2000 + (body[3] ?? 0))
160
+ };
161
+ };
162
+ exports.readInfraredTemperature = readInfraredTemperature;
163
+ //# sourceMappingURL=famidoc.protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_frameReadStatus","require","_hexToByte","sig16","assigned","FAMIDOC_SERVICE","exports","FAMIDOC_WRITE","FAMIDOC_NOTIFY","FAMIDOC","version","bloodPressureStatus","thermometerStatus","bloodPressure","contactTemperature","infraredTemperature","START","END","MAX_FRAME_BYTES","toHex","bytes","map","value","toString","padStart","byteAt","frame","index","hexToByte","checksum","reduce","sum","address","command","data","body","length","commandOf","received","bodyOf","slice","byte","ACK","getVersionCommand","getStateCommand","setTimeCommand","now","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","endSessionCommand","FamidocFrameReader","readFrame","buffer","start","findIndex","status","FrameReadStatus","INCOMPLETE","consumedBytes","CORRUPT","covered","COMPLETE","readTime","at","year","Date","readBloodPressure","undefined","yearByte","recordedAt","systolic","diastolic","heartRate","irregularHeartbeat","isErrorStatus","readContactTemperature","raw","bodyTemp","readInfraredTemperature"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/famidoc/famidoc.protocol.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AALA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,KAAK,GAAIC,QAAgB,IAC7B,OAAOA,QAAQ,8BAA8B;AAExC,MAAMC,eAAe,GAAAC,O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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;EACrD,CAAC;AACH,CAAC;;AAED;AAAA7B,OAAA,CAAAyE,sBAAA,GAAAA,sBAAA;AACO,MAAMG,uBAAuB,GAClC/C,IAAuB,IACgC;EACvD,MAAM6C,GAAG,GAAI,CAAC7C,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAKA,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;EAEnD,IAAIA,IAAI,CAACC,MAAM,GAAG,EAAE,IAAI4C,GAAG,KAAK,CAAC,IAAIF,aAAa,CAAC3C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE;IACjE,OAAOoC,SAAS;EAClB;EAEA,OAAO;IAAEU,QAAQ,EAAED,GAAG,GAAG,GAAG;IAAEP,UAAU,EAAEP,QAAQ,CAAC/B,IAAI,EAAE,CAAC,EAAE,IAAI,IAAIA,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;EAAE,CAAC;AACtF,CAAC;AAAC7B,OAAA,CAAA4E,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FamidocSequencer = void 0;
7
+ var _core = require("@ovok/core");
8
+ var _caseType = require("../../../types/case-type.js");
9
+ var _famidocProtocol = require("./famidoc.protocol.js");
10
+ /** MedM ends the session after this long without a record. */
11
+ const END_AFTER_MS = 60_000;
12
+ const RECORDS = [_famidocProtocol.FAMIDOC.bloodPressure, _famidocProtocol.FAMIDOC.contactTemperature, _famidocProtocol.FAMIDOC.infraredTemperature];
13
+
14
+ /**
15
+ * Asks for the version and state, sets the clock once, then acknowledges every frame while the
16
+ * device pushes its records. Every valid frame is acknowledged, whatever it carries.
17
+ */
18
+ class FamidocSequencer {
19
+ timeSet = false;
20
+ receiving = false;
21
+ recorded = false;
22
+ ended = false;
23
+ constructor(params) {
24
+ this.params = params;
25
+ }
26
+ initialCommands = () => [this.command((0, _famidocProtocol.getVersionCommand)(this.params.address))];
27
+ isNormalDisconnect = () => this.ended || this.recorded;
28
+ commandTimeoutMs = () => this.receiving ? END_AFTER_MS : undefined;
29
+ onCommandTimeout = () => {
30
+ this.receiving = false;
31
+ this.ended = true;
32
+ return {
33
+ commands: [this.command((0, _famidocProtocol.endSessionCommand)(this.params.address))]
34
+ };
35
+ };
36
+ commandProgress = frame => {
37
+ if (!RECORDS.includes((0, _famidocProtocol.commandOf)(frame))) {
38
+ return "complete";
39
+ }
40
+ this.receiving = !this.ended;
41
+ return "partial";
42
+ };
43
+ nextCommand = frame => {
44
+ const command = (0, _famidocProtocol.commandOf)(frame);
45
+ const replies = [this.command(_famidocProtocol.ACK)];
46
+ if (command === _famidocProtocol.FAMIDOC.version) {
47
+ replies.push(this.command((0, _famidocProtocol.getStateCommand)(this.params.address)));
48
+ } else if ((command === _famidocProtocol.FAMIDOC.bloodPressureStatus || _famidocProtocol.FAMIDOC.thermometerStatus.includes(command)) && !this.timeSet) {
49
+ this.timeSet = true;
50
+ replies.push(this.command((0, _famidocProtocol.setTimeCommand)(this.params.address, this.now())));
51
+ } else {
52
+ this.record(command, (0, _famidocProtocol.bodyOf)(frame));
53
+ }
54
+ return replies;
55
+ };
56
+ record = (command, body) => {
57
+ const reading = this.decode(command, body);
58
+ if (!reading) {
59
+ return;
60
+ }
61
+ this.recorded = true;
62
+ this.params.onResult({
63
+ caseType: _caseType.CaseType.RESULT,
64
+ ...reading
65
+ });
66
+ };
67
+ decode = (command, body) => {
68
+ if (command === _famidocProtocol.FAMIDOC.bloodPressure) {
69
+ const reading = (0, _famidocProtocol.readBloodPressure)(body, this.now());
70
+ return reading && {
71
+ measurementTypeKey: _core.MeasurementTypeKey.bloodPressure,
72
+ systolic: reading.systolic,
73
+ diastolic: reading.diastolic,
74
+ heartRate: reading.heartRate,
75
+ recordedAt: reading.recordedAt,
76
+ ...(reading.irregularHeartbeat ? {
77
+ irregularHeartbeat: true
78
+ } : {})
79
+ };
80
+ }
81
+ const temperature = command === _famidocProtocol.FAMIDOC.contactTemperature ? (0, _famidocProtocol.readContactTemperature)(body) : command === _famidocProtocol.FAMIDOC.infraredTemperature ? (0, _famidocProtocol.readInfraredTemperature)(body) : undefined;
82
+ return temperature && {
83
+ measurementTypeKey: _core.MeasurementTypeKey.temperature,
84
+ ...temperature
85
+ };
86
+ };
87
+ now = () => this.params.now?.() ?? new Date();
88
+ command = frame => ({
89
+ serviceUuid: _famidocProtocol.FAMIDOC_SERVICE,
90
+ characteristicUuid: _famidocProtocol.FAMIDOC_WRITE,
91
+ frame
92
+ });
93
+ }
94
+ exports.FamidocSequencer = FamidocSequencer;
95
+ //# sourceMappingURL=famidoc.sequencer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_core","require","_caseType","_famidocProtocol","END_AFTER_MS","RECORDS","FAMIDOC","bloodPressure","contactTemperature","infraredTemperature","FamidocSequencer","timeSet","receiving","recorded","ended","constructor","params","initialCommands","command","getVersionCommand","address","isNormalDisconnect","commandTimeoutMs","undefined","onCommandTimeout","commands","endSessionCommand","commandProgress","frame","includes","commandOf","nextCommand","replies","ACK","version","push","getStateCommand","bloodPressureStatus","thermometerStatus","setTimeCommand","now","record","bodyOf","body","reading","decode","onResult","caseType","CaseType","RESULT","readBloodPressure","measurementTypeKey","MeasurementTypeKey","systolic","diastolic","heartRate","recordedAt","irregularHeartbeat","temperature","readContactTemperature","readInfraredTemperature","Date","serviceUuid","FAMIDOC_SERVICE","characteristicUuid","FAMIDOC_WRITE","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/famidoc/famidoc.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAIA,IAAAE,gBAAA,GAAAF,OAAA;AAwBA;AACA,MAAMG,YAAY,GAAG,MAAM;AAE3B,MAAMC,OAA0B,GA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IAAAM,kCAAiB,EAACP,IAAI,EAAE,IAAI,CAACH,GAAG,CAAC,CAAC,CAAC;MAEnD,OACEI,OAAO,IAAI;QACTO,kBAAkB,EAAEC,wBAAkB,CAAC7C,aAAa;QACpD8C,QAAQ,EAAET,OAAO,CAACS,QAAQ;QAC1BC,SAAS,EAAEV,OAAO,CAACU,SAAS;QAC5BC,SAAS,EAAEX,OAAO,CAACW,SAAS;QAC5BC,UAAU,EAAEZ,OAAO,CAACY,UAAU;QAC9B,IAAIZ,OAAO,CAACa,kBAAkB,GAAG;UAAEA,kBAAkB,EAAE;QAAK,CAAC,GAAG,CAAC,CAAC;MACpE,CAAC;IAEL;IAEA,MAAMC,WAAW,GACfxC,OAAO,KAAKZ,wBAAO,CAACE,kBAAkB,GAClC,IAAAmD,uCAAsB,EAAChB,IAAI,CAAC,GAC5BzB,OAAO,KAAKZ,wBAAO,CAACG,mBAAmB,GACrC,IAAAmD,wCAAuB,EAACjB,IAAI,CAAC,GAC7BpB,SAAS;IAEjB,OAAOmC,WAAW,IAAI;MAAEP,kBAAkB,EAAEC,wBAAkB,CAACM,WAAW;MAAE,GAAGA;IAAY,CAAC;EAC9F,CAAC;EAEOlB,GAAG,GAAGA,CAAA,KAAY,IAAI,CAACxB,MAAM,CAACwB,GAAG,GAAG,CAAC,IAAI,IAAIqB,IAAI,CAAC,CAAC;EAEnD3C,OAAO,GAAIU,KAAwB,KAAqB;IAC9DkC,WAAW,EAAEC,gCAAe;IAC5BC,kBAAkB,EAAEC,8BAAa;IACjCrC;EACF,CAAC,CAAC;AACJ;AAACsC,OAAA,CAAAxD,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JoytechDevice = void 0;
7
+ var _integratedDevices = require("../../../types/integrated-devices.js");
8
+ var _btManagedDevice = require("../bt-managed-device.js");
9
+ var _joytechProtocol = require("./joytech.protocol.js");
10
+ var _joytechSequencer = require("./joytech.sequencer.js");
11
+ const joytechMainServices = [{
12
+ uuid: _joytechProtocol.JOYTECH.service,
13
+ monitorUuids: [{
14
+ uuid: _joytechProtocol.JOYTECH.notify,
15
+ parsingModel: {
16
+ caseValuePosition: [],
17
+ cases: []
18
+ }
19
+ }]
20
+ }];
21
+
22
+ /** Joytech (Sejoy) blood-pressure monitors and DET thermometers. */
23
+ class JoytechDeviceClass extends _btManagedDevice.BTManagedDevice {
24
+ mainServices = joytechMainServices;
25
+ stuckDataTimeout = 90_000;
26
+ onStreamStart = undefined;
27
+ constructor(device, params) {
28
+ super(device, params);
29
+ this.frameReader = new _joytechProtocol.JoytechFrameReader();
30
+ this.createCommandSequencer = () => new _joytechSequencer.JoytechSequencer({
31
+ thermometer: params.deviceName === _integratedDevices.IntegratedDevices.JOYTECH_THERMOMETER,
32
+ onResult: result => this.onResult?.(result)
33
+ });
34
+ }
35
+ handleSuccessResult() {
36
+ return;
37
+ }
38
+ }
39
+ exports.JoytechDevice = JoytechDeviceClass;
40
+ //# sourceMappingURL=joytech.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_integratedDevices","require","_btManagedDevice","_joytechProtocol","_joytechSequencer","joytechMainServices","uuid","JOYTECH","service","monitorUuids","notify","parsingModel","caseValuePosition","cases","JoytechDeviceClass","BTManagedDevice","mainServices","stuckDataTimeout","onStreamStart","undefined","constructor","device","params","frameReader","JoytechFrameReader","createCommandSequencer","JoytechSequencer","thermometer","deviceName","IntegratedDevices","JOYTECH_THERMOMETER","onResult","result","handleSuccessResult","exports","JoytechDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/joytech/joytech.device.ts"],"mappings":";;;;;;AAIA,IAAAA,kBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAIA,MAAMI,mBAA+B,GAAG,CACtC;EACEC,IAAI,EAAEC,wBAAO,CAACC,OAAO;EACrBC,YAAY,EAAE,CAAC;IAAEH,IAAI,EAAEC,wBAAO,CAACG,MAAM;IAAEC,YAAY,EAAE;MAAEC,iBAAiB,EAAE,EAAE;MAAEC,KAAK,EAAE;IAAG;EAAE,CAAC;AAC7F,CAAC,CACF;;AAED;AACA,MAAMC,kBAAkB,SAASC,gCAAe,CAAgB;EACpDC,YAAY,GAAGX,mBAAmB;EAClCY,gBAAgB,GAAG,MAAM;EACzBC,aAAa,GAAGC,SAAS;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAyC,EAAE;IAC5E,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,WAAW,EAAEL,MAAM,CAACM,UAAU,KAAKC,oCAAiB,CAACC,mBAAmB;MACxEC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MACF;IACJ,CAAC,CAAC;EACN;EAEUC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAACC,OAAA,CAAAC,aAAA,GAAArB,kBAAA","ignoreList":[]}
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setTimeCommand = exports.readTemperatures = exports.readBloodPressure = exports.payloadOf = exports.getHistoryCommand = exports.frame = exports.commandOf = exports.ack = exports.JoytechFrameReader = exports.JOYTECH_COMMAND = exports.JOYTECH = exports.DEVICE_INFO_REPLY = exports.ACK_ONLY = void 0;
7
+ var _frameReadStatus = require("../../../types/frame-read-status.js");
8
+ var _hexToByte = require("../../../utils/hex-to-byte.js");
9
+ /* eslint-disable import/group-exports */
10
+
11
+ /**
12
+ * Joytech (Sejoy) blood-pressure monitors and DET thermometers, from MedM Health Diary
13
+ * 3.12.11's `CSejoy_*` classes.
14
+ *
15
+ * Frames, both ways: `FA AA AA AF`, the whole frame's length (u16 big-endian), the command, the
16
+ * payload, the 8-bit sum of length, command and payload, then `F5 5F`. A reply to a device
17
+ * command adds 0x80 to it, wrapping - so the BP record command `83` is acknowledged as `03`.
18
+ */
19
+ const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
20
+ const JOYTECH = exports.JOYTECH = {
21
+ service: sig16("fff0"),
22
+ notify: sig16("fff1"),
23
+ write: sig16("fff2")
24
+ };
25
+ const JOYTECH_COMMAND = exports.JOYTECH_COMMAND = {
26
+ bloodPressureRecord: 0x83,
27
+ temperatureRecords: 0x03,
28
+ setTimeRequest: 0x06,
29
+ deviceInfo: 0x19
30
+ };
31
+
32
+ /** Device status commands MedM simply acknowledges. */
33
+ const ACK_ONLY = exports.ACK_ONLY = [0x04, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11];
34
+ const MAGIC = [0xfa, 0xaa, 0xaa, 0xaf];
35
+ const HEADER = 7;
36
+ const TAIL = 3;
37
+ const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
38
+ const frame = (command, payload = []) => {
39
+ const length = payload.length + HEADER + TAIL;
40
+ const covered = [length >> 8, length & 0xff, command & 0xff, ...payload];
41
+ const sum = covered.reduce((total, value) => total + value, 0) & 0xff;
42
+ return toHex([...MAGIC, ...covered, sum, 0xf5, 0x5f]);
43
+ };
44
+ exports.frame = frame;
45
+ const ack = command => frame(command + 0x80);
46
+ exports.ack = ack;
47
+ const timePayload = now => [now.getFullYear() - 2000 & 0xff, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes()];
48
+
49
+ /** Blood-pressure monitors take the time as command `04`, thermometers as `86`. */
50
+ const setTimeCommand = (now, thermometer) => frame(thermometer ? 0x86 : 0x04, timePayload(now));
51
+ exports.setTimeCommand = setTimeCommand;
52
+ const getHistoryCommand = () => frame(0x0a);
53
+
54
+ /** What MedM writes in answer to device info: four `FF` bytes, unframed. */
55
+ exports.getHistoryCommand = getHistoryCommand;
56
+ const DEVICE_INFO_REPLY = exports.DEVICE_INFO_REPLY = toHex([0xff, 0xff, 0xff, 0xff]);
57
+ const commandOf = received => (0, _hexToByte.hexToByte)(received[6] ?? "00");
58
+ exports.commandOf = commandOf;
59
+ const payloadOf = received => received.slice(HEADER, -TAIL).map(byte => (0, _hexToByte.hexToByte)(byte));
60
+
61
+ /** Isolates `FA AA AA AF … F5 5F` frames whatever the notification boundaries. */
62
+ exports.payloadOf = payloadOf;
63
+ class JoytechFrameReader {
64
+ readFrame(buffer) {
65
+ const values = buffer.map(byte => (0, _hexToByte.hexToByte)(byte));
66
+ const start = values.findIndex((_, index) => MAGIC.every((magic, offset) => index + offset >= values.length || values[index + offset] === magic));
67
+ if (start === -1) {
68
+ return {
69
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
70
+ consumedBytes: Math.max(0, values.length - 3)
71
+ };
72
+ }
73
+ if (start + HEADER > values.length) {
74
+ return {
75
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
76
+ consumedBytes: start
77
+ };
78
+ }
79
+ const length = (values[start + 4] ?? 0) << 8 | (values[start + 5] ?? 0);
80
+ if (length < HEADER + TAIL || length > 512) {
81
+ return {
82
+ status: _frameReadStatus.FrameReadStatus.CORRUPT,
83
+ consumedBytes: start + 1
84
+ };
85
+ }
86
+ if (start + length > values.length) {
87
+ return {
88
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
89
+ consumedBytes: start
90
+ };
91
+ }
92
+ const received = values.slice(start, start + length);
93
+ const sum = received.slice(4, length - TAIL).reduce((total, value) => total + value, 0) & 0xff;
94
+ if (received[length - 2] !== 0xf5 || received[length - 1] !== 0x5f || received[length - 3] !== sum) {
95
+ return {
96
+ status: _frameReadStatus.FrameReadStatus.CORRUPT,
97
+ consumedBytes: start + 1
98
+ };
99
+ }
100
+ return {
101
+ status: _frameReadStatus.FrameReadStatus.COMPLETE,
102
+ consumedBytes: start + length,
103
+ frame: buffer.slice(start, start + length)
104
+ };
105
+ }
106
+ }
107
+
108
+ /** `YY MM DD hh mm`, local time; a zero year means the clock was never set. */
109
+ exports.JoytechFrameReader = JoytechFrameReader;
110
+ const readTime = (payload, at) => {
111
+ const year = payload[at] ?? 0;
112
+ return year === 0 ? undefined : new Date(2000 + year, (payload[at + 1] ?? 1) - 1, payload[at + 2] ?? 1, payload[at + 3] ?? 0, payload[at + 4] ?? 0);
113
+ };
114
+
115
+ /** AFib status codes; MedM tags `0x07` AFib alone and `0x7F` AFib with an irregular pulse. */
116
+ const AFIB_STATUS = [0x07, 0x7f];
117
+
118
+ /**
119
+ * `83`: systolic and diastolic (u16 big-endian, mmHg), pulse, rhythm status, time, device user.
120
+ * Status `0x00` is a normal rhythm, `0x07` AFib, `0x7F` both and any other value an irregular
121
+ * pulse. Monitors without AFib detection only ever send `0x00` or `0xFF`.
122
+ */
123
+ const readBloodPressure = payload => {
124
+ const recordedAt = readTime(payload, 6);
125
+ if (payload.length < 12 || !recordedAt) {
126
+ return undefined;
127
+ }
128
+ const status = payload[5] ?? 0;
129
+ const user = payload[11] ?? 0;
130
+ return {
131
+ systolic: (payload[0] ?? 0) << 8 | (payload[1] ?? 0),
132
+ diastolic: (payload[2] ?? 0) << 8 | (payload[3] ?? 0),
133
+ heartRate: payload[4] ?? 0,
134
+ irregularHeartbeat: status !== 0x00 && status !== 0x07,
135
+ atrialFibrillation: AFIB_STATUS.includes(status),
136
+ recordedAt,
137
+ ...(user > 0 ? {
138
+ memorySlot: user
139
+ } : {})
140
+ };
141
+ };
142
+
143
+ /**
144
+ * `03`: one or more eight-byte records - site (3 is skipped, as MedM does), temperature in
145
+ * hundredths of a degree Celsius (bit 15 ignored), time.
146
+ */
147
+ exports.readBloodPressure = readBloodPressure;
148
+ const readTemperatures = payload => {
149
+ const records = [];
150
+ for (let at = 0; at + 8 <= payload.length; at += 8) {
151
+ const recordedAt = readTime(payload, at + 3);
152
+ if (payload[at] !== 3 && recordedAt) {
153
+ records.push({
154
+ bodyTemp: (((payload[at + 1] ?? 0) << 8 | (payload[at + 2] ?? 0)) & 0x7fff) / 100,
155
+ recordedAt
156
+ });
157
+ }
158
+ }
159
+ return records;
160
+ };
161
+ exports.readTemperatures = readTemperatures;
162
+ //# sourceMappingURL=joytech.protocol.js.map