jooby-codec 2.15.0 → 3.0.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 (362) 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/GetDeviceId.d.ts +12 -0
  5. package/dist/mtx/commands/downlink/GetDeviceId.js +30 -0
  6. package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
  7. package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +17 -0
  8. package/dist/mtx/commands/downlink/PrepareRatePlan.js +46 -0
  9. package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
  10. package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +16 -0
  11. package/dist/mtx/commands/downlink/RunTariffPlan.js +38 -0
  12. package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
  13. package/dist/mtx/commands/downlink/SetDayProfile.d.ts +19 -0
  14. package/dist/mtx/commands/downlink/SetDayProfile.js +91 -0
  15. package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
  16. package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +18 -0
  17. package/dist/mtx/commands/downlink/SetSeasonProfile.js +62 -0
  18. package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
  19. package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +18 -0
  20. package/dist/mtx/commands/downlink/SetSpecialDay.js +52 -0
  21. package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
  22. package/dist/mtx/commands/downlink/index.d.ts +6 -0
  23. package/dist/mtx/commands/downlink/index.js +6 -0
  24. package/dist/mtx/commands/downlink/index.js.map +1 -1
  25. package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +16 -0
  26. package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +43 -0
  27. package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
  28. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +12 -0
  29. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +30 -0
  30. package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
  31. package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +12 -0
  32. package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +30 -0
  33. package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
  34. package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +12 -0
  35. package/dist/mtx/commands/uplink/SetDayProfileResponse.js +30 -0
  36. package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
  37. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +12 -0
  38. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +30 -0
  39. package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
  40. package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +12 -0
  41. package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +30 -0
  42. package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
  43. package/dist/mtx/commands/uplink/index.d.ts +6 -0
  44. package/dist/mtx/commands/uplink/index.js +6 -0
  45. package/dist/mtx/commands/uplink/index.js.map +1 -1
  46. package/dist/mtx/message.d.ts +2 -2
  47. package/dist/obis-observer/Command.js +1 -1
  48. package/dist/obis-observer/Command.js.map +1 -1
  49. package/dist/obis-observer/CommandBinaryBuffer.d.ts +9 -9
  50. package/dist/obis-observer/CommandBinaryBuffer.js +20 -20
  51. package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
  52. package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +4 -3
  53. package/dist/obis-observer/commands/downlink/GetArchiveState.js +23 -16
  54. package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
  55. package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
  56. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
  57. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
  58. package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
  59. package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
  60. package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
  61. package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
  62. package/dist/obis-observer/commands/downlink/GetMeterDate.js +34 -0
  63. package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
  64. package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
  65. package/dist/obis-observer/commands/downlink/GetMeterId.js +41 -0
  66. package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
  67. package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
  68. package/dist/obis-observer/commands/downlink/GetMeterIdList.js +34 -0
  69. package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
  70. package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
  71. package/dist/obis-observer/commands/downlink/GetMeterInfo.js +34 -0
  72. package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
  73. package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +16 -0
  74. package/dist/obis-observer/commands/downlink/GetMeterProfile.js +35 -0
  75. package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -0
  76. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
  77. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +34 -0
  78. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
  79. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
  80. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +34 -0
  81. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
  82. package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
  83. package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -9
  84. package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
  85. package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
  86. package/dist/obis-observer/commands/downlink/GetObisContentById.js +35 -0
  87. package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
  88. package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
  89. package/dist/obis-observer/commands/downlink/GetObisIdList.js +35 -0
  90. package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
  91. package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
  92. package/dist/obis-observer/commands/downlink/GetObisInfo.js +35 -0
  93. package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
  94. package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
  95. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
  96. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
  97. package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverInfo.d.ts} +4 -4
  98. package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
  99. package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
  100. package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
  101. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
  102. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
  103. package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverUptime.d.ts} +4 -4
  104. package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
  105. package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
  106. package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +18 -0
  107. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +48 -0
  108. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
  109. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +20 -0
  110. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +51 -0
  111. package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -0
  112. package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
  113. package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
  114. package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
  115. package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
  116. package/dist/obis-observer/commands/downlink/RemoveMeter.js +35 -0
  117. package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
  118. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
  119. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +35 -0
  120. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
  121. package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +17 -0
  122. package/dist/obis-observer/commands/downlink/RemoveObis.js +36 -0
  123. package/dist/obis-observer/commands/downlink/RemoveObis.js.map +1 -0
  124. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
  125. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +35 -0
  126. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
  127. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
  128. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +35 -0
  129. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
  130. package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
  131. package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
  132. package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
  133. package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
  134. package/dist/obis-observer/commands/downlink/SetupMeter.js +82 -0
  135. package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
  136. package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +18 -0
  137. package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +48 -0
  138. package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -0
  139. package/dist/obis-observer/commands/downlink/SetupObis.d.ts +19 -0
  140. package/dist/obis-observer/commands/downlink/SetupObis.js +85 -0
  141. package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -0
  142. package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
  143. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
  144. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
  145. package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
  146. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -9
  147. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
  148. package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
  149. package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
  150. package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
  151. package/dist/obis-observer/commands/downlink/index.d.ts +25 -14
  152. package/dist/obis-observer/commands/downlink/index.js +25 -14
  153. package/dist/obis-observer/commands/downlink/index.js.map +1 -1
  154. package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +16 -0
  155. package/dist/obis-observer/commands/uplink/ErrorResponse.js +36 -0
  156. package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -0
  157. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +3 -3
  158. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +36 -14
  159. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
  160. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
  161. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -6
  162. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
  163. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
  164. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
  165. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
  166. package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts} +7 -8
  167. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +38 -0
  168. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
  169. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +17 -0
  170. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +45 -0
  171. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
  172. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
  173. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +35 -0
  174. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
  175. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
  176. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +83 -0
  177. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
  178. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +17 -0
  179. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +45 -0
  180. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
  181. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +17 -0
  182. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +45 -0
  183. package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -0
  184. package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
  185. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +104 -0
  186. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
  187. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
  188. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +51 -0
  189. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
  190. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
  191. package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -17
  192. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
  193. package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
  194. package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -10
  195. package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
  196. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +17 -0
  197. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +54 -0
  198. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
  199. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
  200. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +92 -0
  201. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
  202. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
  203. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
  204. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
  205. package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +19 -0
  206. package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +20 -19
  207. package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
  208. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
  209. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
  210. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
  211. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
  212. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +41 -0
  213. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
  214. package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +4 -3
  215. package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -19
  216. package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
  217. package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +4 -3
  218. package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -20
  219. package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
  220. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +22 -0
  221. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +102 -0
  222. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
  223. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +17 -0
  224. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +69 -0
  225. package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -0
  226. package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +2 -2
  227. package/dist/obis-observer/commands/uplink/RebootResponse.js +8 -11
  228. package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
  229. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +13 -0
  230. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +33 -0
  231. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
  232. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +13 -0
  233. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +33 -0
  234. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
  235. package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +13 -0
  236. package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +33 -0
  237. package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -0
  238. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +13 -0
  239. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +33 -0
  240. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
  241. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +13 -0
  242. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +33 -0
  243. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
  244. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +4 -7
  245. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +8 -26
  246. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
  247. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +13 -0
  248. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +33 -0
  249. package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -0
  250. package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +13 -0
  251. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +33 -0
  252. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
  253. package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +13 -0
  254. package/dist/obis-observer/commands/uplink/SetupObisResponse.js +33 -0
  255. package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -0
  256. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +3 -3
  257. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +10 -18
  258. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
  259. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +4 -7
  260. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +9 -19
  261. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
  262. package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +4 -7
  263. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +9 -19
  264. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
  265. package/dist/obis-observer/commands/uplink/index.d.ts +27 -15
  266. package/dist/obis-observer/commands/uplink/index.js +27 -15
  267. package/dist/obis-observer/commands/uplink/index.js.map +1 -1
  268. package/dist/obis-observer/constants/commandRelations.js +29 -12
  269. package/dist/obis-observer/constants/commandRelations.js.map +1 -1
  270. package/dist/obis-observer/constants/index.d.ts +1 -1
  271. package/dist/obis-observer/constants/index.js +1 -1
  272. package/dist/obis-observer/constants/index.js.map +1 -1
  273. package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
  274. package/dist/obis-observer/constants/obisIds.js +228 -0
  275. package/dist/obis-observer/constants/obisIds.js.map +1 -0
  276. package/dist/obis-observer/constants/resultCodes.d.ts +12 -4
  277. package/dist/obis-observer/constants/resultCodes.js +12 -4
  278. package/dist/obis-observer/constants/resultCodes.js.map +1 -1
  279. package/dist/obis-observer/constants/resultDescriptions.d.ts +16 -0
  280. package/dist/obis-observer/constants/resultDescriptions.js +17 -0
  281. package/dist/obis-observer/constants/resultDescriptions.js.map +1 -0
  282. package/dist/obis-observer/message.d.ts +2 -2
  283. package/dist/obis-observer/message.js +4 -12
  284. package/dist/obis-observer/message.js.map +1 -1
  285. package/package.json +1 -1
  286. package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
  287. package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +0 -56
  288. package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
  289. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
  290. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
  291. package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
  292. package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
  293. package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
  294. package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
  295. package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
  296. package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
  297. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
  298. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
  299. package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
  300. package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
  301. package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
  302. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +0 -44
  303. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
  304. package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
  305. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
  306. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
  307. package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
  308. package/dist/obis-observer/commands/downlink/GetShortNames.js +0 -48
  309. package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
  310. package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
  311. package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
  312. package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
  313. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
  314. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
  315. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
  316. package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
  317. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
  318. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
  319. package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
  320. package/dist/obis-observer/commands/downlink/SetShortName.js +0 -51
  321. package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
  322. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
  323. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
  324. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
  325. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +0 -17
  326. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +0 -45
  327. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
  328. package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
  329. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
  330. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +0 -44
  331. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
  332. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
  333. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
  334. package/dist/obis-observer/commands/uplink/GetDateResponse.js +0 -47
  335. package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
  336. package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.d.ts +0 -18
  337. package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
  338. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +0 -77
  339. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
  340. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
  341. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +0 -81
  342. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
  343. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
  344. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +0 -55
  345. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
  346. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
  347. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
  348. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
  349. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
  350. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -61
  351. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
  352. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
  353. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
  354. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
  355. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
  356. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
  357. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
  358. package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
  359. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
  360. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
  361. package/dist/obis-observer/constants/shortNames.js +0 -228
  362. package/dist/obis-observer/constants/shortNames.js.map +0 -1
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
3
  declare class RebootResponse extends Command {
4
4
  parameters: ICommandParameters;
5
5
  constructor(parameters: ICommandParameters);
6
- static readonly id = 29;
6
+ static readonly id = 39;
7
7
  static readonly directionType = 2;
8
8
  static readonly examples: TCommandExampleList;
9
9
  static readonly hasParameters = true;
10
- static fromBytes(data: Uint8Array): RebootResponse;
10
+ static fromBytes([requestId]: Uint8Array): RebootResponse;
11
11
  toBytes(): Uint8Array;
12
12
  }
13
13
  export default RebootResponse;
@@ -1,15 +1,15 @@
1
1
  import Command from '../../Command.js';
2
- import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
3
  import { UPLINK } from '../../constants/directions.js';
4
- const COMMAND_ID = 0x1d;
5
- const COMMAND_SIZE = REQUEST_ID_SIZE;
4
+ const COMMAND_ID = 0x27;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
6
  const examples = [
7
7
  {
8
- name: 'simple response',
8
+ name: 'reboot response',
9
9
  parameters: {
10
10
  requestId: 7
11
11
  },
12
- hex: { header: '1d', body: '07' }
12
+ hex: { header: '27 01', body: '07' }
13
13
  }
14
14
  ];
15
15
  class RebootResponse extends Command {
@@ -18,14 +18,11 @@ class RebootResponse extends Command {
18
18
  this.parameters = parameters;
19
19
  this.size = COMMAND_SIZE;
20
20
  }
21
- static fromBytes(data) {
22
- const buffer = new CommandBinaryBuffer(data);
23
- return new RebootResponse({ requestId: buffer.getUint8() });
21
+ static fromBytes([requestId]) {
22
+ return new RebootResponse({ requestId });
24
23
  }
25
24
  toBytes() {
26
- const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
27
- buffer.setUint8(this.parameters.requestId);
28
- return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
29
26
  }
30
27
  }
31
28
  RebootResponse.id = COMMAND_ID;
@@ -1 +1 @@
1
- {"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,CAAC;AAErC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;KAClC;CACJ,CAAC;AAsBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,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,cAAc,CAAC,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IAC9D,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAErD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAE3C,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAvBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,MAAM,CAAC;AAEvB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAqBzC,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,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;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC3C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,MAAM,CAAC;AAEvB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAezC,eAAe,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class RemoveMeterProfileResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 99;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): RemoveMeterProfileResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default RemoveMeterProfileResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x63;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to RemoveObisProfile - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '63 01', body: '07' }
13
+ }
14
+ ];
15
+ class RemoveMeterProfileResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new RemoveMeterProfileResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ RemoveMeterProfileResponse.id = COMMAND_ID;
29
+ RemoveMeterProfileResponse.directionType = UPLINK;
30
+ RemoveMeterProfileResponse.examples = examples;
31
+ RemoveMeterProfileResponse.hasParameters = true;
32
+ export default RemoveMeterProfileResponse;
33
+ //# sourceMappingURL=RemoveMeterProfileResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveMeterProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveMeterProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,0BAA2B,SAAQ,OAAO;IAC5C,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,0BAA0B,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IACvD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,6BAAE,GAAG,UAAU,CAAC;AAEhB,wCAAa,GAAG,MAAM,CAAC;AAEvB,mCAAQ,GAAG,QAAQ,CAAC;AAEpB,wCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class RemoveMeterResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 115;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): RemoveMeterResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default RemoveMeterResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x73;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to RemoveObisProfile - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '73 01', body: '07' }
13
+ }
14
+ ];
15
+ class RemoveMeterResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new RemoveMeterResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ RemoveMeterResponse.id = COMMAND_ID;
29
+ RemoveMeterResponse.directionType = UPLINK;
30
+ RemoveMeterResponse.examples = examples;
31
+ RemoveMeterResponse.hasParameters = true;
32
+ export default RemoveMeterResponse;
33
+ //# sourceMappingURL=RemoveMeterResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveMeterResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveMeterResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,mBAAoB,SAAQ,OAAO;IACrC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,mBAAmB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAChD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,MAAM,CAAC;AAEvB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class RemoveObisResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 69;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): RemoveObisResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default RemoveObisResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x45;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to RemoveObis - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '45 01', body: '07' }
13
+ }
14
+ ];
15
+ class RemoveObisResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new RemoveObisResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ RemoveObisResponse.id = COMMAND_ID;
29
+ RemoveObisResponse.directionType = UPLINK;
30
+ RemoveObisResponse.examples = examples;
31
+ RemoveObisResponse.hasParameters = true;
32
+ export default RemoveObisResponse;
33
+ //# sourceMappingURL=RemoveObisResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveObisResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveObisResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC/C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class SetLorawanActivationMethodResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 37;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): SetLorawanActivationMethodResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default SetLorawanActivationMethodResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x25;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to SetLorawanActivationMode - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '25 01', body: '07' }
13
+ }
14
+ ];
15
+ class SetLorawanActivationMethodResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new SetLorawanActivationMethodResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ SetLorawanActivationMethodResponse.id = COMMAND_ID;
29
+ SetLorawanActivationMethodResponse.directionType = UPLINK;
30
+ SetLorawanActivationMethodResponse.examples = examples;
31
+ SetLorawanActivationMethodResponse.hasParameters = true;
32
+ export default SetLorawanActivationMethodResponse;
33
+ //# sourceMappingURL=SetLorawanActivationMethodResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetLorawanActivationMethodResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gDAAgD;QACtD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,kCAAmC,SAAQ,OAAO;IACpD,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,kCAAkC,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC/D,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,qCAAE,GAAG,UAAU,CAAC;AAEhB,gDAAa,GAAG,MAAM,CAAC;AAEvB,2CAAQ,GAAG,QAAQ,CAAC;AAEpB,gDAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,kCAAkC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class SetObserverSingleModeResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 12;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): SetObserverSingleModeResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default SetObserverSingleModeResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x0c;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to SetObserverSingleMode - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '0c 01', body: '07' }
13
+ }
14
+ ];
15
+ class SetObserverSingleModeResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new SetObserverSingleModeResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ SetObserverSingleModeResponse.id = COMMAND_ID;
29
+ SetObserverSingleModeResponse.directionType = UPLINK;
30
+ SetObserverSingleModeResponse.examples = examples;
31
+ SetObserverSingleModeResponse.hasParameters = true;
32
+ export default SetObserverSingleModeResponse;
33
+ //# sourceMappingURL=SetObserverSingleModeResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetObserverSingleModeResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetObserverSingleModeResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,6BAA8B,SAAQ,OAAO;IAC/C,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,6BAA6B,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC1D,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,gCAAE,GAAG,UAAU,CAAC;AAEhB,2CAAa,GAAG,MAAM,CAAC;AAEvB,sCAAQ,GAAG,QAAQ,CAAC;AAEpB,2CAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,6BAA6B,CAAC"}
@@ -1,16 +1,13 @@
1
1
  import Command, { TCommandExampleList } from '../../Command.js';
2
2
  import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface ISetSerialPortResponseParameters extends ICommandParameters {
4
- resultCode: number;
5
- }
6
3
  declare class SetSerialPortResponse extends Command {
7
- parameters: ISetSerialPortResponseParameters;
8
- constructor(parameters: ISetSerialPortResponseParameters);
9
- static readonly id = 20;
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 10;
10
7
  static readonly directionType = 2;
11
8
  static readonly examples: TCommandExampleList;
12
9
  static readonly hasParameters = true;
13
- static fromBytes(data: Uint8Array): SetSerialPortResponse;
10
+ static fromBytes([requestId]: Uint8Array): SetSerialPortResponse;
14
11
  toBytes(): Uint8Array;
15
12
  }
16
13
  export default SetSerialPortResponse;
@@ -1,25 +1,15 @@
1
1
  import Command from '../../Command.js';
2
- import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
3
  import { UPLINK } from '../../constants/directions.js';
4
- import { resultCodes } from '../../constants/index.js';
5
- const COMMAND_ID = 0x14;
4
+ const COMMAND_ID = 0x0a;
6
5
  const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
7
6
  const examples = [
8
7
  {
9
- name: 'set serial port settings - succeed',
8
+ name: 'response to SetSerialPortSettings - succeed',
10
9
  parameters: {
11
- requestId: 32,
12
- resultCode: resultCodes.OK
10
+ requestId: 32
13
11
  },
14
- hex: { header: '14', body: '20 00' }
15
- },
16
- {
17
- name: 'set serial port settings - failed',
18
- parameters: {
19
- requestId: 32,
20
- resultCode: resultCodes.FAILURE
21
- },
22
- hex: { header: '14', body: '20 01' }
12
+ hex: { header: '0a 01', body: '20' }
23
13
  }
24
14
  ];
25
15
  class SetSerialPortResponse extends Command {
@@ -28,19 +18,11 @@ class SetSerialPortResponse extends Command {
28
18
  this.parameters = parameters;
29
19
  this.size = COMMAND_SIZE;
30
20
  }
31
- static fromBytes(data) {
32
- const buffer = new CommandBinaryBuffer(data);
33
- return new SetSerialPortResponse({
34
- requestId: buffer.getUint8(),
35
- resultCode: buffer.getUint8()
36
- });
21
+ static fromBytes([requestId]) {
22
+ return new SetSerialPortResponse({ requestId });
37
23
  }
38
24
  toBytes() {
39
- const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
40
- const { requestId, resultCode } = this.parameters;
41
- buffer.setUint8(requestId);
42
- buffer.setUint8(resultCode);
43
- return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
44
26
  }
45
27
  }
46
28
  SetSerialPortResponse.id = COMMAND_ID;
@@ -1 +1 @@
1
- {"version":3,"file":"SetSerialPortResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetSerialPortResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,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,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;IACD;QACI,IAAI,EAAE,mCAAmC;QACzC,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,OAAO;SAClC;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;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,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,qBAAqB,CAAC;YAC7B,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"SetSerialPortResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetSerialPortResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;SAChB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,qBAAqB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class SetupMeterProfileResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 97;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): SetupMeterProfileResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default SetupMeterProfileResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x61;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to SetupMeterProfile - successful',
9
+ parameters: {
10
+ requestId: 156
11
+ },
12
+ hex: { header: '61 01', body: '9c' }
13
+ }
14
+ ];
15
+ class SetupMeterProfileResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new SetupMeterProfileResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ SetupMeterProfileResponse.id = COMMAND_ID;
29
+ SetupMeterProfileResponse.directionType = UPLINK;
30
+ SetupMeterProfileResponse.examples = examples;
31
+ SetupMeterProfileResponse.hasParameters = true;
32
+ export default SetupMeterProfileResponse;
33
+ //# sourceMappingURL=SetupMeterProfileResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupMeterProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetupMeterProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;SACjB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,yBAAyB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IACtD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class SetupMeterResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 113;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): SetupMeterResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default SetupMeterResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x71;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to SetupMeter - succeed',
9
+ parameters: {
10
+ requestId: 7
11
+ },
12
+ hex: { header: '71 01', body: '07' }
13
+ }
14
+ ];
15
+ class SetupMeterResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new SetupMeterResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ SetupMeterResponse.id = COMMAND_ID;
29
+ SetupMeterResponse.directionType = UPLINK;
30
+ SetupMeterResponse.examples = examples;
31
+ SetupMeterResponse.hasParameters = true;
32
+ export default SetupMeterResponse;
33
+ //# sourceMappingURL=SetupMeterResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupMeterResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetupMeterResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC/C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import Command, { TCommandExampleList } from '../../Command.js';
2
+ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
+ declare class SetupObisResponse extends Command {
4
+ parameters: ICommandParameters;
5
+ constructor(parameters: ICommandParameters);
6
+ static readonly id = 67;
7
+ static readonly directionType = 2;
8
+ static readonly examples: TCommandExampleList;
9
+ static readonly hasParameters = true;
10
+ static fromBytes([requestId]: Uint8Array): SetupObisResponse;
11
+ toBytes(): Uint8Array;
12
+ }
13
+ export default SetupObisResponse;
@@ -0,0 +1,33 @@
1
+ import Command from '../../Command.js';
2
+ import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
+ import { UPLINK } from '../../constants/directions.js';
4
+ const COMMAND_ID = 0x43;
5
+ const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
+ const examples = [
7
+ {
8
+ name: 'response to SetupObis - succeed',
9
+ parameters: {
10
+ requestId: 2
11
+ },
12
+ hex: { header: '43 01', body: '02' }
13
+ }
14
+ ];
15
+ class SetupObisResponse extends Command {
16
+ constructor(parameters) {
17
+ super();
18
+ this.parameters = parameters;
19
+ this.size = COMMAND_SIZE;
20
+ }
21
+ static fromBytes([requestId]) {
22
+ return new SetupObisResponse({ requestId });
23
+ }
24
+ toBytes() {
25
+ return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
26
+ }
27
+ }
28
+ SetupObisResponse.id = COMMAND_ID;
29
+ SetupObisResponse.directionType = UPLINK;
30
+ SetupObisResponse.examples = examples;
31
+ SetupObisResponse.hasParameters = true;
32
+ export default SetupObisResponse;
33
+ //# sourceMappingURL=SetupObisResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetupObisResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetupObisResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iCAAiC;QACvC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,iBAAkB,SAAQ,OAAO;IACnC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,iBAAiB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC9C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,MAAM,CAAC;AAEvB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,iBAAiB,CAAC"}
@@ -1,16 +1,16 @@
1
1
  import Command, { TCommandExampleList } from '../../Command.js';
2
2
  import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
3
  interface IUpdateImageVerifyResponseParameters extends ICommandParameters {
4
- resultCode: number;
4
+ isImageValid: boolean;
5
5
  }
6
6
  declare class UpdateImageVerifyResponse extends Command {
7
7
  parameters: IUpdateImageVerifyResponseParameters;
8
8
  constructor(parameters: IUpdateImageVerifyResponseParameters);
9
- static readonly id = 45;
9
+ static readonly id = 51;
10
10
  static readonly directionType = 2;
11
11
  static readonly examples: TCommandExampleList;
12
12
  static readonly hasParameters = true;
13
- static fromBytes(data: Uint8Array): UpdateImageVerifyResponse;
13
+ static fromBytes([requestId, isImageValid]: Uint8Array): UpdateImageVerifyResponse;
14
14
  toBytes(): Uint8Array;
15
15
  }
16
16
  export default UpdateImageVerifyResponse;