jooby-codec 2.11.0 → 2.12.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 (318) hide show
  1. package/dist/obis-observer/Command.js +8 -3
  2. package/dist/obis-observer/Command.js.map +1 -1
  3. package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
  4. package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
  5. package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
  6. package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
  7. package/dist/obis-observer/commands/downlink/{AddObisProfile.js → AddShortNameProfile.js} +17 -20
  8. package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
  9. package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.d.ts} +3 -3
  10. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
  11. package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
  12. package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +16 -0
  13. package/dist/obis-observer/commands/downlink/GetArchiveState.js +42 -0
  14. package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -0
  15. package/dist/obis-observer/commands/downlink/{GetObisContent.d.ts → GetContentByObis.d.ts} +1 -2
  16. package/dist/obis-observer/commands/downlink/{GetObisContent.js → GetContentByObis.js} +9 -9
  17. package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
  18. package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
  19. package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
  20. package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
  21. package/dist/obis-observer/commands/downlink/{GetObserverInfo.d.ts → GetDate.d.ts} +4 -4
  22. package/dist/obis-observer/commands/downlink/GetDate.js +39 -0
  23. package/dist/obis-observer/commands/downlink/GetDate.js.map +1 -0
  24. package/dist/obis-observer/commands/downlink/{GetObserverUptime.d.ts → GetDeviceInfo.d.ts} +4 -4
  25. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +39 -0
  26. package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +1 -0
  27. package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
  28. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +13 -6
  29. package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
  30. package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
  31. package/dist/obis-observer/commands/downlink/GetLorawanState.js +13 -6
  32. package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
  33. package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.d.ts} +4 -4
  34. package/dist/obis-observer/commands/downlink/GetReadoutState.js +39 -0
  35. package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +1 -0
  36. package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
  37. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +44 -0
  38. package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
  39. package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
  40. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
  41. package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
  42. package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
  43. package/dist/obis-observer/commands/downlink/{SetObisId.js → GetShortNames.js} +16 -19
  44. package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
  45. package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
  46. package/dist/obis-observer/commands/downlink/ReadArchive.js +57 -0
  47. package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
  48. package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
  49. package/dist/obis-observer/commands/downlink/Reboot.js +12 -6
  50. package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
  51. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
  52. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
  53. package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
  54. package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
  55. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
  56. package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +1 -0
  57. package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
  58. package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
  59. package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
  60. package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
  61. package/dist/obis-observer/commands/downlink/{GetObisIdList.js → SetShortName.js} +18 -15
  62. package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
  63. package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
  64. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +12 -6
  65. package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
  66. package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
  67. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +9 -4
  68. package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
  69. package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
  70. package/dist/obis-observer/commands/downlink/UpdateRun.js +12 -6
  71. package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
  72. package/dist/obis-observer/commands/downlink/index.d.ts +15 -28
  73. package/dist/obis-observer/commands/downlink/index.js +15 -28
  74. package/dist/obis-observer/commands/downlink/index.js.map +1 -1
  75. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
  76. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
  77. package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
  78. package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.d.ts → GetArchiveProfileResponse.d.ts} +5 -5
  79. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +45 -0
  80. package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
  81. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +19 -0
  82. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +58 -0
  83. package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -0
  84. package/dist/obis-observer/commands/uplink/{GetObisContentResponse.d.ts → GetContentByObisResponse.d.ts} +1 -1
  85. package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js} +10 -5
  86. package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
  87. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
  88. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +44 -0
  89. package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
  90. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
  91. package/dist/obis-observer/commands/uplink/{GetObisContentByIdStringResponse.js → GetContentByShortNameStringResponse.js} +17 -12
  92. package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
  93. package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +18 -0
  94. package/dist/obis-observer/commands/uplink/GetDateResponse.js +47 -0
  95. package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +1 -0
  96. package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.d.ts → GetDeviceInfoResponse.d.ts} +7 -7
  97. package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js} +18 -13
  98. package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +1 -0
  99. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
  100. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +6 -3
  101. package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
  102. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
  103. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +26 -23
  104. package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
  105. package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.d.ts → GetReadoutStateResponse.d.ts} +7 -7
  106. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +77 -0
  107. package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +1 -0
  108. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
  109. package/dist/obis-observer/commands/uplink/{GetObisInfoResponse.js → GetShortNameInfoResponse.js} +31 -42
  110. package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
  111. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
  112. package/dist/obis-observer/commands/uplink/{GetObisProfileResponse.js → GetShortNameProfileResponse.js} +17 -24
  113. package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
  114. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
  115. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
  116. package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
  117. package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
  118. package/dist/obis-observer/commands/uplink/ObservationReport.js +19 -15
  119. package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
  120. package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
  121. package/dist/obis-observer/commands/uplink/ObservationReportString.js +20 -16
  122. package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
  123. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
  124. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +61 -0
  125. package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
  126. package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +4 -7
  127. package/dist/obis-observer/commands/uplink/RebootResponse.js +12 -11
  128. package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
  129. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
  130. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
  131. package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
  132. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
  133. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
  134. package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
  135. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
  136. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +17 -9
  137. package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
  138. package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
  139. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
  140. package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
  141. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
  142. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +16 -8
  143. package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
  144. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
  145. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +16 -8
  146. package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
  147. package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
  148. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +16 -8
  149. package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
  150. package/dist/obis-observer/commands/uplink/index.d.ts +16 -29
  151. package/dist/obis-observer/commands/uplink/index.js +16 -29
  152. package/dist/obis-observer/commands/uplink/index.js.map +1 -1
  153. package/dist/obis-observer/constants/commandRelations.js +12 -31
  154. package/dist/obis-observer/constants/commandRelations.js.map +1 -1
  155. package/dist/obis-observer/constants/index.d.ts +1 -1
  156. package/dist/obis-observer/constants/index.js +1 -1
  157. package/dist/obis-observer/constants/index.js.map +1 -1
  158. package/dist/obis-observer/constants/{obisIds.d.ts → shortNames.d.ts} +4 -4
  159. package/dist/obis-observer/constants/shortNames.js +228 -0
  160. package/dist/obis-observer/constants/shortNames.js.map +1 -0
  161. package/dist/obis-observer/message.js +12 -4
  162. package/dist/obis-observer/message.js.map +1 -1
  163. package/package.json +1 -1
  164. package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +0 -16
  165. package/dist/obis-observer/commands/downlink/AddMeterProfile.js +0 -34
  166. package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +0 -1
  167. package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +0 -18
  168. package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +0 -1
  169. package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +0 -16
  170. package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +0 -34
  171. package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +0 -1
  172. package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +0 -17
  173. package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +0 -35
  174. package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +0 -1
  175. package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
  176. package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -33
  177. package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
  178. package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
  179. package/dist/obis-observer/commands/downlink/GetMeterId.js +0 -41
  180. package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
  181. package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
  182. package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -33
  183. package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
  184. package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
  185. package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -33
  186. package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
  187. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
  188. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -33
  189. package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
  190. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
  191. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -33
  192. package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
  193. package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
  194. package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
  195. package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -34
  196. package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
  197. package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
  198. package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
  199. package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
  200. package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -34
  201. package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
  202. package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +0 -17
  203. package/dist/obis-observer/commands/downlink/GetObisProfile.js +0 -35
  204. package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +0 -1
  205. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
  206. package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
  207. package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
  208. package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
  209. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
  210. package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
  211. package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
  212. package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
  213. package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -19
  214. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -58
  215. package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
  216. package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
  217. package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -34
  218. package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
  219. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
  220. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -34
  221. package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
  222. package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +0 -17
  223. package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +0 -35
  224. package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +0 -1
  225. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
  226. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -34
  227. package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
  228. package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +0 -18
  229. package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +0 -48
  230. package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +0 -1
  231. package/dist/obis-observer/commands/downlink/SetObisId.d.ts +0 -18
  232. package/dist/obis-observer/commands/downlink/SetObisId.js.map +0 -1
  233. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
  234. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -34
  235. package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
  236. package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
  237. package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -47
  238. package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
  239. package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +0 -16
  240. package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +0 -35
  241. package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +0 -1
  242. package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +0 -16
  243. package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +0 -35
  244. package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +0 -1
  245. package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js +0 -64
  246. package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +0 -1
  247. package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +0 -19
  248. package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +0 -78
  249. package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +0 -1
  250. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -17
  251. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +0 -50
  252. package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
  253. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -16
  254. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -40
  255. package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
  256. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
  257. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -45
  258. package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
  259. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
  260. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -54
  261. package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
  262. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -16
  263. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -40
  264. package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
  265. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +0 -104
  266. package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
  267. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
  268. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +0 -51
  269. package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
  270. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
  271. package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
  272. package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
  273. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -16
  274. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -40
  275. package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
  276. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
  277. package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
  278. package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +0 -16
  279. package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +0 -1
  280. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
  281. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
  282. package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
  283. package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
  284. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
  285. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
  286. package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
  287. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
  288. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -41
  289. package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
  290. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -18
  291. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +0 -79
  292. package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
  293. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -16
  294. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -35
  295. package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
  296. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -16
  297. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -35
  298. package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
  299. package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +0 -16
  300. package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +0 -35
  301. package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +0 -1
  302. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -16
  303. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -35
  304. package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
  305. package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +0 -16
  306. package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +0 -43
  307. package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +0 -1
  308. package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +0 -16
  309. package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +0 -35
  310. package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +0 -1
  311. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -16
  312. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -35
  313. package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
  314. package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -16
  315. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -35
  316. package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
  317. package/dist/obis-observer/constants/obisIds.js +0 -228
  318. package/dist/obis-observer/constants/obisIds.js.map +0 -1
@@ -1,32 +0,0 @@
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 = 0x05;
5
- const examples = [
6
- {
7
- name: 'simple request',
8
- parameters: {
9
- requestId: 7
10
- },
11
- hex: { header: '05 01', body: '07' }
12
- }
13
- ];
14
- class GetObserverUptime extends Command {
15
- constructor(parameters) {
16
- super();
17
- this.parameters = parameters;
18
- this.size = REQUEST_ID_SIZE;
19
- }
20
- static fromBytes([requestId]) {
21
- return new GetObserverUptime({ requestId });
22
- }
23
- toBytes() {
24
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
25
- }
26
- }
27
- GetObserverUptime.id = COMMAND_ID;
28
- GetObserverUptime.directionType = DOWNLINK;
29
- GetObserverUptime.examples = examples;
30
- GetObserverUptime.hasParameters = true;
31
- export default GetObserverUptime;
32
- //# sourceMappingURL=GetObserverUptime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetObserverUptime.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverUptime.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,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,eAAe,CAAC;IAChC,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,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAezC,eAAe,iBAAiB,CAAC"}
@@ -1,19 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- import { TTime2000 } from '../../../utils/time.js';
4
- interface IReadMeterArchiveParameters extends ICommandParameters {
5
- meterId: number;
6
- archiveType: number;
7
- time2000: TTime2000;
8
- }
9
- declare class ReadMeterArchive extends Command {
10
- parameters: IReadMeterArchiveParameters;
11
- constructor(parameters: IReadMeterArchiveParameters);
12
- static readonly id = 127;
13
- static readonly directionType = 1;
14
- static readonly examples: TCommandExampleList;
15
- static readonly hasParameters = true;
16
- static fromBytes(data: Uint8Array): ReadMeterArchive;
17
- toBytes(): Uint8Array;
18
- }
19
- export default ReadMeterArchive;
@@ -1,58 +0,0 @@
1
- import Command from '../../Command.js';
2
- import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
3
- import { DOWNLINK } from '../../constants/directions.js';
4
- const COMMAND_ID = 0x7f;
5
- const COMMAND_SIZE = REQUEST_ID_SIZE + 2 + DATE_TIME_SIZE;
6
- const examples = [
7
- {
8
- name: 'request to read archive 1 from 2023.12.23 00:00:00 GMT for meter 5',
9
- parameters: {
10
- requestId: 33,
11
- meterId: 5,
12
- archiveType: 1,
13
- time2000: 756604800
14
- },
15
- hex: { header: '7f 07', body: '21 05 01 2d 18 df 80' }
16
- },
17
- {
18
- name: 'request archive 2 from 2023-12-23 04:00:00 GMT for meter 6',
19
- parameters: {
20
- requestId: 34,
21
- meterId: 6,
22
- archiveType: 2,
23
- time2000: 756619200
24
- },
25
- hex: { header: '7f 07', body: '22 06 02 2d 19 17 c0' }
26
- }
27
- ];
28
- class ReadMeterArchive extends Command {
29
- constructor(parameters) {
30
- super();
31
- this.parameters = parameters;
32
- this.size = COMMAND_SIZE;
33
- }
34
- static fromBytes(data) {
35
- const buffer = new CommandBinaryBuffer(data);
36
- return new ReadMeterArchive({
37
- requestId: buffer.getUint8(),
38
- meterId: buffer.getUint8(),
39
- archiveType: buffer.getUint8(),
40
- time2000: buffer.getUint32()
41
- });
42
- }
43
- toBytes() {
44
- const { requestId, meterId, archiveType, time2000 } = this.parameters;
45
- const buffer = new CommandBinaryBuffer(this.size);
46
- buffer.setUint8(requestId);
47
- buffer.setUint8(meterId);
48
- buffer.setUint8(archiveType);
49
- buffer.setUint32(time2000);
50
- return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
51
- }
52
- }
53
- ReadMeterArchive.id = COMMAND_ID;
54
- ReadMeterArchive.directionType = DOWNLINK;
55
- ReadMeterArchive.examples = examples;
56
- ReadMeterArchive.hasParameters = true;
57
- export default ReadMeterArchive;
58
- //# sourceMappingURL=ReadMeterArchive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadMeterArchive.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/ReadMeterArchive.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAcvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,cAAc,CAAC;AAE1D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oEAAoE;QAC1E,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,CAAC;YACd,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACvD;IACD;QACI,IAAI,EAAE,4DAA4D;QAClE,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,CAAC;YACd,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACvD;CACJ,CAAC;AAyBF,MAAM,gBAAiB,SAAQ,OAAO;IAClC,YAAqB,UAAuC;QACxD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA6B;QAGxD,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,gBAAgB,CAAC;YACxB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC1B,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC9B,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE;SAC/B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QACpE,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAE5D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC7B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,mBAAE,GAAG,UAAU,CAAC;AAEhB,8BAAa,GAAG,QAAQ,CAAC;AAEzB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,gBAAgB,CAAC"}
@@ -1,16 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface IRemoveMeterParameters extends ICommandParameters {
4
- meterId: number;
5
- }
6
- declare class RemoveMeter extends Command {
7
- parameters: IRemoveMeterParameters;
8
- constructor(parameters: IRemoveMeterParameters);
9
- static readonly id = 114;
10
- static readonly directionType = 1;
11
- static readonly examples: TCommandExampleList;
12
- static readonly hasParameters = true;
13
- static fromBytes([requestId, meterId]: Uint8Array): RemoveMeter;
14
- toBytes(): Uint8Array;
15
- }
16
- export default RemoveMeter;
@@ -1,34 +0,0 @@
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
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterId]));
27
- }
28
- }
29
- RemoveMeter.id = COMMAND_ID;
30
- RemoveMeter.directionType = DOWNLINK;
31
- RemoveMeter.examples = examples;
32
- RemoveMeter.hasParameters = true;
33
- export default RemoveMeter;
34
- //# sourceMappingURL=RemoveMeter.js.map
@@ -1 +0,0 @@
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,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CACvE,CAAC;IACN,CAAC;;AApBe,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,WAAW,CAAC"}
@@ -1,16 +0,0 @@
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;
@@ -1,34 +0,0 @@
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
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterProfileId]));
27
- }
28
- }
29
- RemoveMeterProfile.id = COMMAND_ID;
30
- RemoveMeterProfile.directionType = DOWNLINK;
31
- RemoveMeterProfile.examples = examples;
32
- RemoveMeterProfile.hasParameters = true;
33
- export default RemoveMeterProfile;
34
- //# sourceMappingURL=RemoveMeterProfile.js.map
@@ -1 +0,0 @@
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,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAC9D,CACJ,CAAC;IACN,CAAC;;AAtBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,QAAQ,CAAC;AAEzB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,kBAAkB,CAAC"}
@@ -1,17 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface IRemoveObisProfileParameters extends ICommandParameters {
4
- meterProfileId: number;
5
- obisId: number;
6
- }
7
- declare class RemoveObisProfile extends Command {
8
- parameters: IRemoveObisProfileParameters;
9
- constructor(parameters: IRemoveObisProfileParameters);
10
- static readonly id = 70;
11
- static readonly directionType = 1;
12
- static readonly examples: TCommandExampleList;
13
- static readonly hasParameters = true;
14
- static fromBytes([requestId, meterProfileId, obisId]: Uint8Array): RemoveObisProfile;
15
- toBytes(): Uint8Array;
16
- }
17
- export default RemoveObisProfile;
@@ -1,35 +0,0 @@
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 = 0x46;
5
- const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
6
- const examples = [
7
- {
8
- name: 'remove obis profile for obisId 28 in meter profile 4',
9
- parameters: {
10
- requestId: 5,
11
- meterProfileId: 4,
12
- obisId: 28
13
- },
14
- hex: { header: '46 03', body: '05 04 1c' }
15
- }
16
- ];
17
- class RemoveObisProfile 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 RemoveObisProfile({ requestId, meterProfileId, obisId });
25
- }
26
- toBytes() {
27
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterProfileId, this.parameters.obisId]));
28
- }
29
- }
30
- RemoveObisProfile.id = COMMAND_ID;
31
- RemoveObisProfile.directionType = DOWNLINK;
32
- RemoveObisProfile.examples = examples;
33
- RemoveObisProfile.hasParameters = true;
34
- export default RemoveObisProfile;
35
- //# sourceMappingURL=RemoveObisProfile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoveObisProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveObisProfile.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,sDAAsD;QAC5D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,MAAM,EAAE,EAAE;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;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,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAa;QAC9D,OAAO,IAAI,iBAAiB,CAAC,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAC,CAAC,CAAC;IACtE,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CACtG,CAAC;IACN,CAAC;;AApBe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,iBAAiB,CAAC"}
@@ -1,16 +0,0 @@
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 = 23;
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;
@@ -1,34 +0,0 @@
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 = 0x17;
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: '17 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
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.activationMethod]));
27
- }
28
- }
29
- SetLorawanActivationMethod.id = COMMAND_ID;
30
- SetLorawanActivationMethod.directionType = DOWNLINK;
31
- SetLorawanActivationMethod.examples = examples;
32
- SetLorawanActivationMethod.hasParameters = true;
33
- export default SetLorawanActivationMethod;
34
- //# sourceMappingURL=SetLorawanActivationMethod.js.map
@@ -1 +0,0 @@
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,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAChE,CACJ,CAAC;IACN,CAAC;;AAtBe,6BAAE,GAAG,UAAU,CAAC;AAEhB,wCAAa,GAAG,QAAQ,CAAC;AAEzB,mCAAQ,GAAG,QAAQ,CAAC;AAEpB,wCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,0BAA0B,CAAC"}
@@ -1,18 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface ISetMeterArchiveProfileParameters extends ICommandParameters {
4
- meterProfileId: number;
5
- archive1Period: number;
6
- archive2Period: number;
7
- }
8
- declare class SetMeterArchiveProfile extends Command {
9
- parameters: ISetMeterArchiveProfileParameters;
10
- constructor(parameters: ISetMeterArchiveProfileParameters);
11
- static readonly id = 104;
12
- static readonly directionType = 1;
13
- static readonly examples: TCommandExampleList;
14
- static readonly hasParameters = true;
15
- static fromBytes(data: Uint8Array): SetMeterArchiveProfile;
16
- toBytes(): Uint8Array;
17
- }
18
- export default SetMeterArchiveProfile;
@@ -1,48 +0,0 @@
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 = 0x68;
5
- const COMMAND_SIZE = REQUEST_ID_SIZE + 1 + 2 + 2;
6
- const examples = [
7
- {
8
- name: 'set archive settings in meter profile 8',
9
- parameters: {
10
- requestId: 68,
11
- meterProfileId: 8,
12
- archive1Period: 2880,
13
- archive2Period: 30
14
- },
15
- hex: { header: '68 06', body: '44 08 0b 40 00 1e' }
16
- }
17
- ];
18
- class SetMeterArchiveProfile 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 SetMeterArchiveProfile({
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
- SetMeterArchiveProfile.id = COMMAND_ID;
44
- SetMeterArchiveProfile.directionType = DOWNLINK;
45
- SetMeterArchiveProfile.examples = examples;
46
- SetMeterArchiveProfile.hasParameters = true;
47
- export default SetMeterArchiveProfile;
48
- //# sourceMappingURL=SetMeterArchiveProfile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetMeterArchiveProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetMeterArchiveProfile.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,yCAAyC;QAC/C,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,sBAAuB,SAAQ,OAAO;IACxC,YAAqB,UAA6C;QAC9D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAmC;QAG9D,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,sBAAsB,CAAC;YAC9B,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,yBAAE,GAAG,UAAU,CAAC;AAEhB,oCAAa,GAAG,QAAQ,CAAC;AAEzB,+BAAQ,GAAG,QAAQ,CAAC;AAEpB,oCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,sBAAsB,CAAC"}
@@ -1,18 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters, IObis } from '../../CommandBinaryBuffer.js';
3
- interface ISetObisIdParameters extends ICommandParameters {
4
- meterProfileId: number;
5
- obisId: number;
6
- obis: IObis;
7
- }
8
- declare class SetObisId extends Command {
9
- parameters: ISetObisIdParameters;
10
- constructor(parameters: ISetObisIdParameters);
11
- static readonly id = 66;
12
- static readonly directionType = 1;
13
- static readonly examples: TCommandExampleList;
14
- static readonly hasParameters = true;
15
- static fromBytes(data: Uint8Array): SetObisId;
16
- toBytes(): Uint8Array;
17
- }
18
- export default SetObisId;
@@ -1 +0,0 @@
1
- {"version":3,"file":"SetObisId.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetObisId.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAavD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,sDAAsD;QAC5D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACvD;CACJ,CAAC;AA2BF,MAAM,SAAU,SAAQ,OAAO;IAC3B,YAAqB,UAAgC;QACjD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAsB;QAIjD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3F,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,SAAS,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE;YACjC,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE;YACzB,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAElE,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,OAAO,CAAC,IAAI,CAAC,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,YAAE,GAAG,UAAU,CAAC;AAEhB,uBAAa,GAAG,QAAQ,CAAC;AAEzB,kBAAQ,GAAG,QAAQ,CAAC;AAEpB,uBAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,SAAS,CAAC"}
@@ -1,16 +0,0 @@
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;
@@ -1,34 +0,0 @@
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
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.singleMode ? 1 : 0]));
27
- }
28
- }
29
- SetObserverSingleMode.id = COMMAND_ID;
30
- SetObserverSingleMode.directionType = DOWNLINK;
31
- SetObserverSingleMode.examples = examples;
32
- SetObserverSingleMode.hasParameters = true;
33
- export default SetObserverSingleMode;
34
- //# sourceMappingURL=SetObserverSingleMode.js.map
@@ -1 +0,0 @@
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,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAClE,CACJ,CAAC;IACN,CAAC;;AAtBe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,qBAAqB,CAAC"}
@@ -1,18 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface ISetupMeterParameters extends ICommandParameters {
4
- meterId: number;
5
- meterProfileId: number;
6
- address: string;
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;
@@ -1,47 +0,0 @@
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',
8
- parameters: {
9
- requestId: 3,
10
- meterId: 20,
11
- meterProfileId: 17,
12
- address: 'ma2375'
13
- },
14
- hex: { header: '70 0a', body: '03 14 11 06 6d 61 32 33 37 35' }
15
- }
16
- ];
17
- class SetupMeter extends Command {
18
- constructor(parameters) {
19
- super();
20
- this.parameters = parameters;
21
- this.size = REQUEST_ID_SIZE + 3 + parameters.address.length;
22
- }
23
- static fromBytes(data) {
24
- const buffer = new CommandBinaryBuffer(data);
25
- return new SetupMeter({
26
- requestId: buffer.getUint8(),
27
- meterId: buffer.getUint8(),
28
- meterProfileId: buffer.getUint8(),
29
- address: buffer.getString()
30
- });
31
- }
32
- toBytes() {
33
- const buffer = new CommandBinaryBuffer(this.size);
34
- const { requestId, meterId, meterProfileId, address } = this.parameters;
35
- buffer.setUint8(requestId);
36
- buffer.setUint8(meterId);
37
- buffer.setUint8(meterProfileId);
38
- buffer.setString(address);
39
- return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
40
- }
41
- }
42
- SetupMeter.id = COMMAND_ID;
43
- SetupMeter.directionType = DOWNLINK;
44
- SetupMeter.examples = examples;
45
- SetupMeter.hasParameters = true;
46
- export default SetupMeter;
47
- //# sourceMappingURL=SetupMeter.js.map
@@ -1 +0,0 @@
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;IAClC;QACI,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,EAAE;YAClB,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,+BAA+B,EAAC;KAChE;CACJ,CAAC;AAyBF,MAAM,UAAW,SAAQ,OAAO;IAC5B,YAAqB,UAAiC;QAClD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAuB;QAGlD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;IAChE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,UAAU,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC1B,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE;YACjC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE;SAC9B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEtE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAChC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,aAAE,GAAG,UAAU,CAAC;AAEhB,wBAAa,GAAG,QAAQ,CAAC;AAEzB,mBAAQ,GAAG,QAAQ,CAAC;AAEpB,wBAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,UAAU,CAAC"}
@@ -1,16 +0,0 @@
1
- import Command, { TCommandExampleList } from '../../Command.js';
2
- import { ICommandParameters } from '../../CommandBinaryBuffer.js';
3
- interface IAddMeterProfileResponseParameters extends ICommandParameters {
4
- resultCode: number;
5
- }
6
- declare class AddMeterProfileResponse extends Command {
7
- parameters: IAddMeterProfileResponseParameters;
8
- constructor(parameters: IAddMeterProfileResponseParameters);
9
- static readonly id = 97;
10
- static readonly directionType = 2;
11
- static readonly examples: TCommandExampleList;
12
- static readonly hasParameters = true;
13
- static fromBytes([requestId, resultCode]: Uint8Array): AddMeterProfileResponse;
14
- toBytes(): Uint8Array;
15
- }
16
- export default AddMeterProfileResponse;
@@ -1,35 +0,0 @@
1
- import Command from '../../Command.js';
2
- import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
3
- import { UPLINK } from '../../constants/directions.js';
4
- import { resultCodes } from '../../constants/index.js';
5
- const COMMAND_ID = 0x61;
6
- const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
7
- const examples = [
8
- {
9
- name: 'add meter profile - succeed',
10
- parameters: {
11
- requestId: 7,
12
- resultCode: resultCodes.OK
13
- },
14
- hex: { header: '61 02', body: '07 00' }
15
- }
16
- ];
17
- class AddMeterProfileResponse extends Command {
18
- constructor(parameters) {
19
- super();
20
- this.parameters = parameters;
21
- this.size = COMMAND_SIZE;
22
- }
23
- static fromBytes([requestId, resultCode]) {
24
- return new AddMeterProfileResponse({ requestId, resultCode });
25
- }
26
- toBytes() {
27
- return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
28
- }
29
- }
30
- AddMeterProfileResponse.id = COMMAND_ID;
31
- AddMeterProfileResponse.directionType = UPLINK;
32
- AddMeterProfileResponse.examples = examples;
33
- AddMeterProfileResponse.hasParameters = true;
34
- export default AddMeterProfileResponse;
35
- //# sourceMappingURL=AddMeterProfileResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddMeterProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/AddMeterProfileResponse.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;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,6BAA6B;QACnC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8C;QAC/D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoC;QAG/D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,uBAAuB,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IAChE,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAC1D,CACJ,CAAC;IACN,CAAC;;AAtBe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,uBAAuB,CAAC"}