@rickosborne/bluetools 2025.3.9

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 (410) hide show
  1. package/README.md +2624 -0
  2. package/assigned.cjs +577 -0
  3. package/assigned.cjs.map +6 -0
  4. package/assigned.d.ts +552 -0
  5. package/assigned.d.ts.map +1 -0
  6. package/assigned.mjs +557 -0
  7. package/assigned.mjs.map +6 -0
  8. package/battery-level.cjs +50 -0
  9. package/battery-level.cjs.map +6 -0
  10. package/battery-level.d.ts +25 -0
  11. package/battery-level.d.ts.map +1 -0
  12. package/battery-level.mjs +31 -0
  13. package/battery-level.mjs.map +6 -0
  14. package/cross-trainer-data.cjs +188 -0
  15. package/cross-trainer-data.cjs.map +6 -0
  16. package/cross-trainer-data.d.ts +192 -0
  17. package/cross-trainer-data.d.ts.map +1 -0
  18. package/cross-trainer-data.mjs +169 -0
  19. package/cross-trainer-data.mjs.map +6 -0
  20. package/csc-feature.cjs +59 -0
  21. package/csc-feature.cjs.map +6 -0
  22. package/csc-feature.d.ts +55 -0
  23. package/csc-feature.d.ts.map +1 -0
  24. package/csc-feature.mjs +40 -0
  25. package/csc-feature.mjs.map +6 -0
  26. package/csc-measurement.cjs +76 -0
  27. package/csc-measurement.cjs.map +6 -0
  28. package/csc-measurement.d.ts +57 -0
  29. package/csc-measurement.d.ts.map +1 -0
  30. package/csc-measurement.mjs +57 -0
  31. package/csc-measurement.mjs.map +6 -0
  32. package/current-time.cjs +66 -0
  33. package/current-time.cjs.map +6 -0
  34. package/current-time.d.ts +65 -0
  35. package/current-time.d.ts.map +1 -0
  36. package/current-time.mjs +47 -0
  37. package/current-time.mjs.map +6 -0
  38. package/data-view-from-hex.cjs +34 -0
  39. package/data-view-from-hex.cjs.map +6 -0
  40. package/data-view-from-hex.d.ts +6 -0
  41. package/data-view-from-hex.d.ts.map +1 -0
  42. package/data-view-from-hex.mjs +15 -0
  43. package/data-view-from-hex.mjs.map +6 -0
  44. package/data-view-reader.cjs +115 -0
  45. package/data-view-reader.cjs.map +6 -0
  46. package/data-view-reader.d.ts +21 -0
  47. package/data-view-reader.d.ts.map +1 -0
  48. package/data-view-reader.mjs +96 -0
  49. package/data-view-reader.mjs.map +6 -0
  50. package/date-time.cjs +65 -0
  51. package/date-time.cjs.map +6 -0
  52. package/date-time.d.ts +89 -0
  53. package/date-time.d.ts.map +1 -0
  54. package/date-time.mjs +46 -0
  55. package/date-time.mjs.map +6 -0
  56. package/day-date-time.cjs +55 -0
  57. package/day-date-time.cjs.map +6 -0
  58. package/day-date-time.d.ts +21 -0
  59. package/day-date-time.d.ts.map +1 -0
  60. package/day-date-time.mjs +36 -0
  61. package/day-date-time.mjs.map +6 -0
  62. package/day-of-week.cjs +50 -0
  63. package/day-of-week.cjs.map +6 -0
  64. package/day-of-week.d.ts +33 -0
  65. package/day-of-week.d.ts.map +1 -0
  66. package/day-of-week.mjs +31 -0
  67. package/day-of-week.mjs.map +6 -0
  68. package/dst-offset.cjs +50 -0
  69. package/dst-offset.cjs.map +6 -0
  70. package/dst-offset.d.ts +30 -0
  71. package/dst-offset.d.ts.map +1 -0
  72. package/dst-offset.mjs +31 -0
  73. package/dst-offset.mjs.map +6 -0
  74. package/elevation.cjs +50 -0
  75. package/elevation.cjs.map +6 -0
  76. package/elevation.d.ts +22 -0
  77. package/elevation.d.ts.map +1 -0
  78. package/elevation.mjs +31 -0
  79. package/elevation.mjs.map +6 -0
  80. package/exact-time-256.cjs +54 -0
  81. package/exact-time-256.cjs.map +6 -0
  82. package/exact-time-256.d.ts +27 -0
  83. package/exact-time-256.d.ts.map +1 -0
  84. package/exact-time-256.mjs +35 -0
  85. package/exact-time-256.mjs.map +6 -0
  86. package/firmware-revision-string.cjs +50 -0
  87. package/firmware-revision-string.cjs.map +6 -0
  88. package/firmware-revision-string.d.ts +19 -0
  89. package/firmware-revision-string.d.ts.map +1 -0
  90. package/firmware-revision-string.mjs +31 -0
  91. package/firmware-revision-string.mjs.map +6 -0
  92. package/five-zone-heart-rate-limits.cjs +59 -0
  93. package/five-zone-heart-rate-limits.cjs.map +6 -0
  94. package/five-zone-heart-rate-limits.d.ts +47 -0
  95. package/five-zone-heart-rate-limits.d.ts.map +1 -0
  96. package/five-zone-heart-rate-limits.mjs +40 -0
  97. package/five-zone-heart-rate-limits.mjs.map +6 -0
  98. package/gatt-characteristic-presentation-format.cjs +62 -0
  99. package/gatt-characteristic-presentation-format.cjs.map +6 -0
  100. package/gatt-characteristic-presentation-format.d.ts +91 -0
  101. package/gatt-characteristic-presentation-format.d.ts.map +1 -0
  102. package/gatt-characteristic-presentation-format.mjs +43 -0
  103. package/gatt-characteristic-presentation-format.mjs.map +6 -0
  104. package/gatt.cjs +57 -0
  105. package/gatt.cjs.map +6 -0
  106. package/gatt.d.ts +4 -0
  107. package/gatt.d.ts.map +1 -0
  108. package/gatt.mjs +38 -0
  109. package/gatt.mjs.map +6 -0
  110. package/glucose-feature.cjs +83 -0
  111. package/glucose-feature.cjs.map +6 -0
  112. package/glucose-feature.d.ts +127 -0
  113. package/glucose-feature.d.ts.map +1 -0
  114. package/glucose-feature.mjs +64 -0
  115. package/glucose-feature.mjs.map +6 -0
  116. package/glucose-measurement-context.cjs +133 -0
  117. package/glucose-measurement-context.cjs.map +6 -0
  118. package/glucose-measurement-context.d.ts +183 -0
  119. package/glucose-measurement-context.d.ts.map +1 -0
  120. package/glucose-measurement-context.mjs +114 -0
  121. package/glucose-measurement-context.mjs.map +6 -0
  122. package/glucose-measurement.cjs +136 -0
  123. package/glucose-measurement.cjs.map +6 -0
  124. package/glucose-measurement.d.ts +230 -0
  125. package/glucose-measurement.d.ts.map +1 -0
  126. package/glucose-measurement.mjs +117 -0
  127. package/glucose-measurement.mjs.map +6 -0
  128. package/hardware-revision-string.cjs +50 -0
  129. package/hardware-revision-string.cjs.map +6 -0
  130. package/hardware-revision-string.d.ts +19 -0
  131. package/hardware-revision-string.d.ts.map +1 -0
  132. package/hardware-revision-string.mjs +31 -0
  133. package/hardware-revision-string.mjs.map +6 -0
  134. package/heart-rate-control-point.cjs +50 -0
  135. package/heart-rate-control-point.cjs.map +6 -0
  136. package/heart-rate-control-point.d.ts +26 -0
  137. package/heart-rate-control-point.d.ts.map +1 -0
  138. package/heart-rate-control-point.mjs +31 -0
  139. package/heart-rate-control-point.mjs.map +6 -0
  140. package/heart-rate-max.cjs +50 -0
  141. package/heart-rate-max.cjs.map +6 -0
  142. package/heart-rate-max.d.ts +23 -0
  143. package/heart-rate-max.d.ts.map +1 -0
  144. package/heart-rate-max.mjs +31 -0
  145. package/heart-rate-max.mjs.map +6 -0
  146. package/heart-rate-measurement.cjs +79 -0
  147. package/heart-rate-measurement.cjs.map +6 -0
  148. package/heart-rate-measurement.d.ts +65 -0
  149. package/heart-rate-measurement.d.ts.map +1 -0
  150. package/heart-rate-measurement.mjs +60 -0
  151. package/heart-rate-measurement.mjs.map +6 -0
  152. package/heart-rate.cjs +58 -0
  153. package/heart-rate.cjs.map +6 -0
  154. package/heart-rate.d.ts +7 -0
  155. package/heart-rate.d.ts.map +1 -0
  156. package/heart-rate.mjs +39 -0
  157. package/heart-rate.mjs.map +6 -0
  158. package/index.cjs +84 -0
  159. package/index.cjs.map +6 -0
  160. package/index.d.ts +67 -0
  161. package/index.d.ts.map +1 -0
  162. package/index.mjs +67 -0
  163. package/index.mjs.map +6 -0
  164. package/indoor-bike-data.cjs +153 -0
  165. package/indoor-bike-data.cjs.map +6 -0
  166. package/indoor-bike-data.d.ts +146 -0
  167. package/indoor-bike-data.d.ts.map +1 -0
  168. package/indoor-bike-data.mjs +134 -0
  169. package/indoor-bike-data.mjs.map +6 -0
  170. package/language.cjs +50 -0
  171. package/language.cjs.map +6 -0
  172. package/language.d.ts +22 -0
  173. package/language.d.ts.map +1 -0
  174. package/language.mjs +31 -0
  175. package/language.mjs.map +6 -0
  176. package/latitude.cjs +50 -0
  177. package/latitude.cjs.map +6 -0
  178. package/latitude.d.ts +19 -0
  179. package/latitude.d.ts.map +1 -0
  180. package/latitude.mjs +31 -0
  181. package/latitude.mjs.map +6 -0
  182. package/local-time-information.cjs +55 -0
  183. package/local-time-information.cjs.map +6 -0
  184. package/local-time-information.d.ts +21 -0
  185. package/local-time-information.d.ts.map +1 -0
  186. package/local-time-information.mjs +36 -0
  187. package/local-time-information.mjs.map +6 -0
  188. package/location-and-speed.cjs +114 -0
  189. package/location-and-speed.cjs.map +6 -0
  190. package/location-and-speed.d.ts +182 -0
  191. package/location-and-speed.d.ts.map +1 -0
  192. package/location-and-speed.mjs +95 -0
  193. package/location-and-speed.mjs.map +6 -0
  194. package/location-name.cjs +50 -0
  195. package/location-name.cjs.map +6 -0
  196. package/location-name.d.ts +19 -0
  197. package/location-name.d.ts.map +1 -0
  198. package/location-name.mjs +31 -0
  199. package/location-name.mjs.map +6 -0
  200. package/longitude.cjs +50 -0
  201. package/longitude.cjs.map +6 -0
  202. package/longitude.d.ts +19 -0
  203. package/longitude.d.ts.map +1 -0
  204. package/longitude.mjs +31 -0
  205. package/longitude.mjs.map +6 -0
  206. package/manufacturer-name-string.cjs +50 -0
  207. package/manufacturer-name-string.cjs.map +6 -0
  208. package/manufacturer-name-string.d.ts +19 -0
  209. package/manufacturer-name-string.d.ts.map +1 -0
  210. package/manufacturer-name-string.mjs +31 -0
  211. package/manufacturer-name-string.mjs.map +6 -0
  212. package/maximum-recommended-heart-rate.cjs +50 -0
  213. package/maximum-recommended-heart-rate.cjs.map +6 -0
  214. package/maximum-recommended-heart-rate.d.ts +23 -0
  215. package/maximum-recommended-heart-rate.d.ts.map +1 -0
  216. package/maximum-recommended-heart-rate.mjs +31 -0
  217. package/maximum-recommended-heart-rate.mjs.map +6 -0
  218. package/measurement-interval.cjs +50 -0
  219. package/measurement-interval.cjs.map +6 -0
  220. package/measurement-interval.d.ts +27 -0
  221. package/measurement-interval.d.ts.map +1 -0
  222. package/measurement-interval.mjs +31 -0
  223. package/measurement-interval.mjs.map +6 -0
  224. package/model-number-string.cjs +50 -0
  225. package/model-number-string.cjs.map +6 -0
  226. package/model-number-string.d.ts +19 -0
  227. package/model-number-string.d.ts.map +1 -0
  228. package/model-number-string.mjs +31 -0
  229. package/model-number-string.mjs.map +6 -0
  230. package/navigation.cjs +90 -0
  231. package/navigation.cjs.map +6 -0
  232. package/navigation.d.ts +134 -0
  233. package/navigation.d.ts.map +1 -0
  234. package/navigation.mjs +71 -0
  235. package/navigation.mjs.map +6 -0
  236. package/number-of-digitals.cjs +50 -0
  237. package/number-of-digitals.cjs.map +6 -0
  238. package/number-of-digitals.d.ts +19 -0
  239. package/number-of-digitals.d.ts.map +1 -0
  240. package/number-of-digitals.mjs +31 -0
  241. package/number-of-digitals.mjs.map +6 -0
  242. package/package.json +456 -0
  243. package/plx-continuous-measurement.cjs +184 -0
  244. package/plx-continuous-measurement.cjs.map +6 -0
  245. package/plx-continuous-measurement.d.ts +352 -0
  246. package/plx-continuous-measurement.d.ts.map +1 -0
  247. package/plx-continuous-measurement.mjs +165 -0
  248. package/plx-continuous-measurement.mjs.map +6 -0
  249. package/plx-features.cjs +163 -0
  250. package/plx-features.cjs.map +6 -0
  251. package/plx-features.d.ts +354 -0
  252. package/plx-features.d.ts.map +1 -0
  253. package/plx-features.mjs +144 -0
  254. package/plx-features.mjs.map +6 -0
  255. package/plx-spot-check-measurement.cjs +169 -0
  256. package/plx-spot-check-measurement.cjs.map +6 -0
  257. package/plx-spot-check-measurement.d.ts +334 -0
  258. package/plx-spot-check-measurement.d.ts.map +1 -0
  259. package/plx-spot-check-measurement.mjs +150 -0
  260. package/plx-spot-check-measurement.mjs.map +6 -0
  261. package/reference-time-information.cjs +61 -0
  262. package/reference-time-information.cjs.map +6 -0
  263. package/reference-time-information.d.ts +38 -0
  264. package/reference-time-information.d.ts.map +1 -0
  265. package/reference-time-information.mjs +42 -0
  266. package/reference-time-information.mjs.map +6 -0
  267. package/resting-heart-rate.cjs +50 -0
  268. package/resting-heart-rate.cjs.map +6 -0
  269. package/resting-heart-rate.d.ts +23 -0
  270. package/resting-heart-rate.d.ts.map +1 -0
  271. package/resting-heart-rate.mjs +31 -0
  272. package/resting-heart-rate.mjs.map +6 -0
  273. package/rsc-feature.cjs +65 -0
  274. package/rsc-feature.cjs.map +6 -0
  275. package/rsc-feature.d.ts +73 -0
  276. package/rsc-feature.d.ts.map +1 -0
  277. package/rsc-feature.mjs +46 -0
  278. package/rsc-feature.mjs.map +6 -0
  279. package/rsc-measurement.cjs +73 -0
  280. package/rsc-measurement.cjs.map +6 -0
  281. package/rsc-measurement.d.ts +70 -0
  282. package/rsc-measurement.d.ts.map +1 -0
  283. package/rsc-measurement.mjs +54 -0
  284. package/rsc-measurement.mjs.map +6 -0
  285. package/scripts/fetch-and-cache-text.d.ts +2 -0
  286. package/scripts/fetch-and-cache-text.d.ts.map +1 -0
  287. package/scripts/from-xml.d.ts +2 -0
  288. package/scripts/from-xml.d.ts.map +1 -0
  289. package/scripts/gatt-assigned.d.ts +2 -0
  290. package/scripts/gatt-assigned.d.ts.map +1 -0
  291. package/sensor-location.cjs +50 -0
  292. package/sensor-location.cjs.map +6 -0
  293. package/sensor-location.d.ts +42 -0
  294. package/sensor-location.d.ts.map +1 -0
  295. package/sensor-location.mjs +31 -0
  296. package/sensor-location.mjs.map +6 -0
  297. package/serial-number-string.cjs +50 -0
  298. package/serial-number-string.cjs.map +6 -0
  299. package/serial-number-string.d.ts +19 -0
  300. package/serial-number-string.d.ts.map +1 -0
  301. package/serial-number-string.mjs +31 -0
  302. package/serial-number-string.mjs.map +6 -0
  303. package/software-revision-string.cjs +50 -0
  304. package/software-revision-string.cjs.map +6 -0
  305. package/software-revision-string.d.ts +19 -0
  306. package/software-revision-string.d.ts.map +1 -0
  307. package/software-revision-string.mjs +31 -0
  308. package/software-revision-string.mjs.map +6 -0
  309. package/supported-heart-rate-range.cjs +56 -0
  310. package/supported-heart-rate-range.cjs.map +6 -0
  311. package/supported-heart-rate-range.d.ts +37 -0
  312. package/supported-heart-rate-range.d.ts.map +1 -0
  313. package/supported-heart-rate-range.mjs +37 -0
  314. package/supported-heart-rate-range.mjs.map +6 -0
  315. package/supported-inclination-range.cjs +56 -0
  316. package/supported-inclination-range.cjs.map +6 -0
  317. package/supported-inclination-range.d.ts +37 -0
  318. package/supported-inclination-range.d.ts.map +1 -0
  319. package/supported-inclination-range.mjs +37 -0
  320. package/supported-inclination-range.mjs.map +6 -0
  321. package/supported-speed-range.cjs +56 -0
  322. package/supported-speed-range.cjs.map +6 -0
  323. package/supported-speed-range.d.ts +37 -0
  324. package/supported-speed-range.d.ts.map +1 -0
  325. package/supported-speed-range.mjs +37 -0
  326. package/supported-speed-range.mjs.map +6 -0
  327. package/system-id.cjs +53 -0
  328. package/system-id.cjs.map +6 -0
  329. package/system-id.d.ts +34 -0
  330. package/system-id.d.ts.map +1 -0
  331. package/system-id.mjs +34 -0
  332. package/system-id.mjs.map +6 -0
  333. package/temperature-measurement.cjs +79 -0
  334. package/temperature-measurement.cjs.map +6 -0
  335. package/temperature-measurement.d.ts +61 -0
  336. package/temperature-measurement.d.ts.map +1 -0
  337. package/temperature-measurement.mjs +60 -0
  338. package/temperature-measurement.mjs.map +6 -0
  339. package/temperature-type.cjs +50 -0
  340. package/temperature-type.cjs.map +6 -0
  341. package/temperature-type.d.ts +37 -0
  342. package/temperature-type.d.ts.map +1 -0
  343. package/temperature-type.mjs +31 -0
  344. package/temperature-type.mjs.map +6 -0
  345. package/temperature.cjs +50 -0
  346. package/temperature.cjs.map +6 -0
  347. package/temperature.d.ts +22 -0
  348. package/temperature.d.ts.map +1 -0
  349. package/temperature.mjs +31 -0
  350. package/temperature.mjs.map +6 -0
  351. package/three-zone-heart-rate-limits.cjs +53 -0
  352. package/three-zone-heart-rate-limits.cjs.map +6 -0
  353. package/three-zone-heart-rate-limits.d.ts +33 -0
  354. package/three-zone-heart-rate-limits.d.ts.map +1 -0
  355. package/three-zone-heart-rate-limits.mjs +34 -0
  356. package/three-zone-heart-rate-limits.mjs.map +6 -0
  357. package/time-accuracy.cjs +50 -0
  358. package/time-accuracy.cjs.map +6 -0
  359. package/time-accuracy.d.ts +23 -0
  360. package/time-accuracy.d.ts.map +1 -0
  361. package/time-accuracy.mjs +31 -0
  362. package/time-accuracy.mjs.map +6 -0
  363. package/time-source.cjs +50 -0
  364. package/time-source.cjs.map +6 -0
  365. package/time-source.d.ts +33 -0
  366. package/time-source.d.ts.map +1 -0
  367. package/time-source.mjs +31 -0
  368. package/time-source.mjs.map +6 -0
  369. package/time-update-control-point.cjs +50 -0
  370. package/time-update-control-point.cjs.map +6 -0
  371. package/time-update-control-point.d.ts +29 -0
  372. package/time-update-control-point.d.ts.map +1 -0
  373. package/time-update-control-point.mjs +31 -0
  374. package/time-update-control-point.mjs.map +6 -0
  375. package/time-update-state.cjs +53 -0
  376. package/time-update-state.cjs.map +6 -0
  377. package/time-update-state.d.ts +45 -0
  378. package/time-update-state.d.ts.map +1 -0
  379. package/time-update-state.mjs +34 -0
  380. package/time-update-state.mjs.map +6 -0
  381. package/time-with-dst.cjs +55 -0
  382. package/time-with-dst.cjs.map +6 -0
  383. package/time-with-dst.d.ts +21 -0
  384. package/time-with-dst.d.ts.map +1 -0
  385. package/time-with-dst.mjs +36 -0
  386. package/time-with-dst.mjs.map +6 -0
  387. package/time-zone.cjs +50 -0
  388. package/time-zone.cjs.map +6 -0
  389. package/time-zone.d.ts +23 -0
  390. package/time-zone.d.ts.map +1 -0
  391. package/time-zone.mjs +31 -0
  392. package/time-zone.mjs.map +6 -0
  393. package/treadmill-data.cjs +171 -0
  394. package/treadmill-data.cjs.map +6 -0
  395. package/treadmill-data.d.ts +167 -0
  396. package/treadmill-data.d.ts.map +1 -0
  397. package/treadmill-data.mjs +152 -0
  398. package/treadmill-data.mjs.map +6 -0
  399. package/two-zone-heart-rate-limit.cjs +50 -0
  400. package/two-zone-heart-rate-limit.cjs.map +6 -0
  401. package/two-zone-heart-rate-limit.d.ts +23 -0
  402. package/two-zone-heart-rate-limit.d.ts.map +1 -0
  403. package/two-zone-heart-rate-limit.mjs +31 -0
  404. package/two-zone-heart-rate-limit.mjs.map +6 -0
  405. package/vo2-max.cjs +50 -0
  406. package/vo2-max.cjs.map +6 -0
  407. package/vo2-max.d.ts +22 -0
  408. package/vo2-max.d.ts.map +1 -0
  409. package/vo2-max.mjs +31 -0
  410. package/vo2-max.mjs.map +6 -0
@@ -0,0 +1,36 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ import { dataViewReader } from "./data-view-reader.mjs";
6
+ import { TimeZoneImpl } from "./time-zone.mjs";
7
+ import { DstOffsetImpl } from "./dst-offset.mjs";
8
+ const _LocalTimeInformationImpl = class _LocalTimeInformationImpl {
9
+ /** Parse from a DataView into {@link LocalTimeInformation}. */
10
+ static fromDataView(dataView, indexStart) {
11
+ return new _LocalTimeInformationImpl(localTimeInformationFromDataView(dataView, indexStart));
12
+ }
13
+ daylightSavingTime;
14
+ timeZone;
15
+ constructor(localTimeInformation) {
16
+ this.daylightSavingTime = localTimeInformation.daylightSavingTime;
17
+ this.timeZone = localTimeInformation.timeZone;
18
+ }
19
+ };
20
+ __name(_LocalTimeInformationImpl, "LocalTimeInformationImpl");
21
+ __publicField(_LocalTimeInformationImpl, "UUID_PREFIX", 10767);
22
+ __publicField(_LocalTimeInformationImpl, "TYPE_NAME", "org.bluetooth.characteristic.local_time_information");
23
+ __publicField(_LocalTimeInformationImpl, "NAME", "Local Time Information");
24
+ let LocalTimeInformationImpl = _LocalTimeInformationImpl;
25
+ function localTimeInformationFromDataView(dataView, indexStart = 0) {
26
+ const $dvr = dataViewReader(dataView, indexStart);
27
+ const timeZone = TimeZoneImpl.fromDataView($dvr);
28
+ const daylightSavingTime = DstOffsetImpl.fromDataView($dvr);
29
+ return { daylightSavingTime, timeZone };
30
+ }
31
+ __name(localTimeInformationFromDataView, "localTimeInformationFromDataView");
32
+ export {
33
+ LocalTimeInformationImpl,
34
+ localTimeInformationFromDataView
35
+ };
36
+ //# sourceMappingURL=local-time-information.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/local-time-information.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AACpD,SAAwB,oBAAoB;AAC5C,SAAyB,qBAAqB;AAWvC,MAAM,4BAAN,MAAM,0BAAyD;AAAA;AAAA,EAMlE,OAAc,aAAa,UAAqC,YAA2D;AACvH,WAAO,IAAI,0BAAyB,iCAAiC,UAAU,UAAU,CAAC;AAAA,EAC9F;AAAA,EAEgB;AAAA,EACA;AAAA,EAET,YAAY,sBAA4C;AAC3D,SAAK,qBAAqB,qBAAqB;AAC/C,SAAK,WAAW,qBAAqB;AAAA,EACzC;AACJ;AAjBsE;AAClE,cADS,2BACc,eAAc;AACrC,cAFS,2BAEc,aAAY;AACnC,cAHS,2BAGc,QAAO;AAH3B,IAAM,2BAAN;AAoBA,SAAS,iCAAiC,UAAqC,aAAqB,GAAyB;AAChI,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,WAAW,aAAa,aAAa,IAAI;AAC/C,QAAM,qBAAqB,cAAc,aAAa,IAAI;AAC1D,SAAO,EAAE,oBAAoB,SAAS;AAC1C;AALgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
+ var location_and_speed_exports = {};
23
+ __export(location_and_speed_exports, {
24
+ LocationAndSpeedImpl: () => LocationAndSpeedImpl,
25
+ locationAndSpeedFromDataView: () => locationAndSpeedFromDataView
26
+ });
27
+ module.exports = __toCommonJS(location_and_speed_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ var import_date_time = require("./date-time.cjs");
30
+ const _LocationAndSpeedImpl = class _LocationAndSpeedImpl {
31
+ /** Parse from a DataView into {@link LocationAndSpeed}. */
32
+ static fromDataView(dataView, indexStart) {
33
+ return new _LocationAndSpeedImpl(locationAndSpeedFromDataView(dataView, indexStart));
34
+ }
35
+ elevation;
36
+ elevationPresent;
37
+ elevationSource;
38
+ flags;
39
+ heading;
40
+ headingPresent;
41
+ headingSource;
42
+ instantaneousSpeed;
43
+ instantaneousSpeedPresent;
44
+ locationLatitude;
45
+ locationLongitude;
46
+ locationPresent;
47
+ positionStatus;
48
+ rollingTime;
49
+ rollingTimePresent;
50
+ speedAndDistanceFormat;
51
+ totalDistance;
52
+ totalDistancePresent;
53
+ utcTime;
54
+ utcTimePresent;
55
+ constructor(locationAndSpeed) {
56
+ this.elevation = locationAndSpeed.elevation;
57
+ this.elevationPresent = locationAndSpeed.elevationPresent;
58
+ this.elevationSource = locationAndSpeed.elevationSource;
59
+ this.flags = locationAndSpeed.flags;
60
+ this.heading = locationAndSpeed.heading;
61
+ this.headingPresent = locationAndSpeed.headingPresent;
62
+ this.headingSource = locationAndSpeed.headingSource;
63
+ this.instantaneousSpeed = locationAndSpeed.instantaneousSpeed;
64
+ this.instantaneousSpeedPresent = locationAndSpeed.instantaneousSpeedPresent;
65
+ this.locationLatitude = locationAndSpeed.locationLatitude;
66
+ this.locationLongitude = locationAndSpeed.locationLongitude;
67
+ this.locationPresent = locationAndSpeed.locationPresent;
68
+ this.positionStatus = locationAndSpeed.positionStatus;
69
+ this.rollingTime = locationAndSpeed.rollingTime;
70
+ this.rollingTimePresent = locationAndSpeed.rollingTimePresent;
71
+ this.speedAndDistanceFormat = locationAndSpeed.speedAndDistanceFormat;
72
+ this.totalDistance = locationAndSpeed.totalDistance;
73
+ this.totalDistancePresent = locationAndSpeed.totalDistancePresent;
74
+ this.utcTime = locationAndSpeed.utcTime;
75
+ this.utcTimePresent = locationAndSpeed.utcTimePresent;
76
+ }
77
+ };
78
+ __name(_LocationAndSpeedImpl, "LocationAndSpeedImpl");
79
+ __publicField(_LocationAndSpeedImpl, "UUID_PREFIX", 10855);
80
+ __publicField(_LocationAndSpeedImpl, "TYPE_NAME", "org.bluetooth.characteristic.location_and_speed");
81
+ __publicField(_LocationAndSpeedImpl, "NAME", "Location and Speed Characteristic");
82
+ let LocationAndSpeedImpl = _LocationAndSpeedImpl;
83
+ function locationAndSpeedFromDataView(dataView, indexStart = 0) {
84
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
85
+ const flags = $dvr.uint16();
86
+ const instantaneousSpeedPresent = flags & 1;
87
+ const totalDistancePresent = (flags & 2) >> 1;
88
+ const locationPresent = (flags & 4) >> 2;
89
+ const elevationPresent = (flags & 8) >> 3;
90
+ const headingPresent = (flags & 16) >> 4;
91
+ const rollingTimePresent = (flags & 32) >> 5;
92
+ const utcTimePresent = (flags & 64) >> 6;
93
+ const positionStatus = (flags & 384) >> 7;
94
+ const speedAndDistanceFormat = (flags & 512) >> 9;
95
+ const elevationSource = (flags & 3072) >> 10;
96
+ const headingSource = (flags & 4096) >> 12;
97
+ const instantaneousSpeed = $dvr.uint16();
98
+ const totalDistance = $dvr.uint24();
99
+ let locationLatitude = void 0;
100
+ if (!!locationPresent) {
101
+ locationLatitude = $dvr.int32();
102
+ }
103
+ let locationLongitude = void 0;
104
+ if (!!locationPresent) {
105
+ locationLongitude = $dvr.int32();
106
+ }
107
+ const elevation = $dvr.int24();
108
+ const heading = $dvr.uint16();
109
+ const rollingTime = $dvr.uint8();
110
+ const utcTime = import_date_time.DateTimeImpl.fromDataView($dvr);
111
+ return { elevation, elevationPresent, elevationSource, flags, heading, headingPresent, headingSource, instantaneousSpeed, instantaneousSpeedPresent, locationLatitude, locationLongitude, locationPresent, positionStatus, rollingTime, rollingTimePresent, speedAndDistanceFormat, totalDistance, totalDistancePresent, utcTime, utcTimePresent };
112
+ }
113
+ __name(locationAndSpeedFromDataView, "locationAndSpeedFromDataView");
114
+ //# sourceMappingURL=location-and-speed.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/location-and-speed.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AACpD,uBAA4C;AA2JrC,MAAM,wBAAN,MAAM,sBAAiD;AAAA;AAAA,EAM1D,OAAc,aAAa,UAAqC,YAAuD;AACnH,WAAO,IAAI,sBAAqB,6BAA6B,UAAU,UAAU,CAAC;AAAA,EACtF;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,kBAAoC;AACnD,SAAK,YAAY,iBAA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,OAAO;AAClC,MAAI,mBAAuC;AAC3C,MAAI,CAAC,CAAC,iBAAiB;AACnB,uBAAmB,KAAK,MAAM;AAAA,EAClC;AAEA,MAAI,oBAAwC;AAC5C,MAAI,CAAC,CAAC,iBAAiB;AACnB,wBAAoB,KAAK,MAAM;AAAA,EACnC;AAEA,QAAM,YAAY,KAAK,MAAM;AAC7B,QAAM,UAAU,KAAK,OAAO;AAC5B,QAAM,cAAc,KAAK,MAAM;AAC/B,QAAM,UAAU,8BAAa,aAAa,IAAI;AAC9C,SAAO,EAAE,WAAW,kBAAkB,iBAAiB,OAAO,SAAS,gBAAgB,eAAe,oBAAoB,2BAA2B,kBAAkB,mBAAmB,iBAAiB,gBAAgB,aAAa,oBAAoB,wBAAwB,eAAe,sBAAsB,SAAS,eAAe;AACrV;AArGgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,182 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ import { type DateTime } from "./date-time.js";
3
+ /** <p>The Location and Speed characteristic is a variable length structure containing a Flags field and, based on the contents of the Flags field, may contain a combination of data fields listed below. Note that it is possible for this characteristic to exceed the default LE MTU size.</p> */
4
+ export interface LocationAndSpeed {
5
+ /**
6
+ * <p>Format: `sint24`</p>
7
+ * <p>Unit: `org.bluetooth.unit.length.meter`</p>
8
+ * <p>Unit is in meters with a resolution of 1/100</p>
9
+ */
10
+ elevation?: number | undefined;
11
+ /**
12
+ * | value | description |
13
+ * | ----- | ----------- |
14
+ * | 0 | False |
15
+ * | 1 | True |
16
+ */
17
+ elevationPresent: number;
18
+ /**
19
+ * | value | description |
20
+ * | ----- | ------------------------------ |
21
+ * | 0 | Positioning System |
22
+ * | 1 | Barometric Air Pressure |
23
+ * | 2 | Database Service (or similiar) |
24
+ * | 3 | Other |
25
+ */
26
+ elevationSource: number;
27
+ /**
28
+ * <p>Format: `16bit`</p>
29
+ *
30
+ * Bit field:
31
+ *
32
+ * | index | size | name |
33
+ * | ----- | ---- | --------------------------- |
34
+ * | 0 | 1 | Instantaneous Speed Present |
35
+ * | 1 | 1 | Total Distance Present |
36
+ * | 2 | 1 | Location Present |
37
+ * | 3 | 1 | Elevation Present |
38
+ * | 4 | 1 | Heading Present |
39
+ * | 5 | 1 | Rolling Time Present |
40
+ * | 6 | 1 | UTC Time Present |
41
+ * | 7 | 2 | Position Status |
42
+ * | 9 | 1 | Speed and Distance format |
43
+ * | 10 | 2 | Elevation Source |
44
+ * | 12 | 1 | Heading Source |
45
+ * | 13 | 3 | Reserved for future use |
46
+ *
47
+ */
48
+ flags: number;
49
+ /**
50
+ * <p>Format: `uint16`</p>
51
+ * <p>Unit: `org.bluetooth.unit.plane_angle.degree`</p>
52
+ * <p>Unit is in degrees with a resolution of 1/100</p>
53
+ */
54
+ heading?: number | undefined;
55
+ /**
56
+ * | value | description |
57
+ * | ----- | ----------- |
58
+ * | 0 | False |
59
+ * | 1 | True |
60
+ */
61
+ headingPresent: number;
62
+ /**
63
+ * | value | description |
64
+ * | ----- | --------------------------------- |
65
+ * | 0 | Heading based on movement |
66
+ * | 1 | Heading based on magnetic compass |
67
+ */
68
+ headingSource: number;
69
+ /**
70
+ * <p>Format: `uint16`</p>
71
+ * <p>Unit: `org.bluetooth.unit.velocity.metres_per_second`</p>
72
+ * <p>Unit is in meters per second with a resolution of 1/100</p>
73
+ */
74
+ instantaneousSpeed?: number | undefined;
75
+ /**
76
+ * | value | description |
77
+ * | ----- | ----------- |
78
+ * | 0 | False |
79
+ * | 1 | True |
80
+ */
81
+ instantaneousSpeedPresent: number;
82
+ /**
83
+ * <p>Format: `sint32`</p>
84
+ * <p>Unit: `org.bluetooth.unit.plane_angle.degree`</p>
85
+ */
86
+ locationLatitude?: number | undefined;
87
+ /**
88
+ * <p>Format: `sint32`</p>
89
+ * <p>Unit: `org.bluetooth.unit.plane_angle.degree`</p>
90
+ */
91
+ locationLongitude?: number | undefined;
92
+ /**
93
+ * | value | description |
94
+ * | ----- | ----------- |
95
+ * | 0 | False |
96
+ * | 1 | True |
97
+ */
98
+ locationPresent: number;
99
+ /**
100
+ * | value | description |
101
+ * | ----- | ------------------- |
102
+ * | 0 | No Position |
103
+ * | 1 | Position Ok |
104
+ * | 2 | Estimated Position |
105
+ * | 3 | Last Known Position |
106
+ */
107
+ positionStatus: number;
108
+ /**
109
+ * <p>Format: `uint8`</p>
110
+ * <p>Unit: `org.bluetooth.unit.time.second`</p>
111
+ * <p>Unit is in seconds with a resolution of 1 second</p>
112
+ */
113
+ rollingTime?: number | undefined;
114
+ /**
115
+ * | value | description |
116
+ * | ----- | ----------- |
117
+ * | 0 | False |
118
+ * | 1 | True |
119
+ */
120
+ rollingTimePresent: number;
121
+ /**
122
+ * | value | description |
123
+ * | ----- | ----------- |
124
+ * | 0 | 2D |
125
+ * | 1 | 3D |
126
+ */
127
+ speedAndDistanceFormat: number;
128
+ /**
129
+ * <p>Format: `uint24`</p>
130
+ * <p>Unit: `org.bluetooth.unit.length.meter`</p>
131
+ * <p>Unit is in meters with a resolution of 1/10</p>
132
+ */
133
+ totalDistance?: number | undefined;
134
+ /**
135
+ * | value | description |
136
+ * | ----- | ----------- |
137
+ * | 0 | False |
138
+ * | 1 | True |
139
+ */
140
+ totalDistancePresent: number;
141
+ /** <p>Smallest units in seconds</p> */
142
+ utcTime?: DateTime | undefined;
143
+ /**
144
+ * | value | description |
145
+ * | ----- | ----------- |
146
+ * | 0 | False |
147
+ * | 1 | True |
148
+ */
149
+ utcTimePresent: number;
150
+ }
151
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.location_and_speed.xml | Location And Speed} */
152
+ export declare class LocationAndSpeedImpl implements LocationAndSpeed {
153
+ static readonly UUID_PREFIX = 10855;
154
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.location_and_speed";
155
+ static readonly NAME = "Location and Speed Characteristic";
156
+ /** Parse from a DataView into {@link LocationAndSpeed}. */
157
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): LocationAndSpeedImpl;
158
+ readonly elevation?: number | undefined;
159
+ readonly elevationPresent: number;
160
+ readonly elevationSource: number;
161
+ readonly flags: number;
162
+ readonly heading?: number | undefined;
163
+ readonly headingPresent: number;
164
+ readonly headingSource: number;
165
+ readonly instantaneousSpeed?: number | undefined;
166
+ readonly instantaneousSpeedPresent: number;
167
+ readonly locationLatitude?: number | undefined;
168
+ readonly locationLongitude?: number | undefined;
169
+ readonly locationPresent: number;
170
+ readonly positionStatus: number;
171
+ readonly rollingTime?: number | undefined;
172
+ readonly rollingTimePresent: number;
173
+ readonly speedAndDistanceFormat: number;
174
+ readonly totalDistance?: number | undefined;
175
+ readonly totalDistancePresent: number;
176
+ readonly utcTime?: DateTime | undefined;
177
+ readonly utcTimePresent: number;
178
+ constructor(locationAndSpeed: LocationAndSpeed);
179
+ }
180
+ /** Parse from a DataView into {@link LocationAndSpeed}. */
181
+ export declare function locationAndSpeedFromDataView(dataView: DataView | DataViewReader, indexStart?: number): LocationAndSpeed;
182
+ //# sourceMappingURL=location-and-speed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-and-speed.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/location-and-speed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAK7D,qSAAqS;AACrS,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;;OAKG;IACH,cAA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B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,aAAa,EAAE,MAAM,CAAC;IACtC,SAAgB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxD,SAAgB,yBAAyB,EAAE,MAAM,CAAC;IAClD,SAAgB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtD,SAAgB,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvD,SAAgB,eAAe,EAAE,MAAM,CAAC;IACxC,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,sBAAsB,EAAE,MAAM,CAAC;IAC/C,SAAgB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,SAAgB,oBAAoB,EAAE,MAAM,CAAC;IAC7C,SAAgB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/C,SAAgB,cAAc,EAAE,MAAM,CAAC;gBAEpB,gBAAgB,EAAE,gBAAgB;CAsBxD;AAED,2DAA2D;AAC3D,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,gBAAgB,CAqG1H"}
@@ -0,0 +1,95 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ import { dataViewReader } from "./data-view-reader.mjs";
6
+ import { DateTimeImpl } from "./date-time.mjs";
7
+ const _LocationAndSpeedImpl = class _LocationAndSpeedImpl {
8
+ /** Parse from a DataView into {@link LocationAndSpeed}. */
9
+ static fromDataView(dataView, indexStart) {
10
+ return new _LocationAndSpeedImpl(locationAndSpeedFromDataView(dataView, indexStart));
11
+ }
12
+ elevation;
13
+ elevationPresent;
14
+ elevationSource;
15
+ flags;
16
+ heading;
17
+ headingPresent;
18
+ headingSource;
19
+ instantaneousSpeed;
20
+ instantaneousSpeedPresent;
21
+ locationLatitude;
22
+ locationLongitude;
23
+ locationPresent;
24
+ positionStatus;
25
+ rollingTime;
26
+ rollingTimePresent;
27
+ speedAndDistanceFormat;
28
+ totalDistance;
29
+ totalDistancePresent;
30
+ utcTime;
31
+ utcTimePresent;
32
+ constructor(locationAndSpeed) {
33
+ this.elevation = locationAndSpeed.elevation;
34
+ this.elevationPresent = locationAndSpeed.elevationPresent;
35
+ this.elevationSource = locationAndSpeed.elevationSource;
36
+ this.flags = locationAndSpeed.flags;
37
+ this.heading = locationAndSpeed.heading;
38
+ this.headingPresent = locationAndSpeed.headingPresent;
39
+ this.headingSource = locationAndSpeed.headingSource;
40
+ this.instantaneousSpeed = locationAndSpeed.instantaneousSpeed;
41
+ this.instantaneousSpeedPresent = locationAndSpeed.instantaneousSpeedPresent;
42
+ this.locationLatitude = locationAndSpeed.locationLatitude;
43
+ this.locationLongitude = locationAndSpeed.locationLongitude;
44
+ this.locationPresent = locationAndSpeed.locationPresent;
45
+ this.positionStatus = locationAndSpeed.positionStatus;
46
+ this.rollingTime = locationAndSpeed.rollingTime;
47
+ this.rollingTimePresent = locationAndSpeed.rollingTimePresent;
48
+ this.speedAndDistanceFormat = locationAndSpeed.speedAndDistanceFormat;
49
+ this.totalDistance = locationAndSpeed.totalDistance;
50
+ this.totalDistancePresent = locationAndSpeed.totalDistancePresent;
51
+ this.utcTime = locationAndSpeed.utcTime;
52
+ this.utcTimePresent = locationAndSpeed.utcTimePresent;
53
+ }
54
+ };
55
+ __name(_LocationAndSpeedImpl, "LocationAndSpeedImpl");
56
+ __publicField(_LocationAndSpeedImpl, "UUID_PREFIX", 10855);
57
+ __publicField(_LocationAndSpeedImpl, "TYPE_NAME", "org.bluetooth.characteristic.location_and_speed");
58
+ __publicField(_LocationAndSpeedImpl, "NAME", "Location and Speed Characteristic");
59
+ let LocationAndSpeedImpl = _LocationAndSpeedImpl;
60
+ function locationAndSpeedFromDataView(dataView, indexStart = 0) {
61
+ const $dvr = dataViewReader(dataView, indexStart);
62
+ const flags = $dvr.uint16();
63
+ const instantaneousSpeedPresent = flags & 1;
64
+ const totalDistancePresent = (flags & 2) >> 1;
65
+ const locationPresent = (flags & 4) >> 2;
66
+ const elevationPresent = (flags & 8) >> 3;
67
+ const headingPresent = (flags & 16) >> 4;
68
+ const rollingTimePresent = (flags & 32) >> 5;
69
+ const utcTimePresent = (flags & 64) >> 6;
70
+ const positionStatus = (flags & 384) >> 7;
71
+ const speedAndDistanceFormat = (flags & 512) >> 9;
72
+ const elevationSource = (flags & 3072) >> 10;
73
+ const headingSource = (flags & 4096) >> 12;
74
+ const instantaneousSpeed = $dvr.uint16();
75
+ const totalDistance = $dvr.uint24();
76
+ let locationLatitude = void 0;
77
+ if (!!locationPresent) {
78
+ locationLatitude = $dvr.int32();
79
+ }
80
+ let locationLongitude = void 0;
81
+ if (!!locationPresent) {
82
+ locationLongitude = $dvr.int32();
83
+ }
84
+ const elevation = $dvr.int24();
85
+ const heading = $dvr.uint16();
86
+ const rollingTime = $dvr.uint8();
87
+ const utcTime = DateTimeImpl.fromDataView($dvr);
88
+ return { elevation, elevationPresent, elevationSource, flags, heading, headingPresent, headingSource, instantaneousSpeed, instantaneousSpeedPresent, locationLatitude, locationLongitude, locationPresent, positionStatus, rollingTime, rollingTimePresent, speedAndDistanceFormat, totalDistance, totalDistancePresent, utcTime, utcTimePresent };
89
+ }
90
+ __name(locationAndSpeedFromDataView, "locationAndSpeedFromDataView");
91
+ export {
92
+ LocationAndSpeedImpl,
93
+ locationAndSpeedFromDataView
94
+ };
95
+ //# sourceMappingURL=location-and-spe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nProp = Object.prototype.hasOwnProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
+ var location_name_exports = {};
23
+ __export(location_name_exports, {
24
+ LocationNameImpl: () => LocationNameImpl,
25
+ locationNameFromDataView: () => locationNameFromDataView
26
+ });
27
+ module.exports = __toCommonJS(location_name_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _LocationNameImpl = class _LocationNameImpl {
30
+ /** Parse from a DataView into {@link LocationName}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _LocationNameImpl(locationNameFromDataView(dataView, indexStart));
33
+ }
34
+ locationName;
35
+ constructor(locationName) {
36
+ this.locationName = locationName.locationName;
37
+ }
38
+ };
39
+ __name(_LocationNameImpl, "LocationNameImpl");
40
+ __publicField(_LocationNameImpl, "UUID_PREFIX", 10933);
41
+ __publicField(_LocationNameImpl, "TYPE_NAME", "org.bluetooth.characteristic.location_name");
42
+ __publicField(_LocationNameImpl, "NAME", "Location Name");
43
+ let LocationNameImpl = _LocationNameImpl;
44
+ function locationNameFromDataView(dataView, indexStart = 0) {
45
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
46
+ const locationName = $dvr.utf8s();
47
+ return { locationName };
48
+ }
49
+ __name(locationNameFromDataView, "locationNameFromDataView");
50
+ //# sourceMappingURL=location-name.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/location-name.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAY7C,MAAM,oBAAN,MAAM,kBAAyC;AAAA;AAAA,EAMlD,OAAc,aAAa,UAAqC,YAAmD;AAC/G,WAAO,IAAI,kBAAiB,yBAAyB,UAAU,UAAU,CAAC;AAAA,EAC9E;AAAA,EAEgB;AAAA,EAET,YAAY,cAA4B;AAC3C,SAAK,eAAe,aAAa;AAAA,EACrC;AACJ;AAfsD;AAClD,cADS,mBACc,eAAc;AACrC,cAFS,mBAEc,aAAY;AACnC,cAHS,mBAGc,QAAO;AAH3B,IAAM,mBAAN;AAkBA,SAAS,yBAAyB,UAAqC,aAAqB,GAAiB;AAChH,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,MAAM;AAChC,SAAO,EAAE,aAAa;AAC1B;AAJgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,19 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The Location Name characteristic describes the name of the location the device is installed in.</p> */
3
+ export interface LocationName {
4
+ /** <p>Format: `utf8s`</p> */
5
+ locationName: string;
6
+ }
7
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.location_name.xml | Location Name} */
8
+ export declare class LocationNameImpl implements LocationName {
9
+ static readonly UUID_PREFIX = 10933;
10
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.location_name";
11
+ static readonly NAME = "Location Name";
12
+ /** Parse from a DataView into {@link LocationName}. */
13
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): LocationNameImpl;
14
+ readonly locationName: string;
15
+ constructor(locationName: LocationName);
16
+ }
17
+ /** Parse from a DataView into {@link LocationName}. */
18
+ export declare function locationNameFromDataView(dataView: DataView | DataViewReader, indexStart?: number): LocationName;
19
+ //# sourceMappingURL=location-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-name.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/location-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,6GAA6G;AAC7G,MAAM,WAAW,YAAY;IACzB,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,uJAAuJ;AACvJ,qBAAa,gBAAiB,YAAW,YAAY;IACjD,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,gDAAgD;IAChF,gBAAuB,IAAI,mBAAmB;IAE9C,uDAAuD;WACzC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB;IAIlH,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAElB,YAAY,EAAE,YAAY;CAGhD;AAED,uDAAuD;AACvD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,YAAY,CAIlH"}
@@ -0,0 +1,31 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ import { dataViewReader } from "./data-view-reader.mjs";
6
+ const _LocationNameImpl = class _LocationNameImpl {
7
+ /** Parse from a DataView into {@link LocationName}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _LocationNameImpl(locationNameFromDataView(dataView, indexStart));
10
+ }
11
+ locationName;
12
+ constructor(locationName) {
13
+ this.locationName = locationName.locationName;
14
+ }
15
+ };
16
+ __name(_LocationNameImpl, "LocationNameImpl");
17
+ __publicField(_LocationNameImpl, "UUID_PREFIX", 10933);
18
+ __publicField(_LocationNameImpl, "TYPE_NAME", "org.bluetooth.characteristic.location_name");
19
+ __publicField(_LocationNameImpl, "NAME", "Location Name");
20
+ let LocationNameImpl = _LocationNameImpl;
21
+ function locationNameFromDataView(dataView, indexStart = 0) {
22
+ const $dvr = dataViewReader(dataView, indexStart);
23
+ const locationName = $dvr.utf8s();
24
+ return { locationName };
25
+ }
26
+ __name(locationNameFromDataView, "locationNameFromDataView");
27
+ export {
28
+ LocationNameImpl,
29
+ locationNameFromDataView
30
+ };
31
+ //# sourceMappingURL=location-name.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/location-name.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AAY7C,MAAM,oBAAN,MAAM,kBAAyC;AAAA;AAAA,EAMlD,OAAc,aAAa,UAAqC,YAAmD;AAC/G,WAAO,IAAI,kBAAiB,yBAAyB,UAAU,UAAU,CAAC;AAAA,EAC9E;AAAA,EAEgB;AAAA,EAET,YAAY,cAA4B;AAC3C,SAAK,eAAe,aAAa;AAAA,EACrC;AACJ;AAfsD;AAClD,cADS,mBACc,eAAc;AACrC,cAFS,mBAEc,aAAY;AACnC,cAHS,mBAGc,QAAO;AAH3B,IAAM,mBAAN;AAkBA,SAAS,yBAAyB,UAAqC,aAAqB,GAAiB;AAChH,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,MAAM;AAChC,SAAO,EAAE,aAAa;AAC1B;AAJgB;",
5
+ "names": []
6
+ }
package/longitude.cjs ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
+ var longitude_exports = {};
23
+ __export(longitude_exports, {
24
+ LongitudeImpl: () => LongitudeImpl,
25
+ longitudeFromDataView: () => longitudeFromDataView
26
+ });
27
+ module.exports = __toCommonJS(longitude_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _LongitudeImpl = class _LongitudeImpl {
30
+ /** Parse from a DataView into {@link Longitude}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _LongitudeImpl(longitudeFromDataView(dataView, indexStart));
33
+ }
34
+ longitude;
35
+ constructor(longitude) {
36
+ this.longitude = longitude.longitude;
37
+ }
38
+ };
39
+ __name(_LongitudeImpl, "LongitudeImpl");
40
+ __publicField(_LongitudeImpl, "UUID_PREFIX", 10927);
41
+ __publicField(_LongitudeImpl, "TYPE_NAME", "org.bluetooth.characteristic.Longitude");
42
+ __publicField(_LongitudeImpl, "NAME", "Longitude");
43
+ let LongitudeImpl = _LongitudeImpl;
44
+ function longitudeFromDataView(dataView, indexStart = 0) {
45
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
46
+ const longitude = $dvr.int32();
47
+ return { longitude };
48
+ }
49
+ __name(longitudeFromDataView, "longitudeFromDataView");
50
+ //# sourceMappingURL=longitude.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/longitude.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAY7C,MAAM,iBAAN,MAAM,eAAmC;AAAA;AAAA,EAM5C,OAAc,aAAa,UAAqC,YAAgD;AAC5G,WAAO,IAAI,eAAc,sBAAsB,UAAU,UAAU,CAAC;AAAA,EACxE;AAAA,EAEgB;AAAA,EAET,YAAY,WAAsB;AACrC,SAAK,YAAY,UAAU;AAAA,EAC/B;AACJ;AAfgD;AAC5C,cADS,gBACc,eAAc;AACrC,cAFS,gBAEc,aAAY;AACnC,cAHS,gBAGc,QAAO;AAH3B,IAAM,gBAAN;AAkBA,SAAS,sBAAsB,UAAqC,aAAqB,GAAc;AAC1G,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,YAAY,KAAK,MAAM;AAC7B,SAAO,EAAE,UAAU;AACvB;AAJgB;",
5
+ "names": []
6
+ }