@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
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable import/group-exports */
4
+
5
+ import { decodeMedicalFloat } from "../../../utils/decode-medical-float.js";
6
+ import { hexToByte } from "../../../utils/hex-to-byte.js";
7
+ import { bloodPressureStatusFromFrame, recordedAtFromBloodPressureFrame } from "../standard-gatt/standard-gatt.profile.js";
8
+
9
+ /**
10
+ * A&D Medical (UA-651/656/1200BLE monitors, UC-352BLE scale), from MedM Health Diary 3.12.11's
11
+ * `CAND_*` classes.
12
+ *
13
+ * The monitors are the SIG Blood Pressure profile plus a clock write a second after connecting:
14
+ * a 7-byte SIG Date Time to 0x1810/0x2A08, or the same bytes to Current Time 0x1805/0x2A2B on
15
+ * the UA-1200BLE/UB-1100BLE. The scale takes A&D command frames (`length type command payload`,
16
+ * no checksum) on 233bf001 and indicates 10-byte weight records on 23434101.
17
+ */
18
+ const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
19
+ export const AND_MEDICAL = {
20
+ bloodPressureService: sig16("1810"),
21
+ bloodPressureMeasurement: sig16("2a35"),
22
+ dateTime: sig16("2a08"),
23
+ currentTimeService: sig16("1805"),
24
+ currentTime: sig16("2a2b"),
25
+ commandService: "233bf000-5a34-1b6d-975c-000d5690abe4",
26
+ command: "233bf001-5a34-1b6d-975c-000d5690abe4",
27
+ scaleService: "23434100-1fe4-1eff-80cb-00ff78297d8b",
28
+ scaleRecord: "23434101-1fe4-1eff-80cb-00ff78297d8b"
29
+ };
30
+ const POUND_IN_KG = 0.45359237;
31
+ const KPA_IN_MMHG = 7.500617;
32
+ const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
33
+
34
+ /** SIG Date Time, phone-local: year (u16 LE), month, day, hour, minute, second. */
35
+ export const dateTimeCommand = now => toHex([now.getFullYear() & 0xff, now.getFullYear() >> 8, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()]);
36
+
37
+ /** A&D set-time frame for the scale: `08 01 01 YY MM DD hh mm ss`, binary, phone-local. */
38
+ export const scaleSetTimeCommand = now => toHex([0x08, 0x01, 0x01, now.getFullYear() % 100, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()]);
39
+ const sfloat = (bytes, at) => at + 1 < bytes.length ? decodeMedicalFloat((bytes[at] ?? 0) | (bytes[at + 1] ?? 0) << 8, 4, 12) : undefined;
40
+
41
+ /**
42
+ * SIG Blood Pressure Measurement 0x2A35. kPa is converted to mmHg; the device timestamp is kept
43
+ * when the clock is valid; the user id (0-based, 0xFF unknown) becomes a 1-based memory slot;
44
+ * status bit 2 is the irregular pulse. A record without both pressures is dropped.
45
+ */
46
+ export const readBloodPressure = frame => {
47
+ const bytes = frame.map(byte => hexToByte(byte));
48
+ const flags = bytes[0] ?? 0;
49
+ const unit = (flags & 0x01) !== 0 ? KPA_IN_MMHG : 1;
50
+ const systolic = sfloat(bytes, 1);
51
+ const diastolic = sfloat(bytes, 3);
52
+ if (systolic === undefined || diastolic === undefined) {
53
+ return undefined;
54
+ }
55
+ const recordedAt = recordedAtFromBloodPressureFrame(frame);
56
+ let cursor = 7 + ((flags & 0x02) !== 0 ? 7 : 0);
57
+ const heartRate = (flags & 0x04) !== 0 ? sfloat(bytes, cursor) : undefined;
58
+ cursor += (flags & 0x04) !== 0 ? 2 : 0;
59
+ const user = (flags & 0x08) !== 0 ? bytes[cursor] : undefined;
60
+ const status = bloodPressureStatusFromFrame(frame);
61
+ return {
62
+ systolic: Math.round(systolic * unit),
63
+ diastolic: Math.round(diastolic * unit),
64
+ ...(heartRate === undefined ? {} : {
65
+ heartRate
66
+ }),
67
+ ...(status === undefined ? {} : {
68
+ irregularHeartbeat: (status & 0x04) !== 0
69
+ }),
70
+ ...(recordedAt ? {
71
+ recordedAt
72
+ } : {}),
73
+ ...(user === undefined || user === 0xff ? {} : {
74
+ memorySlot: user + 1
75
+ })
76
+ };
77
+ };
78
+
79
+ /** `yearLE16 month day hour minute second` at `at`, local; undefined when the clock is unset. */
80
+ const readDateTime = (bytes, at) => {
81
+ const [low = 0, high = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0] = bytes.slice(at, at + 7);
82
+ const year = low | high << 8;
83
+ const date = new Date(year, month - 1, day, hour, minute, second);
84
+ return year >= 2000 && date.getMonth() === month - 1 && date.getDate() === day ? date : undefined;
85
+ };
86
+
87
+ /**
88
+ * UC-352 record: flags (bit 0 = pounds), weight u16 LE in tenths, then the device time. Pounds
89
+ * are converted to kilograms. A record too short to carry a time uses the phone's, as MedM does.
90
+ */
91
+ export const readWeight = (frame, now) => {
92
+ const bytes = frame.map(byte => hexToByte(byte));
93
+ const raw = (bytes[1] ?? 0) | (bytes[2] ?? 0) << 8;
94
+ if (bytes.length < 3 || raw === 0 || raw === 0xffff) {
95
+ return undefined;
96
+ }
97
+ const value = ((bytes[0] ?? 0) & 0x01) !== 0 ? raw / 10 * POUND_IN_KG : raw / 10;
98
+ const recordedAt = bytes.length >= 10 ? readDateTime(bytes, 3) : now;
99
+ return {
100
+ bodyWeight: Math.round(value * 100) / 100,
101
+ ...(recordedAt ? {
102
+ recordedAt
103
+ } : {})
104
+ };
105
+ };
106
+ //# sourceMappingURL=and-medical.protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["decodeMedicalFloat","hexToByte","bloodPressureStatusFromFrame","recordedAtFromBloodPressureFrame","sig16","assigned","AND_MEDICAL","bloodPressureService","bloodPressureMeasurement","dateTime","currentTimeService","currentTime","commandService","command","scaleService","scaleRecord","POUND_IN_KG","KPA_IN_MMHG","toHex","bytes","map","value","toString","padStart","dateTimeCommand","now","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","scaleSetTimeCommand","sfloat","at","length","undefined","readBloodPressure","frame","byte","flags","unit","systolic","diastolic","recordedAt","cursor","heartRate","user","status","Math","round","irregularHeartbeat","memorySlot","readDateTime","low","high","month","day","hour","minute","second","slice","year","date","Date","readWeight","raw","bodyWeight"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/and-medical/and-medical.protocol.ts"],"mappings":";;AAAA;;AAEA,SAASA,kBAAkB,QAAQ,wCAAqC;AACxE,SAASC,SAAS,QAAQ,+BAA4B;AACtD,SACEC,4BAA4B,EAC5BC,gCAAgC,QAC3B,2CAAwC;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,KAAK,GAAIC,QAAgB,IAC7B,OAAOA,QAAQ,8BAA8B;AAE/C,OAAO,MAAMC,WAAW,GAAG;EACzBC,oBAAoB,EAAEH,KAAK,CAAC,MAAM,CAAC;EACnCI,wBAAwB,EAAEJ,KAAK,CAAC,MAAM,CAAC;EACvCK,QAAQ,EAAEL,KAA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AAC;EAEjE,OAAOE,IAAI,IAAI,IAAI,IAAIC,IAAI,CAACpC,QAAQ,CAAC,CAAC,KAAK6B,KAAK,GAAG,CAAC,IAAIO,IAAI,CAACnC,OAAO,CAAC,CAAC,KAAK6B,GAAG,GAAGM,IAAI,GAAG3B,SAAS;AACnG,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAM6B,UAAU,GAAGA,CACxB3B,KAAwB,EACxBb,GAAS,KACiD;EAC1D,MAAMN,KAAK,GAAGmB,KAAK,CAAClB,GAAG,CAAEmB,IAAI,IAAKtC,SAAS,CAACsC,IAAI,CAAC,CAAC;EAClD,MAAM2B,GAAG,GAAG,CAAC/C,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAK,CAACA,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAE;EAEpD,IAAIA,KAAK,CAACgB,MAAM,GAAG,CAAC,IAAI+B,GAAG,KAAK,CAAC,IAAIA,GAAG,KAAK,MAAM,EAAE;IACnD,OAAO9B,SAAS;EAClB;EAEA,MAAMf,KAAK,GAAG,CAAC,CAACF,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,GAAI+C,GAAG,GAAG,EAAE,GAAIlD,WAAW,GAAGkD,GAAG,GAAG,EAAE;EAClF,MAAMtB,UAAU,GAAGzB,KAAK,CAACgB,MAAM,IAAI,EAAE,GAAGkB,YAAY,CAAClC,KAAK,EAAE,CAAC,CAAC,GAAGM,GAAG;EAEpE,OAAO;IACL0C,UAAU,EAAElB,IAAI,CAACC,KAAK,CAAC7B,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG;IACzC,IAAIuB,UAAU,GAAG;MAAEA;IAAW,CAAC,GAAG,CAAC,CAAC;EACtC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ import { MeasurementTypeKey } from "@ovok/core";
4
+ import { CaseType } from "../../../types/case-type.js";
5
+ import { AND_MEDICAL, dateTimeCommand, readBloodPressure, readWeight, scaleSetTimeCommand } from "./and-medical.protocol.js";
6
+
7
+ /** `bpm`: time to 0x1810/0x2A08; `bpmCts`: to 0x1805/0x2A2B (UA-1200BLE/UB-1100BLE); `scale`: UC-352. */
8
+
9
+ /** MedM waits this long after connecting before a monitor's clock write. */
10
+ const MONITOR_TIME_DELAY_MS = 1_000;
11
+
12
+ /**
13
+ * Sets the clock, then reports whatever the device indicates. A monitor resends stored readings,
14
+ * so an exact repeat (same time and values) within one connection is reported once.
15
+ */
16
+ class AndMedicalSequencer {
17
+ recorded = false;
18
+ seen = new Set();
19
+ constructor(params) {
20
+ this.params = params;
21
+ }
22
+ initialCommands = () => {
23
+ const now = this.now();
24
+ if (this.params.kind === "scale") {
25
+ return [{
26
+ serviceUuid: AND_MEDICAL.commandService,
27
+ characteristicUuid: AND_MEDICAL.command,
28
+ frame: scaleSetTimeCommand(now)
29
+ }];
30
+ }
31
+ const cts = this.params.kind === "bpmCts";
32
+ return [{
33
+ serviceUuid: cts ? AND_MEDICAL.currentTimeService : AND_MEDICAL.bloodPressureService,
34
+ characteristicUuid: cts ? AND_MEDICAL.currentTime : AND_MEDICAL.dateTime,
35
+ frame: dateTimeCommand(now),
36
+ delayBeforeWriteMs: MONITOR_TIME_DELAY_MS
37
+ }];
38
+ };
39
+ isNormalDisconnect = () => this.recorded;
40
+ nextCommand = frame => {
41
+ if (this.params.kind === "scale") {
42
+ const weight = readWeight(frame, this.now());
43
+ if (weight) {
44
+ this.report({
45
+ measurementTypeKey: MeasurementTypeKey.bodyWeight,
46
+ ...weight
47
+ });
48
+ }
49
+ return undefined;
50
+ }
51
+ const reading = readBloodPressure(frame);
52
+ const key = reading?.recordedAt instanceof Date ? JSON.stringify(reading) : undefined;
53
+ if (reading && !(key && this.seen.has(key))) {
54
+ if (key) {
55
+ this.seen.add(key);
56
+ }
57
+ this.report({
58
+ measurementTypeKey: MeasurementTypeKey.bloodPressure,
59
+ ...reading
60
+ });
61
+ }
62
+ return undefined;
63
+ };
64
+ report = reading => {
65
+ this.recorded = true;
66
+ this.params.onResult({
67
+ caseType: CaseType.RESULT,
68
+ ...reading
69
+ });
70
+ };
71
+ now = () => this.params.now?.() ?? new Date();
72
+ }
73
+ export { AndMedicalSequencer };
74
+ //# sourceMappingURL=and-medical.sequencer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MeasurementTypeKey","CaseType","AND_MEDICAL","dateTimeCommand","readBloodPressure","readWeight","scaleSetTimeCommand","MONITOR_TIME_DELAY_MS","AndMedicalSequencer","recorded","seen","Set","constructor","params","initialCommands","now","kind","serviceUuid","commandService","characteristicUuid","command","frame","cts","currentTimeService","bloodPressureService","currentTime","dateTime","delayBeforeWriteMs","isNormalDisconnect","nextCommand","weight","report","measurementTypeKey","bodyWeight","undefined","reading","key","recordedAt","Date","JSON","stringify","has","add","bloodPressure","onResult","caseType","RESULT"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/and-medical/and-medical.sequencer.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,YAAY;AAE/C,SAASC,QAAQ,QAAQ,6BAA0B;AAInD,SACEC,WAAW,EACXC,eAAe,EACfC,iBAAiB,EACjBC,UAAU,EACVC,mBAAmB,QACd,2BAAwB;;AAE/B;;AAGA;AACA,MAAMC,qBAAqB,GAAG,KAAK;;AAEnC;AACA;AACA;AACA;AACA,MAAMC,mBAAmB,CAA6B;EAC5CC,QAAQ,GAAG,KAAK;EACPC,IAAI,GAAG,IAAIC,GAAG,CAAS,CAAC;EAElCC,WAAWA,CACCC,MAIhB,EACD;IAAA,KALiBA,MAIhB,GAJgBA,MAIhB;EACA;EAEIC,eAAe,GAAGA,CAAA,KAAgC;IACvD,MAAMC,GAAG,GAAG,IAAI,CAACA,GAAG,CAAC,CAAC;IAEtB,IAAI,IAAI,CAACF,MAAM,CAACG,IAAI,KAAK,OAAO,EAAE;MAChC,OAAO,CACL;QACEC,WAAW,EAAEf,WAA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ACN,GAAG,CAAC;MACpB;MACA,IAAI,CAACL,MAAM,CAAC;QAAEC,kBAAkB,EAAEhC,kBAAkB,CAAC2C,aAAa;QAAE,GAAGR;MAAQ,CAAC,CAAC;IACnF;IAEA,OAAOD,SAAS;EAClB,CAAC;EAEOH,MAAM,GAAII,OAAgC,IAAW;IAC3D,IAAI,CAAC1B,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACI,MAAM,CAAC+B,QAAQ,CAAC;MAAEC,QAAQ,EAAE5C,QAAQ,CAAC6C,MAAM;MAAE,GAAGX;IAAQ,CAAC,CAAC;EACjE,CAAC;EAEOpB,GAAG,GAAGA,CAAA,KAAY,IAAI,CAACF,MAAM,CAACE,GAAG,GAAG,CAAC,IAAI,IAAIuB,IAAI,CAAC,CAAC;AAC7D;AAEA,SAAS9B,mBAAmB","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ import { BTManagedDevice } from "../bt-managed-device.js";
4
+ import { AOJ_VALUES, LiveOximeterSequencer, readOximeterData } from "../live-oximeter.sequencer.js";
5
+ import { AOJ_BP } from "./aoj-bp.protocol.js";
6
+ const aoj70bMainServices = [{
7
+ uuid: AOJ_BP.service,
8
+ monitorUuids: [{
9
+ uuid: AOJ_BP.notify,
10
+ parsingModel: {
11
+ caseValuePosition: [],
12
+ cases: []
13
+ }
14
+ }]
15
+ }];
16
+
17
+ /** The AOJ-70A/70B pulse oximeter: live values only, reported as one spot reading. */
18
+ class Aoj70bDevice extends BTManagedDevice {
19
+ mainServices = aoj70bMainServices;
20
+ stuckDataTimeout = 120_000;
21
+ onStreamStart = undefined;
22
+ constructor(device, params) {
23
+ super(device, params);
24
+ this.createCommandSequencer = () => new LiveOximeterSequencer({
25
+ readValues: frame => readOximeterData(frame, AOJ_VALUES),
26
+ onResult: result => this.onResult?.(result)
27
+ });
28
+ }
29
+
30
+ /** One notification is one packet. */
31
+ validatePackage = () => true;
32
+ handleSuccessResult() {
33
+ return;
34
+ }
35
+ }
36
+ export { Aoj70bDevice };
37
+ //# sourceMappingURL=aoj-70b.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BTManagedDevice","AOJ_VALUES","LiveOximeterSequencer","readOximeterData","AOJ_BP","aoj70bMainServices","uuid","service","monitorUuids","notify","parsingModel","caseValuePosition","cases","Aoj70bDevice","mainServices","stuckDataTimeout","onStreamStart","undefined","constructor","device","params","createCommandSequencer","readValues","frame","onResult","result","validatePackage","handleSuccessResult"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/aoj/aoj-70b.device.ts"],"mappings":";;AAOA,SAASA,eAAe,QAAQ,yBAAsB;AACtD,SAASC,UAAU,EAAEC,qBAAqB,EAAEC,gBAAgB,QAAQ,+BAA4B;AAEhG,SAASC,MAAM,QAAQ,sBAAmB;AAE1C,MAAMC,kBAA8B,GAAG,CACrC;EACEC,IAAI,EAAEF,MAAM,CAACG,OAAO;EACpBC,YAAY,EAAE,CAAC;IAAEF,IAAI,EAAEF,MAAM,CAACK,MAAM;IAAEC,YAAY,EAAE;MAAEC,iBAAiB,EAAE,EAAE;MAAEC,KAAK,EAAE;IAAG;EAAE,CAAC;AAC5F,CAAC,CACF;;AAED;AACA,MAAMC,YAAY,SAASb,eAAe,CAA4B;EAC1Dc,YAAY,GAAGT,kBAAkB;EACjCU,gBAAgB,GAAG,OAAO;EAC1BC,aAAa,GAAGC,SAAS;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAqD,EAAE;IACxF,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAInB,qBAAqB,CAAC;MACxBoB,UAAU,EAAGC,KAAK,IAAKpB,gBAAgB,CAACoB,KAAK,EAAEtB,UAAU,CAAC;MAC1DuB,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;;EAEA;EACUC,eAAe,GAAGA,CAAA,KAAe,IAAI;EAErCC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAEA,SAASd,YAAY","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ import { IntegratedDevices } from "../../../types/integrated-devices.js";
4
+ import { BTManagedDevice } from "../bt-managed-device.js";
5
+ import { AOJ_BP, AOJ_BP_FFF0, AojBpFrameReader } from "./aoj-bp.protocol.js";
6
+ import { AojBpSequencer } from "./aoj-bp.sequencer.js";
7
+ const passThrough = {
8
+ caseValuePosition: [],
9
+ cases: []
10
+ };
11
+ const servicesFor = gatt => [{
12
+ uuid: gatt.service,
13
+ monitorUuids: [{
14
+ uuid: gatt.notify,
15
+ parsingModel: passThrough
16
+ }]
17
+ }];
18
+
19
+ /** AOJ Medical blood-pressure monitors; the FFF0 variant is the Cazon BSX530B. */
20
+ class AojBpDeviceClass extends BTManagedDevice {
21
+ stuckDataTimeout = 90_000;
22
+ onStreamStart = undefined;
23
+ constructor(device, params) {
24
+ super(device, params);
25
+ const fff0 = params.deviceName === IntegratedDevices.AOJ_BPM_FFF0;
26
+ const gatt = fff0 ? AOJ_BP_FFF0 : AOJ_BP;
27
+ this.mainServices = servicesFor(gatt);
28
+ this.frameReader = new AojBpFrameReader();
29
+ this.createCommandSequencer = () => new AojBpSequencer({
30
+ service: gatt.service,
31
+ write: gatt.write,
32
+ listenOnly: fff0,
33
+ onResult: result => this.onResult?.(result)
34
+ });
35
+ }
36
+ handleSuccessResult() {
37
+ return;
38
+ }
39
+ }
40
+ export { AojBpDeviceClass as AojBpDevice };
41
+ //# sourceMappingURL=aoj-bp.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IntegratedDevices","BTManagedDevice","AOJ_BP","AOJ_BP_FFF0","AojBpFrameReader","AojBpSequencer","passThrough","caseValuePosition","cases","servicesFor","gatt","uuid","service","monitorUuids","notify","parsingModel","AojBpDeviceClass","stuckDataTimeout","onStreamStart","undefined","constructor","device","params","fff0","deviceName","AOJ_BPM_FFF0","mainServices","frameReader","createCommandSequencer","write","listenOnly","onResult","result","handleSuccessResult","AojBpDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/aoj/aoj-bp.device.ts"],"mappings":";;AAIA,SAASA,iBAAiB,QAAQ,sCAAmC;AAGrE,SAASC,eAAe,QAAQ,yBAAsB;AAEtD,SAASC,MAAM,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,sBAAmB;AACzE,SAASC,cAAc,QAAQ,uBAAoB;AAInD,MAAMC,WAAW,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAExD,MAAMC,WAAW,GAAIC,IAAyC,IAAiB,CAC7E;EAAEC,IAAI,EAAED,IAAI,CAACE,OAAO;EAAEC,YAAY,EAAE,CAAC;IAAEF,IAAI,EAAED,IAAI,CAACI,MAAM;IAAEC,YAAY,EAAET;EAAY,CAAC;AAAE,CAAC,CACzF;;AAED;AACA,MAAMU,gBAAgB,SAASf,eAAe,CAAc;EAEhDgB,gBAAgB,GAAG,MAAM;EACzBC,aAAa,GAAGC,SAAS;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAuC,EAAE;IAC1E,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IAErB,MAAMC,IAAI,GAAGD,MAAM,CAACE,UAAU,KAAKxB,iBAAiB,CAACyB,YAAY;IACjE,MAAMf,IAAI,GAAGa,IAAI,GAAGpB,WAAW,GAAGD,MAAM;IAExC,IAAI,CAACwB,YAAY,GAAGjB,WAAW,CAACC,IAAI,CAAC;IACrC,IAAI,CAACiB,WAAW,GAAG,IAAIvB,gBAAgB,CAAC,CAAC;IACzC,IAAI,CAACwB,sBAAsB,GAAG,MAC5B,IAAIvB,cAAc,CAAC;MACjBO,OAAO,EAAEF,IAAI,CAACE,OAAO;MACrBiB,KAAK,EAAEnB,IAAI,CAACmB,KAAK;MACjBC,UAAU,EAAEP,IAAI;MAChBQ,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MACF;IACJ,CAAC,CAAC;EACN;EAEUC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAEA,SAASjB,gBAAgB,IAAIkB,WAAW","ignoreList":[]}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable import/group-exports */
4
+
5
+ import { FrameReadStatus } from "../../../types/frame-read-status.js";
6
+ import { calculateCrc8Maxim } from "../../../utils/calculate-crc-8-maxim.js";
7
+ import { hexToByte } from "../../../utils/hex-to-byte.js";
8
+
9
+ /**
10
+ * AOJ Medical's blood-pressure protocol (AOJ-30x/33x, ARM-111, WRS-35E and rebrands), from
11
+ * MedM Health Diary 3.12.11's `CAOJMedical_BPM`. It is not the AOJ-20A thermometer's framing.
12
+ *
13
+ * Frames are `BE B0` (app to device) or `D0 C2` (device to app), a length counting the command
14
+ * and payload, the command, the payload, and CRC-8/MAXIM over every byte before it.
15
+ */
16
+ const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
17
+ export const AOJ_BP = {
18
+ service: sig16("ffe0"),
19
+ notify: sig16("ffe1"),
20
+ write: sig16("ffe2")
21
+ };
22
+
23
+ /** The Cazon BSX530B variant: one characteristic for both directions, and a listen-only session. */
24
+ export const AOJ_BP_FFF0 = {
25
+ service: sig16("fff0"),
26
+ notify: sig16("fff6"),
27
+ write: sig16("fff6")
28
+ };
29
+ export const AOJ_COMMAND = {
30
+ ack: 0x00,
31
+ serial: 0xd6,
32
+ systemInfo: 0xd8,
33
+ voice: 0xd9,
34
+ record: 0xcc
35
+ };
36
+ const DEVICE_HEADER = [0xd0, 0xc2];
37
+ const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
38
+ export const frame = (command, payload = []) => {
39
+ const bytes = toHex([0xbe, 0xb0, payload.length + 1, command, ...payload]);
40
+ return [...bytes, ...toHex([calculateCrc8Maxim(bytes, bytes.length)])];
41
+ };
42
+ export const commandOf = received => hexToByte(received[3] ?? "00");
43
+ export const payloadOf = received => received.slice(4, -1).map(byte => hexToByte(byte));
44
+ export const updateStatusCommand = () => frame(0xb2);
45
+ export const setTimeCommand = now => frame(0xb1, [now.getFullYear() >> 8, now.getFullYear() & 0xff, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()]);
46
+ export const getSerialCommand = () => frame(0xd6, [0x00]);
47
+ export const getSystemInfoCommand = () => frame(0xd8);
48
+
49
+ /** Voice off: the SDK has no setting for spoken readings. */
50
+ export const setVoiceCommand = () => frame(0xd9, [0x03, 0x00]);
51
+
52
+ /** `D7 FF 01`: send stored records for every user. */
53
+ export const getDataCommand = () => frame(0xd7, [0xff, 0x01]);
54
+ export const ackCommand = () => frame(0x00, [0x00]);
55
+ export const turnOffCommand = () => frame(0xd0);
56
+
57
+ /** Isolates `D0 C2` frames whatever the notification boundaries. */
58
+ export class AojBpFrameReader {
59
+ readFrame(buffer) {
60
+ const start = buffer.findIndex((byte, index) => hexToByte(byte) === DEVICE_HEADER[0] && (index + 1 >= buffer.length || hexToByte(buffer[index + 1] ?? "00") === DEVICE_HEADER[1]));
61
+ if (start === -1) {
62
+ return {
63
+ status: FrameReadStatus.INCOMPLETE,
64
+ consumedBytes: buffer.length
65
+ };
66
+ }
67
+ if (start + 3 > buffer.length) {
68
+ return {
69
+ status: FrameReadStatus.INCOMPLETE,
70
+ consumedBytes: start
71
+ };
72
+ }
73
+ const length = hexToByte(buffer[start + 2] ?? "00") + 4;
74
+ if (start + length > buffer.length) {
75
+ return {
76
+ status: FrameReadStatus.INCOMPLETE,
77
+ consumedBytes: start
78
+ };
79
+ }
80
+ const received = buffer.slice(start, start + length);
81
+ if (calculateCrc8Maxim(received, length - 1) !== hexToByte(received[length - 1] ?? "00")) {
82
+ return {
83
+ status: FrameReadStatus.CORRUPT,
84
+ consumedBytes: start + 1
85
+ };
86
+ }
87
+ return {
88
+ status: FrameReadStatus.COMPLETE,
89
+ consumedBytes: start + length,
90
+ frame: received
91
+ };
92
+ }
93
+ }
94
+
95
+ /** `D8`: the unsent-record counts for users 1 and 2, used to know when the upload is done. */
96
+ export const readUnsentCount = payload => (payload[4] ?? 0) + (payload[5] ?? 0);
97
+ /**
98
+ * `CC`: systolic, diastolic and pulse (mmHg, bpm), flags (bit 0 irregular heartbeat, top nibble
99
+ * the user), then `YYYY MM DD hh mm ss` local time. Diastolic, pulse and flags all zero is an
100
+ * error record whose first byte is the error code; a zero year means the clock was never set.
101
+ */
102
+ export const readBloodPressure = payload => {
103
+ if (payload.length < 11) {
104
+ return undefined;
105
+ }
106
+ const [systolic = 0, diastolic = 0, heartRate = 0, flags = 0] = payload;
107
+ const year = (payload[4] ?? 0) << 8 | (payload[5] ?? 0);
108
+ if (diastolic === 0 && heartRate === 0 && flags === 0 || year === 0) {
109
+ return undefined;
110
+ }
111
+ const user = flags >> 4;
112
+ return {
113
+ systolic,
114
+ diastolic,
115
+ heartRate,
116
+ irregularHeartbeat: (flags & 0x01) !== 0,
117
+ recordedAt: new Date(year, (payload[6] ?? 1) - 1, payload[7] ?? 1, payload[8] ?? 0, payload[9] ?? 0, payload[10] ?? 0),
118
+ ...(user > 0 ? {
119
+ memorySlot: user
120
+ } : {})
121
+ };
122
+ };
123
+ //# sourceMappingURL=aoj-bp.protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FrameReadStatus","calculateCrc8Maxim","hexToByte","sig16","assigned","AOJ_BP","service","notify","write","AOJ_BP_FFF0","AOJ_COMMAND","ack","serial","systemInfo","voice","record","DEVICE_HEADER","toHex","bytes","map","value","toString","padStart","frame","command","payload","length","commandOf","received","payloadOf","slice","byte","updateStatusCommand","setTimeCommand","now","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getSerialCommand","getSystemInfoCommand","setVoiceCommand","getDataCommand","ackCommand","turnOffCommand","AojBpFrameReader","readFrame","buffer","start","findIndex","index","status","INCOMPLETE","consumedBytes","CORRUPT","COMPLETE","readUnsentCount","readBloodPressure","undefined","systolic","diastolic","heartRate","flags","year","user","irregularHeartbeat","recordedAt","Date","memorySlot"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/aoj/aoj-bp.protocol.ts"],"mappings":";;AAAA;;AAGA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,SAASC,kBAAkB,QAAQ,yCAAsC;AACzE,SAASC,SAAS,QAAQ,+BAA4B;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,KAAK,GAAIC,QAAgB,IAC7B,OAAOA,QAAQ,8BAA8B;AAE/C,OAAO,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAEH,KAAK,CAAC,MAAM,CAAC;EACtBI,MAAM,EAAEJ,KAAK,CAAC,MAAM,CAAC;EACrBK,KAAK,EAAEL,KAAK,CAAC,MAAM;AACrB,CAAU;;AAEV;AACA,OAAO,MAAMM,WAAW,GAAG;EACzBH,OAAO,EAAEH,KAAK,CAAC,MAAM,CAAC;EACtBI,MAAM,EAAEJ,KAAK,CAAC,MAAM,CAAC;EACrBK,KAAK,EAAEL,KAAK,CAAC,MAAM;AACrB,CAAU;AAEV,OAAO,MAAMO,WAAW,GAAG;EACzBC,GAAG,EAAE,IAAI;EACTC,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EACXC,MAAM,EAAE;AACV,CAAU;AAEV,MAAMC,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC;AAElC,MAAMC,KAAK,GAAIC,KAAwB,IACrCA,KAAK,CAACC,GAAG,CAAEC,KAAK,IAAK,CAACA,KAAK,GAAG,IAAI,EAAEC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAEpE,OAAO,MAAMC,KAAK,GAAGA,CAACC,OAAe,EAAEC,OAA0B,GAAG,EAAE,KAAe;EACnF,MAAMP,KAAK,GAAGD,KAAK,CAAC,CAAC,IAAI,EAAE,IAAI,EAAEQ,OAA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EAClB;EAEA,MAAMM,IAAI,GAAGF,KAAK,IAAI,CAAC;EAEvB,OAAO;IACLH,QAAQ;IACRC,SAAS;IACTC,SAAS;IACTI,kBAAkB,EAAE,CAACH,KAAK,GAAG,IAAI,MAAM,CAAC;IACxCI,UAAU,EAAE,IAAIC,IAAI,CAClBJ,IAAI,EACJ,CAACxC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EACrBA,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EACfA,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EACfA,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EACfA,OAAO,CAAC,EAAE,CAAC,IAAI,CACjB,CAAC;IACD,IAAIyC,IAAI,GAAG,CAAC,GAAG;MAAEI,UAAU,EAAEJ;IAAK,CAAC,GAAG,CAAC,CAAC;EAC1C,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ import { MeasurementTypeKey } from "@ovok/core";
4
+ import { CaseType } from "../../../types/case-type.js";
5
+ import { ackCommand, AOJ_COMMAND, commandOf, getDataCommand, getSerialCommand, getSystemInfoCommand, payloadOf, readBloodPressure, readUnsentCount, setTimeCommand, setVoiceCommand, turnOffCommand, updateStatusCommand } from "./aoj-bp.protocol.js";
6
+ /** MedM re-sends the time every 5 s, five times, then turns the monitor off. */
7
+ const TIME_RETRY_MS = 5_000;
8
+ const TIME_ATTEMPTS = 5;
9
+ const SYSTEM_INFO_RETRY_MS = 2_000;
10
+
11
+ /** Quiet time after the last record before the monitor is turned off. */
12
+ const END_AFTER_MS = 30_000;
13
+
14
+ /**
15
+ * The AOJ blood-pressure session: status, time, serial, system info, voice, then "send stored
16
+ * data", acknowledging every record. Records stay on the monitor - the SDK never sends MedM's
17
+ * optional delete - and the monitor is turned off after the upload goes quiet.
18
+ */
19
+ class AojBpSequencer {
20
+ phase = "time";
21
+ timeAttempts = 0;
22
+ recorded = false;
23
+ turnedOff = false;
24
+ unsent = 0;
25
+ constructor(params) {
26
+ this.params = params;
27
+ }
28
+ initialCommands = () => {
29
+ if (this.params.listenOnly) {
30
+ this.phase = "data";
31
+ return [];
32
+ }
33
+ this.timeAttempts = 1;
34
+ return [this.command(updateStatusCommand()), this.command(setTimeCommand(this.now()), 1_000)];
35
+ };
36
+ isNormalDisconnect = () => this.turnedOff || this.recorded;
37
+ commandTimeoutMs = () => {
38
+ switch (this.phase) {
39
+ case "time":
40
+ return this.params.listenOnly ? undefined : TIME_RETRY_MS;
41
+ case "system-info":
42
+ return SYSTEM_INFO_RETRY_MS;
43
+ case "data":
44
+ return this.recorded && !this.params.listenOnly ? END_AFTER_MS : undefined;
45
+ default:
46
+ return undefined;
47
+ }
48
+ };
49
+ onCommandTimeout = () => {
50
+ if (this.phase === "time") {
51
+ if (this.timeAttempts >= TIME_ATTEMPTS) {
52
+ return this.turnOff();
53
+ }
54
+ this.timeAttempts += 1;
55
+ return {
56
+ commands: [this.command(setTimeCommand(this.now()))]
57
+ };
58
+ }
59
+ if (this.phase === "system-info") {
60
+ return {
61
+ commands: [this.command(getSystemInfoCommand())]
62
+ };
63
+ }
64
+ return this.phase === "data" ? this.turnOff() : {};
65
+ };
66
+ commandProgress = frame => commandOf(frame) === AOJ_COMMAND.record ? "partial" : "complete";
67
+ nextCommand = frame => {
68
+ const command = commandOf(frame);
69
+ if (command === AOJ_COMMAND.record) {
70
+ return this.record(payloadOf(frame));
71
+ }
72
+ if (this.phase === "time" && command === AOJ_COMMAND.ack) {
73
+ this.phase = "serial";
74
+ return [this.command(getSerialCommand())];
75
+ }
76
+ if (this.phase === "serial" && command === AOJ_COMMAND.serial) {
77
+ this.phase = "system-info";
78
+ return [this.command(getSystemInfoCommand())];
79
+ }
80
+ if (this.phase === "system-info" && command === AOJ_COMMAND.systemInfo) {
81
+ this.unsent = readUnsentCount(payloadOf(frame));
82
+ this.phase = "voice";
83
+ return [this.command(setVoiceCommand())];
84
+ }
85
+ if (this.phase === "voice" && command === AOJ_COMMAND.voice) {
86
+ this.phase = "data";
87
+ return [this.command(getDataCommand())];
88
+ }
89
+ return undefined;
90
+ };
91
+ record = payload => {
92
+ this.unsent -= 1;
93
+ const reading = readBloodPressure(payload);
94
+
95
+ // MedM acknowledges only a readable record; an error record is left unanswered.
96
+ if (!reading) {
97
+ return undefined;
98
+ }
99
+ this.recorded = true;
100
+ this.params.onResult({
101
+ caseType: CaseType.RESULT,
102
+ measurementTypeKey: MeasurementTypeKey.bloodPressure,
103
+ systolic: reading.systolic,
104
+ diastolic: reading.diastolic,
105
+ heartRate: reading.heartRate,
106
+ recordedAt: reading.recordedAt,
107
+ ...(reading.memorySlot ? {
108
+ memorySlot: reading.memorySlot
109
+ } : {}),
110
+ ...(reading.irregularHeartbeat ? {
111
+ irregularHeartbeat: true
112
+ } : {})
113
+ });
114
+ return [this.command(ackCommand())];
115
+ };
116
+ turnOff = () => {
117
+ this.phase = "done";
118
+ this.turnedOff = true;
119
+ return {
120
+ commands: [this.command(turnOffCommand())]
121
+ };
122
+ };
123
+ now = () => this.params.now?.() ?? new Date();
124
+ command = (frame, delayBeforeWriteMs) => ({
125
+ serviceUuid: this.params.service,
126
+ characteristicUuid: this.params.write,
127
+ frame,
128
+ ...(delayBeforeWriteMs ? {
129
+ delayBeforeWriteMs
130
+ } : {})
131
+ });
132
+ }
133
+ export { AojBpSequencer };
134
+ //# sourceMappingURL=aoj-bp.sequencer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MeasurementTypeKey","CaseType","ackCommand","AOJ_COMMAND","commandOf","getDataCommand","getSerialCommand","getSystemInfoCommand","payloadOf","readBloodPressure","readUnsentCount","setTimeCommand","setVoiceCommand","turnOffCommand","updateStatusCommand","TIME_RETRY_MS","TIME_ATTEMPTS","SYSTEM_INFO_RETRY_MS","END_AFTER_MS","AojBpSequencer","phase","timeAttempts","recorded","turnedOff","unsent","constructor","params","initialCommands","listenOnly","command","now","isNormalDisconnect","commandTimeoutMs","undefined","onCommandTimeout","turnOff","commands","commandProgress","frame","record","nextCommand","ack","serial","systemInfo","voice","payload","reading","onResult","caseType","RESULT","measurementTypeKey","bloodPressure","systolic","diastolic","heartRate","recordedAt","memorySlot","irregularHeartbeat","Date","delayBeforeWriteMs","serviceUuid","service","characteristicUuid","write"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/aoj/aoj-bp.sequencer.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,YAAY;AAE/C,SAASC,QAAQ,QAAQ,6BAA0B;AAInD,SACEC,UAAU,EACVC,WAAW,EACXC,SAAS,EACTC,cAAc,EACdC,gBAAgB,EAChBC,oBAAoB,EACpBC,SAAS,EACTC,iBAAiB,EACjBC,eAAe,EACfC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,mBAAmB,QACd,sBAAmB;AAc1B;AACA,MAAMC,aAAa,GAAG,KAAK;AAC3B,MAAMC,aAAa,GAAG,CAAC;AACvB,MAAMC,oBAAoB,GAAG,KAAK;;AAElC;AACA,MAAMC,YAAY,GAAG,MAAM;;AAE3B;AACA;AACA;AACA;AACA;AACA,MAAMC,cAAc,CAA6B;EACvCC,KAAK,GAAU,MAAM;EACrBC,YAAY,GAAG,CAAC;EAChBC,QAAQ,GAAG,KAAK;EAChBC,SAAS,GAAG,KAAK;EACjBC,MAAM,GAAG,CAAC;EAEXC,WAAWA,CAAkBC,MAA4B,EAAE;IAAA,KAA9BA,MAA4B,GAA5BA,MAA4B;EAAG;EAE5DC,eAAe,GAAGA,CAAA,KAAgC;IACvD,IAAI,IAAI,CAACD,MAAM,CAACE,UAAU,EAAE;MAC1B,IAAI,CAACR,KAAK,GAAG,MAAM;MAEnB,OAAO,EAAE;IACX;IAEA,IAAI,CAACC,YAAY,GAAG,CAAC;IAErB,OAAO,CACL,IAAI,CAACQ,OAAO,CAACf,mBAAmB,CAAC,CAAC,CAAC,EACnC,IAAI,CAACe,OAAO,CAAClB,cAAc,CAAC,IAAI,CAACmB,GAAG,CA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pC,MAAM,CAACqC,KAAK;IACrCzB,KAAK;IACL,IAAIqB,kBAAkB,GAAG;MAAEA;IAAmB,CAAC,GAAG,CAAC,CAAC;EACtD,CAAC,CAAC;AACJ;AAEA,SAASxC,cAAc","ignoreList":[]}
@@ -5,17 +5,17 @@ import { CaseType } from "../../../types/case-type.js";
5
5
  import { IntegratedDevices } from "../../../types/integrated-devices.js";
6
6
  import { hexToByte } from "../../../utils/hex-to-byte.js";
7
7
  import { BTManagedDevice } from "../bt-managed-device.js";
8
- const LEGACY_SERVICE = "00001523-1212-efde-1523-785feabcd123";
9
- const LEGACY_CHARACTERISTIC = "00001524-1212-efde-1523-785feabcd123";
8
+ import { TAIDOC, TAIDOC_CHARACTERISTIC, TAIDOC_SERVICE, taidocCommand } from "../taidoc/taidoc.protocol.js";
9
+ import { isPatientGlucoseRecord } from "../taidoc/taidoc.records.js";
10
10
  const BGM_SERVICE = "0003cdd0-0000-1000-8000-00805f9b0131";
11
11
  const BGM_CHARACTERISTIC = "0003cdd1-0000-1000-8000-00805f9b0131";
12
- const GLUCOSE_REQUEST = "512600000000a31a";
12
+ const GLUCOSE_REQUEST = taidocCommand(TAIDOC.readingResult).join("");
13
13
  const servicesFor = device => {
14
14
  const isBgm = device === IntegratedDevices.BGM;
15
15
  return [{
16
- uuid: isBgm ? BGM_SERVICE : LEGACY_SERVICE,
16
+ uuid: isBgm ? BGM_SERVICE : TAIDOC_SERVICE,
17
17
  monitorUuids: [{
18
- uuid: isBgm ? BGM_CHARACTERISTIC : LEGACY_CHARACTERISTIC,
18
+ uuid: isBgm ? BGM_CHARACTERISTIC : TAIDOC_CHARACTERISTIC,
19
19
  parsingModel: {
20
20
  caseValuePosition: [isBgm ? 9 : 1],
21
21
  cases: [...(isBgm ? ["00", "0b", "10", "11", "18", "22", "33", "55"] : ["46", ...(device === IntegratedDevices.GLUCOCHECK ? ["50"] : [])]).map(caseValue => ({
@@ -44,7 +44,7 @@ const servicesFor = device => {
44
44
  }],
45
45
  ...(isBgm ? {} : {
46
46
  writeUuid: {
47
- uuid: LEGACY_CHARACTERISTIC,
47
+ uuid: TAIDOC_CHARACTERISTIC,
48
48
  mainCommandUuid: GLUCOSE_REQUEST
49
49
  }
50
50
  })
@@ -59,10 +59,15 @@ export class BloodGlucoseDevice extends BTManagedDevice {
59
59
  this.mainServices = servicesFor(params.deviceName);
60
60
  }
61
61
  validatePackage = pkg => pkg.length >= (this.deviceData.name === IntegratedDevices.BGM ? 12 : 8);
62
- handleSuccessResult(result) {
62
+ handleSuccessResult(result, frame) {
63
63
  if (result.caseType !== CaseType.RESULT || result.bloodGlucose === 0) {
64
64
  return;
65
65
  }
66
+
67
+ // A ketone, cholesterol or control-solution record decodes to a number too; it is not glucose.
68
+ if (this.deviceData.name !== IntegratedDevices.BGM && !isPatientGlucoseRecord(frame)) {
69
+ return;
70
+ }
66
71
  this.onResult?.(result);
67
72
  }
68
73
  }