jooby-codec 2.15.0 → 3.1.0

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 (419) hide show
  1. package/dist/mtx/CommandBinaryBuffer.d.ts +27 -0
  2. package/dist/mtx/CommandBinaryBuffer.js +55 -0
  3. package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
  4. package/dist/mtx/commands/downlink/ActivateRatePlan.d.ts +1 -0
  5. package/dist/mtx/commands/downlink/ActivateRatePlan.js +1 -0
  6. package/dist/mtx/commands/downlink/ActivateRatePlan.js.map +1 -1
  7. package/dist/mtx/commands/downlink/GetDateTime.d.ts +1 -0
  8. package/dist/mtx/commands/downlink/GetDateTime.js +1 -0
  9. package/dist/mtx/commands/downlink/GetDateTime.js.map +1 -1
  10. package/dist/mtx/commands/downlink/GetDeviceId.d.ts +13 -0
  11. package/dist/mtx/commands/downlink/GetDeviceId.js +31 -0
  12. package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
  13. package/dist/mtx/commands/downlink/GetDisplayParam.d.ts +1 -0
  14. package/dist/mtx/commands/downlink/GetDisplayParam.js +1 -0
  15. package/dist/mtx/commands/downlink/GetDisplayParam.js.map +1 -1
  16. package/dist/mtx/commands/downlink/GetOpParams.d.ts +1 -0
  17. package/dist/mtx/commands/downlink/GetOpParams.js +1 -0
  18. package/dist/mtx/commands/downlink/GetOpParams.js.map +1 -1
  19. package/dist/mtx/commands/downlink/GetRatePlanInfo.d.ts +1 -0
  20. package/dist/mtx/commands/downlink/GetRatePlanInfo.js +1 -0
  21. package/dist/mtx/commands/downlink/GetRatePlanInfo.js.map +1 -1
  22. package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +18 -0
  23. package/dist/mtx/commands/downlink/PrepareRatePlan.js +47 -0
  24. package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
  25. package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +17 -0
  26. package/dist/mtx/commands/downlink/RunTariffPlan.js +39 -0
  27. package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
  28. package/dist/mtx/commands/downlink/SetDayProfile.d.ts +20 -0
  29. package/dist/mtx/commands/downlink/SetDayProfile.js +92 -0
  30. package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
  31. package/dist/mtx/commands/downlink/SetDisplayParam.d.ts +1 -0
  32. package/dist/mtx/commands/downlink/SetDisplayParam.js +1 -0
  33. package/dist/mtx/commands/downlink/SetDisplayParam.js.map +1 -1
  34. package/dist/mtx/commands/downlink/SetOpParams.d.ts +1 -0
  35. package/dist/mtx/commands/downlink/SetOpParams.js +1 -0
  36. package/dist/mtx/commands/downlink/SetOpParams.js.map +1 -1
  37. package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +19 -0
  38. package/dist/mtx/commands/downlink/SetSeasonProfile.js +63 -0
  39. package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
  40. package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +19 -0
  41. package/dist/mtx/commands/downlink/SetSpecialDay.js +53 -0
  42. package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
  43. package/dist/mtx/commands/downlink/TurnRelayOff.d.ts +1 -0
  44. package/dist/mtx/commands/downlink/TurnRelayOff.js +1 -0
  45. package/dist/mtx/commands/downlink/TurnRelayOff.js.map +1 -1
  46. package/dist/mtx/commands/downlink/TurnRelayOn.d.ts +1 -0
  47. package/dist/mtx/commands/downlink/TurnRelayOn.js +1 -0
  48. package/dist/mtx/commands/downlink/TurnRelayOn.js.map +1 -1
  49. package/dist/mtx/commands/downlink/index.d.ts +6 -0
  50. package/dist/mtx/commands/downlink/index.js +6 -0
  51. package/dist/mtx/commands/downlink/index.js.map +1 -1
  52. package/dist/mtx/commands/uplink/ActivateRatePlanResponse.d.ts +1 -0
  53. package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js +1 -0
  54. package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js.map +1 -1
  55. package/dist/mtx/commands/uplink/ErrorResponse.d.ts +1 -0
  56. package/dist/mtx/commands/uplink/ErrorResponse.js +1 -0
  57. package/dist/mtx/commands/uplink/ErrorResponse.js.map +1 -1
  58. package/dist/mtx/commands/uplink/GetDateTimeResponse.d.ts +1 -0
  59. package/dist/mtx/commands/uplink/GetDateTimeResponse.js +1 -0
  60. package/dist/mtx/commands/uplink/GetDateTimeResponse.js.map +1 -1
  61. package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +17 -0
  62. package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +44 -0
  63. package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
  64. package/dist/mtx/commands/uplink/GetDisplayParamResponse.d.ts +1 -0
  65. package/dist/mtx/commands/uplink/GetDisplayParamResponse.js +1 -0
  66. package/dist/mtx/commands/uplink/GetDisplayParamResponse.js.map +1 -1
  67. package/dist/mtx/commands/uplink/GetOpParamsResponse.d.ts +1 -0
  68. package/dist/mtx/commands/uplink/GetOpParamsResponse.js +1 -0
  69. package/dist/mtx/commands/uplink/GetOpParamsResponse.js.map +1 -1
  70. package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.d.ts +1 -0
  71. package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js +1 -0
  72. package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js.map +1 -1
  73. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +13 -0
  74. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +31 -0
  75. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
  76. package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +13 -0
  77. package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +31 -0
  78. package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
  79. package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +13 -0
  80. package/dist/mtx/commands/uplink/SetDayProfileResponse.js +31 -0
  81. package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
  82. package/dist/mtx/commands/uplink/SetDisplayParamResponse.d.ts +1 -0
  83. package/dist/mtx/commands/uplink/SetDisplayParamResponse.js +1 -0
  84. package/dist/mtx/commands/uplink/SetDisplayParamResponse.js.map +1 -1
  85. package/dist/mtx/commands/uplink/SetOpParamsResponse.d.ts +1 -0
  86. package/dist/mtx/commands/uplink/SetOpParamsResponse.js +1 -0
  87. package/dist/mtx/commands/uplink/SetOpParamsResponse.js.map +1 -1
  88. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +13 -0
  89. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +31 -0
  90. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
  91. package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +13 -0
  92. package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +31 -0
  93. package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
  94. package/dist/mtx/commands/uplink/TurnRelayOffResponse.d.ts +1 -0
  95. package/dist/mtx/commands/uplink/TurnRelayOffResponse.js +1 -0
  96. package/dist/mtx/commands/uplink/TurnRelayOffResponse.js.map +1 -1
  97. package/dist/mtx/commands/uplink/TurnRelayOnResponse.d.ts +1 -0
  98. package/dist/mtx/commands/uplink/TurnRelayOnResponse.js +1 -0
  99. package/dist/mtx/commands/uplink/TurnRelayOnResponse.js.map +1 -1
  100. package/dist/mtx/commands/uplink/index.d.ts +6 -0
  101. package/dist/mtx/commands/uplink/index.js +6 -0
  102. package/dist/mtx/commands/uplink/index.js.map +1 -1
  103. package/dist/mtx/message.d.ts +2 -2
  104. package/dist/obis-observer/Command.js +1 -1
  105. package/dist/obis-observer/Command.js.map +1 -1
  106. package/dist/obis-observer/CommandBinaryBuffer.d.ts +9 -9
  107. package/dist/obis-observer/CommandBinaryBuffer.js +20 -20
  108. package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
  109. package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +4 -3
  110. package/dist/obis-observer/commands/downlink/GetArchiveState.js +23 -16
  111. package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
  112. package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
  113. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
  114. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
  115. package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
  116. package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
  117. package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
  118. package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
  119. package/dist/obis-observer/commands/downlink/GetMeterDate.js +34 -0
  120. package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
  121. package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
  122. package/dist/obis-observer/commands/downlink/GetMeterId.js +41 -0
  123. package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
  124. package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
  125. package/dist/obis-observer/commands/downlink/GetMeterIdList.js +34 -0
  126. package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
  127. package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
  128. package/dist/obis-observer/commands/downlink/GetMeterInfo.js +34 -0
  129. package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
  130. package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +16 -0
  131. package/dist/obis-observer/commands/downlink/GetMeterProfile.js +35 -0
  132. package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -0
  133. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
  134. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +34 -0
  135. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
  136. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
  137. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +34 -0
  138. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
  139. package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
  140. package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -9
  141. package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
  142. package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
  143. package/dist/obis-observer/commands/downlink/GetObisContentById.js +35 -0
  144. package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
  145. package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
  146. package/dist/obis-observer/commands/downlink/GetObisIdList.js +35 -0
  147. package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
  148. package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
  149. package/dist/obis-observer/commands/downlink/GetObisInfo.js +35 -0
  150. package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
  151. package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
  152. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
  153. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
  154. package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverInfo.d.ts} +4 -4
  155. package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
  156. package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
  157. package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
  158. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
  159. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
  160. package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverUptime.d.ts} +4 -4
  161. package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
  162. package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
  163. package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +18 -0
  164. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +48 -0
  165. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
  166. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +20 -0
  167. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +51 -0
  168. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -0
  169. package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
  170. package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
  171. package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
  172. package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
  173. package/dist/obis-observer/commands/downlink/RemoveMeter.js +35 -0
  174. package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
  175. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
  176. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +35 -0
  177. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
  178. package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +17 -0
  179. package/dist/obis-observer/commands/downlink/RemoveObis.js +36 -0
  180. package/dist/obis-observer/commands/downlink/RemoveObis.js.map +1 -0
  181. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
  182. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +35 -0
  183. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
  184. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
  185. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +35 -0
  186. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
  187. package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
  188. package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
  189. package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
  190. package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
  191. package/dist/obis-observer/commands/downlink/SetupMeter.js +82 -0
  192. package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
  193. package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +18 -0
  194. package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +48 -0
  195. package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -0
  196. package/dist/obis-observer/commands/downlink/SetupObis.d.ts +19 -0
  197. package/dist/obis-observer/commands/downlink/SetupObis.js +85 -0
  198. package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -0
  199. package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
  200. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
  201. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
  202. package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
  203. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -9
  204. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
  205. package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
  206. package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
  207. package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
  208. package/dist/obis-observer/commands/downlink/index.d.ts +25 -14
  209. package/dist/obis-observer/commands/downlink/index.js +25 -14
  210. package/dist/obis-observer/commands/downlink/index.js.map +1 -1
  211. package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +16 -0
  212. package/dist/obis-observer/commands/uplink/ErrorResponse.js +36 -0
  213. package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -0
  214. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +3 -3
  215. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +36 -14
  216. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
  217. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
  218. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -6
  219. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
  220. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
  221. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
  222. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
  223. package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts} +7 -8
  224. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +38 -0
  225. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
  226. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +17 -0
  227. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +45 -0
  228. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
  229. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
  230. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +35 -0
  231. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
  232. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
  233. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +83 -0
  234. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
  235. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +17 -0
  236. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +45 -0
  237. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
  238. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +17 -0
  239. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +45 -0
  240. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -0
  241. package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
  242. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +104 -0
  243. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
  244. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
  245. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +51 -0
  246. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
  247. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
  248. package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -17
  249. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
  250. package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
  251. package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -10
  252. package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
  253. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +17 -0
  254. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +54 -0
  255. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
  256. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
  257. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +92 -0
  258. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
  259. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
  260. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
  261. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
  262. package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +19 -0
  263. package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +20 -19
  264. package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
  265. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
  266. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
  267. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
  268. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
  269. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +41 -0
  270. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
  271. package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +4 -3
  272. package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -19
  273. package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
  274. package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +4 -3
  275. package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -20
  276. package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
  277. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +22 -0
  278. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +102 -0
  279. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
  280. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +17 -0
  281. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +69 -0
  282. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -0
  283. package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +2 -2
  284. package/dist/obis-observer/commands/uplink/RebootResponse.js +8 -11
  285. package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
  286. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +13 -0
  287. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +33 -0
  288. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
  289. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +13 -0
  290. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +33 -0
  291. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
  292. package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +13 -0
  293. package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +33 -0
  294. package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -0
  295. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +13 -0
  296. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +33 -0
  297. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
  298. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +13 -0
  299. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +33 -0
  300. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
  301. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +4 -7
  302. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +8 -26
  303. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
  304. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +13 -0
  305. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +33 -0
  306. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -0
  307. package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +13 -0
  308. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +33 -0
  309. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
  310. package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +13 -0
  311. package/dist/obis-observer/commands/uplink/SetupObisResponse.js +33 -0
  312. package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -0
  313. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +3 -3
  314. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +10 -18
  315. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
  316. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +4 -7
  317. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +9 -19
  318. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
  319. package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +4 -7
  320. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +9 -19
  321. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
  322. package/dist/obis-observer/commands/uplink/index.d.ts +27 -15
  323. package/dist/obis-observer/commands/uplink/index.js +27 -15
  324. package/dist/obis-observer/commands/uplink/index.js.map +1 -1
  325. package/dist/obis-observer/constants/commandRelations.js +29 -12
  326. package/dist/obis-observer/constants/commandRelations.js.map +1 -1
  327. package/dist/obis-observer/constants/index.d.ts +1 -1
  328. package/dist/obis-observer/constants/index.js +1 -1
  329. package/dist/obis-observer/constants/index.js.map +1 -1
  330. package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
  331. package/dist/obis-observer/constants/obisIds.js +228 -0
  332. package/dist/obis-observer/constants/obisIds.js.map +1 -0
  333. package/dist/obis-observer/constants/resultCodes.d.ts +12 -4
  334. package/dist/obis-observer/constants/resultCodes.js +12 -4
  335. package/dist/obis-observer/constants/resultCodes.js.map +1 -1
  336. package/dist/obis-observer/constants/resultDescriptions.d.ts +16 -0
  337. package/dist/obis-observer/constants/resultDescriptions.js +17 -0
  338. package/dist/obis-observer/constants/resultDescriptions.js.map +1 -0
  339. package/dist/obis-observer/message.d.ts +2 -2
  340. package/dist/obis-observer/message.js +4 -12
  341. package/dist/obis-observer/message.js.map +1 -1
  342. package/package.json +1 -1
  343. package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
  344. package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +0 -56
  345. package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
  346. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
  347. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
  348. package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
  349. package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
  350. package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
  351. package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
  352. package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
  353. package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
  354. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
  355. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
  356. package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
  357. package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
  358. package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
  359. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +0 -44
  360. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
  361. package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
  362. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
  363. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
  364. package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
  365. package/dist/obis-observer/commands/downlink/GetShortNames.js +0 -48
  366. package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
  367. package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
  368. package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
  369. package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
  370. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
  371. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
  372. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
  373. package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
  374. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
  375. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
  376. package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
  377. package/dist/obis-observer/commands/downlink/SetShortName.js +0 -51
  378. package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
  379. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
  380. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
  381. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
  382. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +0 -17
  383. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +0 -45
  384. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
  385. package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
  386. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
  387. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +0 -44
  388. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
  389. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
  390. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
  391. package/dist/obis-observer/commands/uplink/GetDateResponse.js +0 -47
  392. package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
  393. package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.d.ts +0 -18
  394. package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
  395. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +0 -77
  396. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
  397. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
  398. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +0 -81
  399. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
  400. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
  401. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +0 -55
  402. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
  403. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
  404. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
  405. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
  406. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
  407. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -61
  408. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
  409. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
  410. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
  411. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
  412. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
  413. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
  414. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
  415. package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
  416. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
  417. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
  418. package/dist/obis-observer/constants/shortNames.js +0 -228
  419. package/dist/obis-observer/constants/shortNames.js.map +0 -1
@@ -0,0 +1,35 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x72;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'remove meter 17',
9
+ parameters: {
10
+ requestId: 3,
11
+ meterId: 17
12
+ },
13
+ hex: { header: '72 02', body: '03 11' }
14
+ }
15
+ ];
16
+ class RemoveMeter extends Command {
17
+ constructor(parameters) {
18
+ super();
19
+ this.parameters = parameters;
20
+ this.size = COMMAND_SIZE;
21
+ }
22
+ static fromBytes([requestId, meterId]) {
23
+ return new RemoveMeter({ requestId, meterId });
24
+ }
25
+ toBytes() {
26
+ const { parameters } = this;
27
+ return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterId]));
28
+ }
29
+ }
30
+ RemoveMeter.id = COMMAND_ID;
31
+ RemoveMeter.directionType = DOWNLINK;
32
+ RemoveMeter.examples = examples;
33
+ RemoveMeter.hasParameters = true;
34
+ export default RemoveMeter;
35
+ //# sourceMappingURL=RemoveMeter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveMeter.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveMeter.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,EAAE;SACd;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,WAAY,SAAQ,OAAO;IAC7B,YAAqB,UAAkC;QACnD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAwB;QAGnD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,WAAW,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IACjD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,WAAW,CAAC"}
@@ -0,0 +1,16 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface IRemoveMeterProfileParameters extends ICommandParameters {
4
+ meterProfileId: number;
5
+ }
6
+ declare class RemoveMeterProfile extends Command {
7
+ parameters: IRemoveMeterProfileParameters;
8
+ constructor(parameters: IRemoveMeterProfileParameters);
9
+ static readonly id = 98;
10
+ static readonly directionType = 1;
11
+ static readonly examples: TCommandExampleList;
12
+ static readonly hasParameters = true;
13
+ static fromBytes([requestId, meterProfileId]: Uint8Array): RemoveMeterProfile;
14
+ toBytes(): Uint8Array;
15
+ }
16
+ export default RemoveMeterProfile;
@@ -0,0 +1,35 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x62;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'remove meter profile 17',
9
+ parameters: {
10
+ requestId: 3,
11
+ meterProfileId: 17
12
+ },
13
+ hex: { header: '62 02', body: '03 11' }
14
+ }
15
+ ];
16
+ class RemoveMeterProfile extends Command {
17
+ constructor(parameters) {
18
+ super();
19
+ this.parameters = parameters;
20
+ this.size = COMMAND_SIZE;
21
+ }
22
+ static fromBytes([requestId, meterProfileId]) {
23
+ return new RemoveMeterProfile({ requestId, meterProfileId });
24
+ }
25
+ toBytes() {
26
+ const { parameters } = this;
27
+ return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterProfileId]));
28
+ }
29
+ }
30
+ RemoveMeterProfile.id = COMMAND_ID;
31
+ RemoveMeterProfile.directionType = DOWNLINK;
32
+ RemoveMeterProfile.examples = examples;
33
+ RemoveMeterProfile.hasParameters = true;
34
+ export default RemoveMeterProfile;
35
+ //# sourceMappingURL=RemoveMeterProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveMeterProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,EAAE;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAAyC;QAC1D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+B;QAG1D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,CAAa;QACtD,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,cAAc,EAAC,CAAC,CAAC;IAC/D,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,CACpD,CACJ,CAAC;IACN,CAAC;;AAxBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,QAAQ,CAAC;AAEzB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface IRemoveObisParameters extends ICommandParameters {
4
+ meterProfileId: number;
5
+ obisId: number;
6
+ }
7
+ declare class RemoveObis extends Command {
8
+ parameters: IRemoveObisParameters;
9
+ constructor(parameters: IRemoveObisParameters);
10
+ static readonly id = 68;
11
+ static readonly directionType = 1;
12
+ static readonly examples: TCommandExampleList;
13
+ static readonly hasParameters = true;
14
+ static fromBytes([requestId, meterProfileId, obisId]: Uint8Array): RemoveObis;
15
+ toBytes(): Uint8Array;
16
+ }
17
+ export default RemoveObis;
@@ -0,0 +1,36 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x44;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'remove obis with Id 2 from meter profile with Id 17',
9
+ parameters: {
10
+ requestId: 3,
11
+ meterProfileId: 17,
12
+ obisId: 2
13
+ },
14
+ hex: { header: '44 03', body: '03 11 02' }
15
+ }
16
+ ];
17
+ class RemoveObis extends Command {
18
+ constructor(parameters) {
19
+ super();
20
+ this.parameters = parameters;
21
+ this.size = COMMAND_SIZE;
22
+ }
23
+ static fromBytes([requestId, meterProfileId, obisId]) {
24
+ return new RemoveObis({ requestId, meterProfileId, obisId });
25
+ }
26
+ toBytes() {
27
+ const { parameters } = this;
28
+ return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterProfileId, parameters.obisId]));
29
+ }
30
+ }
31
+ RemoveObis.id = COMMAND_ID;
32
+ RemoveObis.directionType = DOWNLINK;
33
+ RemoveObis.examples = examples;
34
+ RemoveObis.hasParameters = true;
35
+ export default RemoveObis;
36
+ //# sourceMappingURL=RemoveObis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveObis.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveObis.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,qDAAqD;QAC3D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,CAAC;SACZ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,UAAW,SAAQ,OAAO;IAC5B,YAAqB,UAAiC;QAClD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAuB;QAGlD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAa;QAC9D,OAAO,IAAI,UAAU,CAAC,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAC,CAAC,CAAC;IAC/D,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CACvE,CACJ,CAAC;IACN,CAAC;;AAxBe,aAAE,GAAG,UAAU,CAAC;AAEhB,wBAAa,GAAG,QAAQ,CAAC;AAEzB,mBAAQ,GAAG,QAAQ,CAAC;AAEpB,wBAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,16 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface ISetLorawanActivationMethodParameters extends ICommandParameters {
4
+ activationMethod: number;
5
+ }
6
+ declare class SetLorawanActivationMethod extends Command {
7
+ parameters: ISetLorawanActivationMethodParameters;
8
+ constructor(parameters: ISetLorawanActivationMethodParameters);
9
+ static readonly id = 36;
10
+ static readonly directionType = 1;
11
+ static readonly examples: TCommandExampleList;
12
+ static readonly hasParameters = true;
13
+ static fromBytes([requestId, activationMethod]: Uint8Array): SetLorawanActivationMethod;
14
+ toBytes(): Uint8Array;
15
+ }
16
+ export default SetLorawanActivationMethod;
@@ -0,0 +1,35 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x24;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'set lorawan activation mode to ABP',
9
+ parameters: {
10
+ requestId: 3,
11
+ activationMethod: 1
12
+ },
13
+ hex: { header: '24 02', body: '03 01' }
14
+ }
15
+ ];
16
+ class SetLorawanActivationMethod extends Command {
17
+ constructor(parameters) {
18
+ super();
19
+ this.parameters = parameters;
20
+ this.size = COMMAND_SIZE;
21
+ }
22
+ static fromBytes([requestId, activationMethod]) {
23
+ return new SetLorawanActivationMethod({ requestId, activationMethod });
24
+ }
25
+ toBytes() {
26
+ const { parameters } = this;
27
+ return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.activationMethod]));
28
+ }
29
+ }
30
+ SetLorawanActivationMethod.id = COMMAND_ID;
31
+ SetLorawanActivationMethod.directionType = DOWNLINK;
32
+ SetLorawanActivationMethod.examples = examples;
33
+ SetLorawanActivationMethod.hasParameters = true;
34
+ export default SetLorawanActivationMethod;
35
+ //# sourceMappingURL=SetLorawanActivationMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetLorawanActivationMethod.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetLorawanActivationMethod.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,gBAAgB,EAAE,CAAC;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,0BAA2B,SAAQ,OAAO;IAC5C,YAAqB,UAAiD;QAClE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAuC;QAGlE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,gBAAgB,CAAa;QACxD,OAAO,IAAI,0BAA0B,CAAC,EAAC,SAAS,EAAE,gBAAgB,EAAC,CAAC,CAAC;IACzE,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,gBAAgB,CAAC,CACtD,CACJ,CAAC;IACN,CAAC;;AAxBe,6BAAE,GAAG,UAAU,CAAC;AAEhB,wCAAa,GAAG,QAAQ,CAAC;AAEzB,mCAAQ,GAAG,QAAQ,CAAC;AAEpB,wCAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface ISetObserverSingleModeParameters extends ICommandParameters {
4
+ singleMode: boolean;
5
+ }
6
+ declare class SetObserverSingleMode extends Command {
7
+ parameters: ISetObserverSingleModeParameters;
8
+ constructor(parameters: ISetObserverSingleModeParameters);
9
+ static readonly id = 11;
10
+ static readonly directionType = 1;
11
+ static readonly examples: TCommandExampleList;
12
+ static readonly hasParameters = true;
13
+ static fromBytes([requestId, singleMode]: Uint8Array): SetObserverSingleMode;
14
+ toBytes(): Uint8Array;
15
+ }
16
+ export default SetObserverSingleMode;
@@ -0,0 +1,35 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x0b;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'set observer single mode',
9
+ parameters: {
10
+ requestId: 3,
11
+ singleMode: true
12
+ },
13
+ hex: { header: '0b 02', body: '03 01' }
14
+ }
15
+ ];
16
+ class SetObserverSingleMode extends Command {
17
+ constructor(parameters) {
18
+ super();
19
+ this.parameters = parameters;
20
+ this.size = COMMAND_SIZE;
21
+ }
22
+ static fromBytes([requestId, singleMode]) {
23
+ return new SetObserverSingleMode({ requestId, singleMode: singleMode !== 0 });
24
+ }
25
+ toBytes() {
26
+ const { parameters } = this;
27
+ return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.singleMode ? 1 : 0]));
28
+ }
29
+ }
30
+ SetObserverSingleMode.id = COMMAND_ID;
31
+ SetObserverSingleMode.directionType = DOWNLINK;
32
+ SetObserverSingleMode.examples = examples;
33
+ SetObserverSingleMode.hasParameters = true;
34
+ export default SetObserverSingleMode;
35
+ //# sourceMappingURL=SetObserverSingleMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetObserverSingleMode.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetObserverSingleMode.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,IAAI;SACnB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAG7D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,qBAAqB,CAAC,EAAC,SAAS,EAAE,UAAU,EAAE,UAAU,KAAK,CAAC,EAAC,CAAC,CAAC;IAChF,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACxD,CACJ,CAAC;IACN,CAAC;;AAxBe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,qBAAqB,CAAC"}
@@ -9,7 +9,7 @@ interface ISetSerialPortParameters extends ICommandParameters {
9
9
  declare class SetSerialPort extends Command {
10
10
  parameters: ISetSerialPortParameters;
11
11
  constructor(parameters: ISetSerialPortParameters);
12
- static readonly id = 19;
12
+ static readonly id = 9;
13
13
  static readonly directionType = 1;
14
14
  static readonly examples: TCommandExampleList;
15
15
  static readonly hasParameters = true;
@@ -2,7 +2,7 @@ import Command from '../../Command.js';
2
2
  import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
3
  import { DOWNLINK } from '../../constants/directions.js';
4
4
  import * as parityTypes from '../../constants/parityTypes.js';
5
- const COMMAND_ID = 0x13;
5
+ const COMMAND_ID = 0x09;
6
6
  const COMMAND_SIZE = REQUEST_ID_SIZE + 3;
7
7
  const examples = [
8
8
  {
@@ -14,7 +14,7 @@ const examples = [
14
14
  parity: parityTypes.ODD,
15
15
  fixed: true
16
16
  },
17
- hex: { header: '13', body: '34 05 08 05' }
17
+ hex: { header: '09 04', body: '34 05 08 05' }
18
18
  },
19
19
  {
20
20
  name: 'set settings: 115200, 7, none',
@@ -25,7 +25,7 @@ const examples = [
25
25
  parity: parityTypes.NONE,
26
26
  fixed: false
27
27
  },
28
- hex: { header: '13', body: '34 0c 07 00' }
28
+ hex: { header: '09 04', body: '34 0c 07 00' }
29
29
  }
30
30
  ];
31
31
  class SetSerialPort extends Command {
@@ -1 +1 @@
1
- {"version":3,"file":"SetSerialPort.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetSerialPort.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,KAAK,WAAW,MAAM,gCAAgC,CAAC;AAc9D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAA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GAAG,QAAQ,CAAC;AAEpB,2BAAa,GAAG,IAAI,CAAC;AAqCzC,eAAe,aAAa,CAAC"}
@@ -0,0 +1,18 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface ISetupMeterParameters extends ICommandParameters {
4
+ meterId: number;
5
+ address: string;
6
+ meterProfileId?: number;
7
+ }
8
+ declare class SetupMeter extends Command {
9
+ parameters: ISetupMeterParameters;
10
+ constructor(parameters: ISetupMeterParameters);
11
+ static readonly id = 112;
12
+ static readonly directionType = 1;
13
+ static readonly examples: TCommandExampleList;
14
+ static readonly hasParameters = true;
15
+ static fromBytes(data: Uint8Array): SetupMeter;
16
+ toBytes(): Uint8Array;
17
+ }
18
+ export default SetupMeter;
@@ -0,0 +1,82 @@
1
+ import Command from '../../Command.js';
2
+ import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x70;
5
+ const examples = [
6
+ {
7
+ name: 'setup meter with Id 20 without profile and without address',
8
+ parameters: {
9
+ requestId: 3,
10
+ meterId: 20,
11
+ address: ''
12
+ },
13
+ hex: { header: '70 02', body: '03 14' }
14
+ },
15
+ {
16
+ name: 'setup meter with Id 20 without profile',
17
+ parameters: {
18
+ requestId: 3,
19
+ meterId: 20,
20
+ address: 'ma2375'
21
+ },
22
+ hex: { header: '70 09', body: '03 14 06 6d 61 32 33 37 35' }
23
+ },
24
+ {
25
+ name: 'setup meter with Id 20',
26
+ parameters: {
27
+ requestId: 3,
28
+ meterId: 20,
29
+ address: 'ma2375',
30
+ meterProfileId: 17
31
+ },
32
+ hex: { header: '70 0a', body: '03 14 06 6d 61 32 33 37 35 11' }
33
+ }
34
+ ];
35
+ const commandSize = (parameters) => {
36
+ let size = REQUEST_ID_SIZE + 1;
37
+ if (parameters.address.length !== 0 || parameters.meterProfileId) {
38
+ size += 1 + parameters.address.length;
39
+ if (parameters.meterProfileId) {
40
+ size += 1;
41
+ }
42
+ }
43
+ return size;
44
+ };
45
+ class SetupMeter extends Command {
46
+ constructor(parameters) {
47
+ super();
48
+ this.parameters = parameters;
49
+ this.size = commandSize(parameters);
50
+ }
51
+ static fromBytes(data) {
52
+ const buffer = new CommandBinaryBuffer(data);
53
+ const requestId = buffer.getUint8();
54
+ const meterId = buffer.getUint8();
55
+ if (buffer.isEmpty) {
56
+ return new SetupMeter({ requestId, meterId, address: '' });
57
+ }
58
+ const address = buffer.isEmpty ? '' : buffer.getString();
59
+ return buffer.isEmpty
60
+ ? new SetupMeter({ requestId, meterId, address })
61
+ : new SetupMeter({ requestId, meterId, meterProfileId: buffer.getUint8(), address });
62
+ }
63
+ toBytes() {
64
+ const buffer = new CommandBinaryBuffer(this.size);
65
+ const { requestId, meterId, meterProfileId, address } = this.parameters;
66
+ buffer.setUint8(requestId);
67
+ buffer.setUint8(meterId);
68
+ if (address.length !== 0 || meterProfileId) {
69
+ buffer.setString(address);
70
+ if (meterProfileId) {
71
+ buffer.setUint8(meterProfileId);
72
+ }
73
+ }
74
+ return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
75
+ }
76
+ }
77
+ SetupMeter.id = COMMAND_ID;
78
+ SetupMeter.directionType = DOWNLINK;
79
+ SetupMeter.examples = examples;
80
+ SetupMeter.hasParameters = true;
81
+ export default SetupMeter;
82
+ //# sourceMappingURL=SetupMeter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupMeter.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetupMeter.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAavD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;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,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA3Ce,aAAE,GAAG,UAAU,CAAC;AAEhB,wBAAa,GAAG,QAAQ,CAAC;AAEzB,mBAAQ,GAAG,QAAQ,CAAC;AAEpB,wBAAa,GAAG,IAAI,CAAC;AAyCzC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,18 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ interface ISetupMeterProfileParameters extends ICommandParameters {
4
+ meterProfileId: number;
5
+ archive1Period: number;
6
+ archive2Period: number;
7
+ }
8
+ declare class SetupMeterProfile extends Command {
9
+ parameters: ISetupMeterProfileParameters;
10
+ constructor(parameters: ISetupMeterProfileParameters);
11
+ static readonly id = 96;
12
+ static readonly directionType = 1;
13
+ static readonly examples: TCommandExampleList;
14
+ static readonly hasParameters = true;
15
+ static fromBytes(data: Uint8Array): SetupMeterProfile;
16
+ toBytes(): Uint8Array;
17
+ }
18
+ export default SetupMeterProfile;
@@ -0,0 +1,48 @@
1
+ import Command from '../../Command.js';
2
+ import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x60;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1 + 2 + 2;
6
+ const examples = [
7
+ {
8
+ name: 'setup meter profile with id 8',
9
+ parameters: {
10
+ requestId: 68,
11
+ meterProfileId: 8,
12
+ archive1Period: 2880,
13
+ archive2Period: 30
14
+ },
15
+ hex: { header: '60 06', body: '44 08 0b 40 00 1e' }
16
+ }
17
+ ];
18
+ class SetupMeterProfile extends Command {
19
+ constructor(parameters) {
20
+ super();
21
+ this.parameters = parameters;
22
+ this.size = COMMAND_SIZE;
23
+ }
24
+ static fromBytes(data) {
25
+ const buffer = new CommandBinaryBuffer(data);
26
+ return new SetupMeterProfile({
27
+ requestId: buffer.getUint8(),
28
+ meterProfileId: buffer.getUint8(),
29
+ archive1Period: buffer.getUint16(),
30
+ archive2Period: buffer.getUint16()
31
+ });
32
+ }
33
+ toBytes() {
34
+ const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
35
+ const { requestId, meterProfileId, archive1Period, archive2Period } = this.parameters;
36
+ buffer.setUint8(requestId);
37
+ buffer.setUint8(meterProfileId);
38
+ buffer.setUint16(archive1Period);
39
+ buffer.setUint16(archive2Period);
40
+ return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
41
+ }
42
+ }
43
+ SetupMeterProfile.id = COMMAND_ID;
44
+ SetupMeterProfile.directionType = DOWNLINK;
45
+ SetupMeterProfile.examples = examples;
46
+ SetupMeterProfile.hasParameters = true;
47
+ export default SetupMeterProfile;
48
+ //# sourceMappingURL=SetupMeterProfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetupMeterProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAavD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,CAAC;YACjB,cAAc,EAAE,IAAI;YACpB,cAAc,EAAE,EAAE;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAC;KACpD;CACJ,CAAC;AAwBF,MAAM,iBAAkB,SAAQ,OAAO;IACnC,YAAqB,UAAwC;QACzD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA8B;QAGzD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,iBAAiB,CAAC;YACzB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE;YACjC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;YAClC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;SACrC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEpF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAChC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAEjC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters, IObisProfile, IObis } from '../../CommandBinaryBuffer.js';
3
+ interface ISetupObisParameters extends ICommandParameters {
4
+ meterProfileId: number;
5
+ obisId: number;
6
+ obisProfile: IObisProfile;
7
+ obis?: IObis;
8
+ }
9
+ declare class SetupObis extends Command {
10
+ parameters: ISetupObisParameters;
11
+ constructor(parameters: ISetupObisParameters);
12
+ static readonly id = 66;
13
+ static readonly directionType = 1;
14
+ static readonly examples: TCommandExampleList;
15
+ static readonly hasParameters = true;
16
+ static fromBytes(data: Uint8Array): SetupObis;
17
+ toBytes(): Uint8Array;
18
+ }
19
+ export default SetupObis;
@@ -0,0 +1,85 @@
1
+ import Command from '../../Command.js';
2
+ import CommandBinaryBuffer, { REQUEST_ID_SIZE, OBIS_PROFILE_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { DOWNLINK } from '../../constants/directions.js';
4
+ import { contentTypes } from '../../constants/index.js';
5
+ const COMMAND_ID = 0x42;
6
+ const examples = [
7
+ {
8
+ name: 'setup obisId 240 for OBIS code 0.9.1 in meter profile 2',
9
+ parameters: {
10
+ requestId: 3,
11
+ meterProfileId: 2,
12
+ obisId: 240,
13
+ obisProfile: {
14
+ capturePeriod: 244,
15
+ sendingPeriod: 132,
16
+ sendingCounter: 38,
17
+ flags: {
18
+ contentType: contentTypes.AUTO,
19
+ sendOnChange: true,
20
+ archive1: false,
21
+ archive2: false
22
+ }
23
+ },
24
+ obis: {
25
+ c: 0,
26
+ d: 9,
27
+ e: 1
28
+ }
29
+ },
30
+ hex: { header: '42 0d', body: '03 02 f0 00 f4 00 84 26 04 02 00 09 01' }
31
+ }
32
+ ];
33
+ const commandSize = (parameters) => {
34
+ let size = REQUEST_ID_SIZE + 1 + 1 + OBIS_PROFILE_SIZE;
35
+ if (parameters.obis) {
36
+ size += CommandBinaryBuffer.getObisSize(parameters.obis);
37
+ }
38
+ return size;
39
+ };
40
+ class SetupObis extends Command {
41
+ constructor(parameters) {
42
+ super();
43
+ this.parameters = parameters;
44
+ this.size = commandSize(parameters);
45
+ }
46
+ static fromBytes(data) {
47
+ const buffer = new CommandBinaryBuffer(data);
48
+ const requestId = buffer.getUint8();
49
+ const meterProfileId = buffer.getUint8();
50
+ const obisId = buffer.getUint8();
51
+ const obisProfile = buffer.getObisProfile();
52
+ return buffer.isEmpty
53
+ ? new SetupObis({
54
+ requestId,
55
+ meterProfileId,
56
+ obisId,
57
+ obisProfile
58
+ })
59
+ : new SetupObis({
60
+ requestId,
61
+ meterProfileId,
62
+ obisId,
63
+ obisProfile,
64
+ obis: buffer.getObis()
65
+ });
66
+ }
67
+ toBytes() {
68
+ const buffer = new CommandBinaryBuffer(this.size);
69
+ const { requestId, meterProfileId, obisId, obisProfile, obis } = this.parameters;
70
+ buffer.setUint8(requestId);
71
+ buffer.setUint8(meterProfileId);
72
+ buffer.setUint8(obisId);
73
+ buffer.setObisProfile(obisProfile);
74
+ if (obis) {
75
+ buffer.setObis(obis);
76
+ }
77
+ return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
78
+ }
79
+ }
80
+ SetupObis.id = COMMAND_ID;
81
+ SetupObis.directionType = DOWNLINK;
82
+ SetupObis.examples = examples;
83
+ SetupObis.hasParameters = true;
84
+ export default SetupObis;
85
+ //# sourceMappingURL=SetupObis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupObis.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetupObis.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAoC,iBAAiB,EAAQ,MAAM,8BAA8B,CAAC;AAC9I,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAatD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yDAAyD;QAC/D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,MAAM,EAAE,GAAG;YACX,WAAW,EAAE;gBACT,aAAa,EAAE,G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C,IAAI,SAAS,CAAC;gBACZ,SAAS;gBACT,cAAc;gBACd,MAAM;gBACN,WAAW;aACd,CAAC;YACF,CAAC,CAAC,IAAI,SAAS,CAAC;gBACZ,SAAS;gBACT,cAAc;gBACd,MAAM;gBACN,WAAW;gBACX,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE;aACzB,CAAC,CAAC;IACX,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE/E,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAChC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAEnC,IAAK,IAAI,EAAG;YACR,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACxB;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhDe,YAAE,GAAG,UAAU,CAAC;AAEhB,uBAAa,GAAG,QAAQ,CAAC;AAEzB,kBAAQ,GAAG,QAAQ,CAAC;AAEpB,uBAAa,GAAG,IAAI,CAAC;AA8CzC,eAAe,SAAS,CAAC"}
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
3
  declare class UpdateImageVerify extends Command {
4
4
  parameters: ICommandParameters;
5
5
  constructor(parameters: ICommandParameters);
6
- static readonly id = 44;
6
+ static readonly id = 50;
7
7
  static readonly directionType = 1;
8
8
  static readonly examples: TCommandExampleList;
9
9
  static readonly hasParameters = true;
10
- static fromBytes(data: Uint8Array): UpdateImageVerify;
10
+ static fromBytes([requestId]: Uint8Array): UpdateImageVerify;
11
11
  toBytes(): Uint8Array;
12
12
  }
13
13
  export default UpdateImageVerify;