jooby-codec 2.14.1 → 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.
- package/dist/mtx/CommandBinaryBuffer.d.ts +27 -0
- package/dist/mtx/CommandBinaryBuffer.js +55 -0
- package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDeviceId.d.ts +12 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js +30 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +17 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +46 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +16 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js +38 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js +91 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +62 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js +52 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
- package/dist/mtx/commands/downlink/index.d.ts +6 -0
- package/dist/mtx/commands/downlink/index.js +6 -0
- package/dist/mtx/commands/downlink/index.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +16 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +43 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/index.d.ts +6 -0
- package/dist/mtx/commands/uplink/index.js +6 -0
- package/dist/mtx/commands/uplink/index.js.map +1 -1
- package/dist/mtx/constants/commandRelations.d.ts +4 -0
- package/dist/mtx/constants/commandRelations.js +21 -0
- package/dist/mtx/constants/commandRelations.js.map +1 -0
- package/dist/mtx/message.d.ts +2 -2
- package/dist/obis-observer/Command.js +1 -1
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +9 -9
- package/dist/obis-observer/CommandBinaryBuffer.js +20 -20
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +4 -3
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +23 -16
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js +41 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
- package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverUptime.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +48 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +20 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +51 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.js +36 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +35 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +35 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js +82 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +48 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupObis.d.ts +19 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js +85 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -9
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +25 -14
- package/dist/obis-observer/commands/downlink/index.js +25 -14
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js +36 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +36 -14
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -6
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts} +7 -8
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +38 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +83 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +104 -0
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -17
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -10
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +54 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +92 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +20 -19
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +41 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -19
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -20
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +22 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +102 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +69 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/RebootResponse.js +8 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +8 -26
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +10 -18
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +27 -15
- package/dist/obis-observer/commands/uplink/index.js +27 -15
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.d.ts +2 -0
- package/dist/obis-observer/constants/commandRelations.js +35 -14
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
- package/dist/obis-observer/constants/obisIds.js +228 -0
- package/dist/obis-observer/constants/obisIds.js.map +1 -0
- package/dist/obis-observer/constants/resultCodes.d.ts +12 -4
- package/dist/obis-observer/constants/resultCodes.js +12 -4
- package/dist/obis-observer/constants/resultCodes.js.map +1 -1
- package/dist/obis-observer/constants/resultDescriptions.d.ts +16 -0
- package/dist/obis-observer/constants/resultDescriptions.js +17 -0
- package/dist/obis-observer/constants/resultDescriptions.js.map +1 -0
- package/dist/obis-observer/message.d.ts +2 -2
- package/dist/obis-observer/message.js +4 -12
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +0 -56
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +0 -44
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNames.js +0 -48
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetShortName.js +0 -51
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +0 -44
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +0 -47
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +0 -77
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +0 -81
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +0 -55
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -61
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
- package/dist/obis-observer/constants/shortNames.js +0 -228
- package/dist/obis-observer/constants/shortNames.js.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
interface IGetArchiveStateParameters extends ICommandParameters {
|
|
4
|
-
|
|
4
|
+
meterId?: number;
|
|
5
|
+
archiveType: number;
|
|
5
6
|
}
|
|
6
7
|
declare class GetArchiveState extends Command {
|
|
7
8
|
parameters: IGetArchiveStateParameters;
|
|
8
9
|
constructor(parameters: IGetArchiveStateParameters);
|
|
9
|
-
static readonly id =
|
|
10
|
+
static readonly id = 15;
|
|
10
11
|
static readonly directionType = 1;
|
|
11
12
|
static readonly examples: TCommandExampleList;
|
|
12
13
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
14
|
+
static fromBytes([requestId, archiveType, meterId]: Uint8Array): GetArchiveState;
|
|
14
15
|
toBytes(): Uint8Array;
|
|
15
16
|
}
|
|
16
17
|
export default GetArchiveState;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE +
|
|
4
|
+
const COMMAND_ID = 0x0f;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 2;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
8
|
name: 'get archive state',
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 5,
|
|
11
|
-
|
|
11
|
+
archiveType: 1
|
|
12
12
|
},
|
|
13
|
-
hex: { header: '
|
|
13
|
+
hex: { header: '0f 02', body: '05 01' }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'get archive state for meter 3',
|
|
17
|
+
parameters: {
|
|
18
|
+
requestId: 5,
|
|
19
|
+
archiveType: 1,
|
|
20
|
+
meterId: 3
|
|
21
|
+
},
|
|
22
|
+
hex: { header: '0f 03', body: '05 01 03' }
|
|
14
23
|
}
|
|
15
24
|
];
|
|
16
25
|
class GetArchiveState extends Command {
|
|
@@ -19,19 +28,17 @@ class GetArchiveState extends Command {
|
|
|
19
28
|
this.parameters = parameters;
|
|
20
29
|
this.size = COMMAND_SIZE;
|
|
21
30
|
}
|
|
22
|
-
static fromBytes(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
profile: buffer.getUint8()
|
|
27
|
-
});
|
|
31
|
+
static fromBytes([requestId, archiveType, meterId]) {
|
|
32
|
+
return meterId
|
|
33
|
+
? new GetArchiveState({ requestId, archiveType, meterId })
|
|
34
|
+
: new GetArchiveState({ requestId, archiveType });
|
|
28
35
|
}
|
|
29
36
|
toBytes() {
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return Command.toBytes(COMMAND_ID,
|
|
37
|
+
const { requestId, archiveType, meterId } = this.parameters;
|
|
38
|
+
const content = meterId
|
|
39
|
+
? [requestId, archiveType, meterId]
|
|
40
|
+
: [requestId, archiveType];
|
|
41
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array(content));
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
GetArchiveState.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetArchiveState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"GetArchiveState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveState.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,mBAAmB;QACzB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,CAAC;SACjB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;IACD;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,CAAC;YACd,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAAsC;QACvD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA4B;QAGvD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAa;QAC5D,OAAO,OAAO;YACV,CAAC,CAAC,IAAI,eAAe,CAAC,EAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAC,CAAC;YACxD,CAAC,CAAC,IAAI,eAAe,CAAC,EAAC,SAAS,EAAE,WAAW,EAAC,CAAC,CAAC;IACxD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1D,MAAM,OAAO,GAAG,OAAO;YACnB,CAAC,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC;YACnC,CAAC,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAG/B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,OAAO,CAAC,CAC1B,CAAC;IACN,CAAC;;AA5Be,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,eAAe,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
declare class GetLorawanInfo extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 32;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetLorawanInfo;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export default GetLorawanInfo;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x20;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
7
|
name: 'simple request',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 8
|
|
10
10
|
},
|
|
11
|
-
hex: { header: '
|
|
11
|
+
hex: { header: '20 01', body: '08' }
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
class GetLorawanInfo extends Command {
|
|
@@ -17,18 +17,11 @@ class GetLorawanInfo extends Command {
|
|
|
17
17
|
this.parameters = parameters;
|
|
18
18
|
this.size = REQUEST_ID_SIZE;
|
|
19
19
|
}
|
|
20
|
-
static fromBytes(
|
|
21
|
-
|
|
22
|
-
return new GetLorawanInfo({ requestId: buffer.getUint8() });
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetLorawanInfo({ requestId });
|
|
23
22
|
}
|
|
24
23
|
toBytes() {
|
|
25
|
-
|
|
26
|
-
throw new Error('unknown or invalid size');
|
|
27
|
-
}
|
|
28
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
-
const { requestId } = this.parameters;
|
|
30
|
-
buffer.setUint8(requestId);
|
|
31
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
27
|
GetLorawanInfo.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.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,cAAe,SAAQ,OAAO;IAChC,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,cAAc,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC3C,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,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,QAAQ,CAAC;AAEzB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,cAAc,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
declare class GetLorawanState extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 34;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetLorawanState;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export default GetLorawanState;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x22;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
7
|
name: 'simple request',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 8
|
|
10
10
|
},
|
|
11
|
-
hex: { header: '
|
|
11
|
+
hex: { header: '22 01', body: '08' }
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
class GetLorawanState extends Command {
|
|
@@ -17,18 +17,11 @@ class GetLorawanState extends Command {
|
|
|
17
17
|
this.parameters = parameters;
|
|
18
18
|
this.size = REQUEST_ID_SIZE;
|
|
19
19
|
}
|
|
20
|
-
static fromBytes(
|
|
21
|
-
|
|
22
|
-
return new GetLorawanState({ requestId: buffer.getUint8() });
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetLorawanState({ requestId });
|
|
23
22
|
}
|
|
24
23
|
toBytes() {
|
|
25
|
-
|
|
26
|
-
throw new Error('unknown or invalid size');
|
|
27
|
-
}
|
|
28
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
-
const { requestId } = this.parameters;
|
|
30
|
-
buffer.setUint8(requestId);
|
|
31
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
27
|
GetLorawanState.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.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,eAAgB,SAAQ,OAAO;IACjC,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,eAAe,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC5C,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,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterDateParameters extends ICommandParameters {
|
|
4
|
+
meterId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterDate extends Command {
|
|
7
|
+
parameters: IGetMeterDateParameters;
|
|
8
|
+
constructor(parameters: IGetMeterDateParameters);
|
|
9
|
+
static readonly id = 122;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterId]: Uint8Array): GetMeterDate;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterDate;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = 0x7a;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get date for meter 3',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 4,
|
|
10
|
+
meterId: 3
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '7a 02', body: '04 03' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterDate extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes([requestId, meterId]) {
|
|
22
|
+
return new GetMeterDate({ requestId, meterId });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
const { parameters } = this;
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetMeterDate.id = COMMAND_ID;
|
|
30
|
+
GetMeterDate.directionType = DOWNLINK;
|
|
31
|
+
GetMeterDate.examples = examples;
|
|
32
|
+
GetMeterDate.hasParameters = true;
|
|
33
|
+
export default GetMeterDate;
|
|
34
|
+
//# sourceMappingURL=GetMeterDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterDate.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterDate.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;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,YAAa,SAAQ,OAAO;IAC9B,YAAqB,UAAmC;QACpD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAyB;QAGpD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,YAAY,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterIdParameters extends ICommandParameters {
|
|
4
|
+
address: string;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterId extends Command {
|
|
7
|
+
parameters: IGetMeterIdParameters;
|
|
8
|
+
constructor(parameters: IGetMeterIdParameters);
|
|
9
|
+
static readonly id = 118;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetMeterId;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterId;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 = 0x76;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get meter id for meter with address ma3275',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 0,
|
|
10
|
+
address: 'ma2375'
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '76 08', body: '00 06 6d 61 32 33 37 35' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterId extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1 + parameters.address.length;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
return new GetMeterId({
|
|
24
|
+
requestId: buffer.getUint8(),
|
|
25
|
+
address: buffer.getString()
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
toBytes() {
|
|
29
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
30
|
+
const { requestId, address } = this.parameters;
|
|
31
|
+
buffer.setUint8(requestId);
|
|
32
|
+
buffer.setString(address);
|
|
33
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
GetMeterId.id = COMMAND_ID;
|
|
37
|
+
GetMeterId.directionType = DOWNLINK;
|
|
38
|
+
GetMeterId.examples = examples;
|
|
39
|
+
GetMeterId.hasParameters = true;
|
|
40
|
+
export default GetMeterId;
|
|
41
|
+
//# sourceMappingURL=GetMeterId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterId.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterId.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAC;KAC1D;CACJ,CAAC;AAuBF,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,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,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,aAAE,GAAG,UAAU,CAAC;AAEhB,wBAAa,GAAG,QAAQ,CAAC;AAEzB,mBAAQ,GAAG,QAAQ,CAAC;AAEpB,wBAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterIdListParameters extends ICommandParameters {
|
|
4
|
+
index: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterIdList extends Command {
|
|
7
|
+
parameters: IGetMeterIdListParameters;
|
|
8
|
+
constructor(parameters: IGetMeterIdListParameters);
|
|
9
|
+
static readonly id = 116;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, index]: Uint8Array): GetMeterIdList;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterIdList;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = 0x74;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get meter id list',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 8,
|
|
10
|
+
index: 3
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '74 02', body: '08 03' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterIdList extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes([requestId, index]) {
|
|
22
|
+
return new GetMeterIdList({ requestId, index });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
const { parameters } = this;
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.index]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetMeterIdList.id = COMMAND_ID;
|
|
30
|
+
GetMeterIdList.directionType = DOWNLINK;
|
|
31
|
+
GetMeterIdList.examples = examples;
|
|
32
|
+
GetMeterIdList.hasParameters = true;
|
|
33
|
+
export default GetMeterIdList;
|
|
34
|
+
//# sourceMappingURL=GetMeterIdList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterIdList.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;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;SACX;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAAqC;QACtD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2B;QAGtD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,KAAK,CAAa;QAC7C,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACN,CAAC;;AAtBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,QAAQ,CAAC;AAEzB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterInfoParameters extends ICommandParameters {
|
|
4
|
+
meterId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterInfo extends Command {
|
|
7
|
+
parameters: IGetMeterInfoParameters;
|
|
8
|
+
constructor(parameters: IGetMeterInfoParameters);
|
|
9
|
+
static readonly id = 120;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterId]: Uint8Array): GetMeterInfo;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterInfo;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = 0x78;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get meter info for meter 1',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 8,
|
|
10
|
+
meterId: 1
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '78 02', body: '08 01' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterInfo extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes([requestId, meterId]) {
|
|
22
|
+
return new GetMeterInfo({ requestId, meterId });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
const { parameters } = this;
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetMeterInfo.id = COMMAND_ID;
|
|
30
|
+
GetMeterInfo.directionType = DOWNLINK;
|
|
31
|
+
GetMeterInfo.examples = examples;
|
|
32
|
+
GetMeterInfo.hasParameters = true;
|
|
33
|
+
export default GetMeterInfo;
|
|
34
|
+
//# sourceMappingURL=GetMeterInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterInfo.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;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,YAAa,SAAQ,OAAO;IAC9B,YAAqB,UAAmC;QACpD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAyB;QAGpD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,YAAY,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterProfileParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterProfile extends Command {
|
|
7
|
+
parameters: IGetMeterProfileParameters;
|
|
8
|
+
constructor(parameters: IGetMeterProfileParameters);
|
|
9
|
+
static readonly id = 102;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterProfileId]: Uint8Array): GetMeterProfile;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterProfile;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x66;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get meter archive settings from meter profile 4',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
meterProfileId: 4
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '66 02', body: '03 04' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetMeterProfile 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 GetMeterProfile({ requestId, meterProfileId });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
const { parameters } = this;
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterProfileId]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
GetMeterProfile.id = COMMAND_ID;
|
|
31
|
+
GetMeterProfile.directionType = DOWNLINK;
|
|
32
|
+
GetMeterProfile.examples = examples;
|
|
33
|
+
GetMeterProfile.hasParameters = true;
|
|
34
|
+
export default GetMeterProfile;
|
|
35
|
+
//# sourceMappingURL=GetMeterProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfile.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,iDAAiD;QACvD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAAsC;QACvD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA4B;QAGvD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,CAAa;QACtD,OAAO,IAAI,eAAe,CAAC,EAAC,SAAS,EAAE,cAAc,EAAC,CAAC,CAAC;IAC5D,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC,CACpE,CAAC;IACN,CAAC;;AAtBe,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterProfileIdListParameters extends ICommandParameters {
|
|
4
|
+
index: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterProfileIdList extends Command {
|
|
7
|
+
parameters: IGetMeterProfileIdListParameters;
|
|
8
|
+
constructor(parameters: IGetMeterProfileIdListParameters);
|
|
9
|
+
static readonly id = 100;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, index]: Uint8Array): GetMeterProfileIdList;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterProfileIdList;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = 0x64;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get meter profile id list',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 8,
|
|
10
|
+
index: 3
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '64 02', body: '08 03' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterProfileIdList extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes([requestId, index]) {
|
|
22
|
+
return new GetMeterProfileIdList({ requestId, index });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
const { parameters } = this;
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.index]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetMeterProfileIdList.id = COMMAND_ID;
|
|
30
|
+
GetMeterProfileIdList.directionType = DOWNLINK;
|
|
31
|
+
GetMeterProfileIdList.examples = examples;
|
|
32
|
+
GetMeterProfileIdList.hasParameters = true;
|
|
33
|
+
export default GetMeterProfileIdList;
|
|
34
|
+
//# sourceMappingURL=GetMeterProfileIdList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterProfileIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfileIdList.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;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2BAA2B;QACjC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;SACX;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,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,KAAK,CAAa;QAC7C,OAAO,IAAI,qBAAqB,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAC3D,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterReadoutStateParameters extends ICommandParameters {
|
|
4
|
+
meterId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterReadoutState extends Command {
|
|
7
|
+
parameters: IGetMeterReadoutStateParameters;
|
|
8
|
+
constructor(parameters: IGetMeterReadoutStateParameters);
|
|
9
|
+
static readonly id = 129;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterId]: Uint8Array): GetMeterReadoutState;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterReadoutState;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = 0x81;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get readout state for meter 3',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 9,
|
|
10
|
+
meterId: 3
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '81 02', body: '09 03' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterReadoutState extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + (parameters.meterId ? 1 : 0);
|
|
20
|
+
}
|
|
21
|
+
static fromBytes([requestId, meterId]) {
|
|
22
|
+
return new GetMeterReadoutState({ requestId, meterId });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
const { parameters } = this;
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetMeterReadoutState.id = COMMAND_ID;
|
|
30
|
+
GetMeterReadoutState.directionType = DOWNLINK;
|
|
31
|
+
GetMeterReadoutState.examples = examples;
|
|
32
|
+
GetMeterReadoutState.hasParameters = true;
|
|
33
|
+
export default GetMeterReadoutState;
|
|
34
|
+
//# sourceMappingURL=GetMeterReadoutState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterReadoutState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterReadoutState.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;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,oBAAqB,SAAQ,OAAO;IACtC,YAAqB,UAA2C;QAC5D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAiC;QAG5D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,oBAAoB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAC1D,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,QAAQ,CAAC;AAEzB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,oBAAoB,CAAC"}
|