jooby-codec 2.15.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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.js +29 -12
- 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
|
@@ -12,7 +12,7 @@ interface IGetLorawanStateResponseParameters extends ICommandParameters {
|
|
|
12
12
|
declare class GetLorawanStateResponse extends Command {
|
|
13
13
|
parameters: IGetLorawanStateResponseParameters;
|
|
14
14
|
constructor(parameters: IGetLorawanStateResponseParameters);
|
|
15
|
-
static readonly id =
|
|
15
|
+
static readonly id = 35;
|
|
16
16
|
static readonly directionType = 2;
|
|
17
17
|
static readonly examples: TCommandExampleList;
|
|
18
18
|
static readonly hasParameters = true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x23;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: '
|
|
7
|
+
name: 'response to GetLorawanState',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 8,
|
|
10
10
|
downlinkQuality: 1,
|
|
@@ -15,7 +15,7 @@ const examples = [
|
|
|
15
15
|
resetFlag: 0,
|
|
16
16
|
senderCollision: 0
|
|
17
17
|
},
|
|
18
|
-
hex: { header: '
|
|
18
|
+
hex: { header: '23 08', body: '08 01 c1 05 06 00 00 00' }
|
|
19
19
|
}
|
|
20
20
|
];
|
|
21
21
|
class GetLorawanStateResponse extends Command {
|
|
@@ -25,33 +25,30 @@ class GetLorawanStateResponse extends Command {
|
|
|
25
25
|
this.size = REQUEST_ID_SIZE + 7;
|
|
26
26
|
}
|
|
27
27
|
static fromBytes(data) {
|
|
28
|
-
const
|
|
28
|
+
const [requestId, downlinkQuality, rssi, snr, deviceMargin, gateMargin, resetFlag, senderCollision] = data;
|
|
29
29
|
return new GetLorawanStateResponse({
|
|
30
|
-
requestId
|
|
31
|
-
downlinkQuality
|
|
32
|
-
rssi
|
|
33
|
-
snr
|
|
34
|
-
deviceMargin
|
|
35
|
-
gateMargin
|
|
36
|
-
resetFlag
|
|
37
|
-
senderCollision
|
|
30
|
+
requestId,
|
|
31
|
+
downlinkQuality,
|
|
32
|
+
rssi,
|
|
33
|
+
snr,
|
|
34
|
+
deviceMargin,
|
|
35
|
+
gateMargin,
|
|
36
|
+
resetFlag,
|
|
37
|
+
senderCollision
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
toBytes() {
|
|
41
|
-
if (typeof this.size !== 'number') {
|
|
42
|
-
throw new Error('unknown or invalid size');
|
|
43
|
-
}
|
|
44
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
45
41
|
const { parameters } = this;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([
|
|
43
|
+
parameters.requestId,
|
|
44
|
+
parameters.downlinkQuality,
|
|
45
|
+
parameters.rssi,
|
|
46
|
+
parameters.snr,
|
|
47
|
+
parameters.deviceMargin,
|
|
48
|
+
parameters.gateMargin,
|
|
49
|
+
parameters.resetFlag,
|
|
50
|
+
parameters.senderCollision
|
|
51
|
+
]));
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
GetLorawanStateResponse.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetLorawanStateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"GetLorawanStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetLorawanStateResponse.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;AAoBrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE,CAAC;YAClB,IAAI,EAAE,GAAG;YACT,GAAG,EAAE,CAAC;YACN,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE,CAAC;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAC;KAC1D;CACJ,CAAC;AA+BF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8C;QAC/D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoC;QAI/D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,CACF,SAAS,EACT,eAAe,EACf,IAAI,EACJ,GAAG,EACH,YAAY,EACZ,UAAU,EACV,SAAS,EACT,eAAe,CAClB,GAAG,IAAI,CAAC;QAET,OAAO,IAAI,uBAAuB,CAAC;YAC/B,SAAS;YACT,eAAe;YACf,IAAI;YACJ,GAAG;YACH,YAAY;YACZ,UAAU;YACV,SAAS;YACT,eAAe;SAClB,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC;YACX,UAAU,CAAC,SAAS;YACpB,UAAU,CAAC,eAAe;YAC1B,UAAU,CAAC,IAAI;YACf,UAAU,CAAC,GAAG;YACd,UAAU,CAAC,YAAY;YACvB,UAAU,CAAC,UAAU;YACrB,UAAU,CAAC,SAAS;YACpB,UAAU,CAAC,eAAe;SAC7B,CAAC,CACL,CAAC;IACN,CAAC;;AAnDe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAiDzC,eAAe,uBAAuB,CAAC"}
|
package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
-
interface
|
|
4
|
+
interface IGetMeterDateResponseParameters extends ICommandParameters {
|
|
5
5
|
time2000: TTime2000;
|
|
6
|
-
uptime: number;
|
|
7
6
|
}
|
|
8
|
-
declare class
|
|
9
|
-
parameters:
|
|
10
|
-
constructor(parameters:
|
|
11
|
-
static readonly id =
|
|
7
|
+
declare class GetMeterDateResponse extends Command {
|
|
8
|
+
parameters: IGetMeterDateResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterDateResponseParameters);
|
|
10
|
+
static readonly id = 123;
|
|
12
11
|
static readonly directionType = 2;
|
|
13
12
|
static readonly examples: TCommandExampleList;
|
|
14
13
|
static readonly hasParameters = true;
|
|
15
|
-
static fromBytes(data: Uint8Array):
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterDateResponse;
|
|
16
15
|
toBytes(): Uint8Array;
|
|
17
16
|
}
|
|
18
|
-
export default
|
|
17
|
+
export default GetMeterDateResponse;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x7b;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'response to GetMeterDate with data',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7,
|
|
10
|
+
time2000: 741280502
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '7b 05', body: '07 2c 2f 0a f6' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterDateResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + (parameters.time2000 ? DATE_TIME_SIZE : 0);
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
return new GetMeterDateResponse({ requestId: buffer.getUint8(), time2000: buffer.getUint32() });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
27
|
+
const { requestId, time2000 } = this.parameters;
|
|
28
|
+
buffer.setUint8(requestId);
|
|
29
|
+
buffer.setUint32(time2000);
|
|
30
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
GetMeterDateResponse.id = COMMAND_ID;
|
|
34
|
+
GetMeterDateResponse.directionType = UPLINK;
|
|
35
|
+
GetMeterDateResponse.examples = examples;
|
|
36
|
+
GetMeterDateResponse.hasParameters = true;
|
|
37
|
+
export default GetMeterDateResponse;
|
|
38
|
+
//# sourceMappingURL=GetMeterDateResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterDateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterDateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;CACJ,CAAC;AAyBF,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,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,oBAAoB,CAAC,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,EAAC,CAAC,CAAC;IAClG,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE9C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAzBe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,MAAM,CAAC;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AAuBzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterIdListResponseParameters extends ICommandParameters {
|
|
4
|
+
isCompleted: boolean;
|
|
5
|
+
meterIdList: Array<number>;
|
|
6
|
+
}
|
|
7
|
+
declare class GetMeterIdListResponse extends Command {
|
|
8
|
+
parameters: IGetMeterIdListResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterIdListResponseParameters);
|
|
10
|
+
static readonly id = 117;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterIdListResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetMeterIdListResponse;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x75;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'response to GetMeterIdList with two meterId',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 4,
|
|
10
|
+
isCompleted: true,
|
|
11
|
+
meterIdList: [1, 2]
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '75 04', body: '04 01 01 02' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetMeterIdListResponse extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = REQUEST_ID_SIZE + 1 + parameters.meterIdList.length;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes(data) {
|
|
23
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
+
const requestId = buffer.getUint8();
|
|
25
|
+
const isCompleted = buffer.isEmpty ? 1 : buffer.getUint8();
|
|
26
|
+
const meterIdList = buffer.isEmpty
|
|
27
|
+
? []
|
|
28
|
+
: [...new Array(buffer.bytesLeft)].map(() => buffer.getUint8());
|
|
29
|
+
return new GetMeterIdListResponse({ requestId, isCompleted: isCompleted !== 0, meterIdList });
|
|
30
|
+
}
|
|
31
|
+
toBytes() {
|
|
32
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
|
+
const { requestId, isCompleted, meterIdList } = this.parameters;
|
|
34
|
+
buffer.setUint8(requestId);
|
|
35
|
+
buffer.setUint8(isCompleted ? 1 : 0);
|
|
36
|
+
meterIdList.forEach(meterId => buffer.setUint8(meterId));
|
|
37
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GetMeterIdListResponse.id = COMMAND_ID;
|
|
41
|
+
GetMeterIdListResponse.directionType = UPLINK;
|
|
42
|
+
GetMeterIdListResponse.examples = examples;
|
|
43
|
+
GetMeterIdListResponse.hasParameters = true;
|
|
44
|
+
export default GetMeterIdListResponse;
|
|
45
|
+
//# sourceMappingURL=GetMeterIdListResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAC;KAC9C;CACJ,CAAC;AAwBF,MAAM,sBAAuB,SAAQ,OAAO;IACxC,YAAqB,UAA6C;QAC9D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAmC;QAI9D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC;IACpE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO;YAC9B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAS,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE5E,OAAO,IAAI,sBAAsB,CAAC,EAAC,SAAS,EAAE,WAAW,EAAE,WAAW,KAAK,CAAC,EAAE,WAAW,EAAC,CAAC,CAAC;IAChG,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE9D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAEzD,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,yBAAE,GAAG,UAAU,CAAC;AAEhB,oCAAa,GAAG,MAAM,CAAC;AAEvB,+BAAQ,GAAG,QAAQ,CAAC;AAEpB,oCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterIdResponseParameters extends ICommandParameters {
|
|
4
|
+
meterId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterIdResponse extends Command {
|
|
7
|
+
parameters: IGetMeterIdResponseParameters;
|
|
8
|
+
constructor(parameters: IGetMeterIdResponseParameters);
|
|
9
|
+
static readonly id = 119;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterId]: Uint8Array): GetMeterIdResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterIdResponse;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x77;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get meter id response',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 2,
|
|
11
|
+
meterId: 1
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '77 02', body: '02 01' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetMeterIdResponse extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = parameters.meterId ? COMMAND_SIZE : REQUEST_ID_SIZE;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes([requestId, meterId]) {
|
|
23
|
+
return new GetMeterIdResponse({ requestId, meterId });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
const { parameters } = this;
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([parameters.requestId, parameters.meterId]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
GetMeterIdResponse.id = COMMAND_ID;
|
|
31
|
+
GetMeterIdResponse.directionType = UPLINK;
|
|
32
|
+
GetMeterIdResponse.examples = examples;
|
|
33
|
+
GetMeterIdResponse.hasParameters = true;
|
|
34
|
+
export default GetMeterIdResponse;
|
|
35
|
+
//# sourceMappingURL=GetMeterIdResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterIdResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterIdResponse.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;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAGzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uBAAuB;QAC7B,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;AAyBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAAyC;QAC1D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+B;QAG1D,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC;IACpE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IACxD,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,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterInfoResponseParameters extends ICommandParameters {
|
|
4
|
+
address: string;
|
|
5
|
+
meterProfileId?: number;
|
|
6
|
+
}
|
|
7
|
+
declare class GetMeterInfoResponse extends Command {
|
|
8
|
+
parameters: IGetMeterInfoResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterInfoResponseParameters);
|
|
10
|
+
static readonly id = 121;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterInfoResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetMeterInfoResponse;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x79;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get meter info response without meterProfileId and without address',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 3,
|
|
10
|
+
address: ''
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '79 01', body: '03' }
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'get meter info response without meterProfileId 1',
|
|
16
|
+
parameters: {
|
|
17
|
+
requestId: 8,
|
|
18
|
+
address: 'ma2',
|
|
19
|
+
meterProfileId: 0x7c
|
|
20
|
+
},
|
|
21
|
+
hex: { header: '79 06', body: '08 03 6d 61 32 7c' }
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'get meter info response without meterProfileId',
|
|
25
|
+
parameters: {
|
|
26
|
+
requestId: 2,
|
|
27
|
+
address: 'ma2375'
|
|
28
|
+
},
|
|
29
|
+
hex: { header: '79 08', body: '02 06 6d 61 32 33 37 35' }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'get meter info response with meterProfileId',
|
|
33
|
+
parameters: {
|
|
34
|
+
requestId: 2,
|
|
35
|
+
address: 'ma2375',
|
|
36
|
+
meterProfileId: 1
|
|
37
|
+
},
|
|
38
|
+
hex: { header: '79 09', body: '02 06 6d 61 32 33 37 35 01' }
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
const commandSize = (parameters) => {
|
|
42
|
+
let size = REQUEST_ID_SIZE;
|
|
43
|
+
if (parameters.address.length !== 0 || parameters.meterProfileId) {
|
|
44
|
+
size += 1 + parameters.address.length;
|
|
45
|
+
if (parameters.meterProfileId) {
|
|
46
|
+
size += 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return size;
|
|
50
|
+
};
|
|
51
|
+
class GetMeterInfoResponse extends Command {
|
|
52
|
+
constructor(parameters) {
|
|
53
|
+
super();
|
|
54
|
+
this.parameters = parameters;
|
|
55
|
+
this.size = commandSize(parameters);
|
|
56
|
+
}
|
|
57
|
+
static fromBytes(data) {
|
|
58
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
59
|
+
const requestId = buffer.getUint8();
|
|
60
|
+
const address = buffer.isEmpty ? '' : buffer.getString();
|
|
61
|
+
return buffer.isEmpty
|
|
62
|
+
? new GetMeterInfoResponse({ requestId, address })
|
|
63
|
+
: new GetMeterInfoResponse({ requestId, address, meterProfileId: buffer.getUint8() });
|
|
64
|
+
}
|
|
65
|
+
toBytes() {
|
|
66
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
67
|
+
const { requestId, meterProfileId, address } = this.parameters;
|
|
68
|
+
buffer.setUint8(requestId);
|
|
69
|
+
if (address.length !== 0 || meterProfileId) {
|
|
70
|
+
buffer.setString(address);
|
|
71
|
+
if (meterProfileId) {
|
|
72
|
+
buffer.setUint8(meterProfileId);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
GetMeterInfoResponse.id = COMMAND_ID;
|
|
79
|
+
GetMeterInfoResponse.directionType = UPLINK;
|
|
80
|
+
GetMeterInfoResponse.examples = examples;
|
|
81
|
+
GetMeterInfoResponse.hasParameters = true;
|
|
82
|
+
export default GetMeterInfoResponse;
|
|
83
|
+
//# sourceMappingURL=GetMeterInfoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oEAAoE;QAC1E,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,EAAE;SACd;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;IACD;QACI,IAAI,EAAE,kDAAkD;QACxD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,KAAK;YACd,cAAc,EAAE,IAAI;SACvB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAC;KACpD;IACD;QACI,IAAI,EAAE,gDAAgD;QACtD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAC;KAC1D;IACD;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,QAAQ;YACjB,cAAc,EAAE,CAAC;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,4BAA4B,EAAC;KAC7D;CACJ,CAAC;AAEF,MAAM,WAAW,GAAG,CAAE,UAA2C,EAAW,EAAE;IAC1E,IAAI,IAAI,GAAG,eAAe,CAAC;IAE3B,IAAK,UAAU,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,cAAc,EAAG;QAChE,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;QAEtC,IAAK,UAAU,CAAC,cAAc,EAAG;YAC7B,IAAI,IAAI,CAAC,CAAC;SACb;KACJ;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AA0BF,MAAM,oBAAqB,SAAQ,OAAO;IACtC,YAAqB,UAA2C;QAC5D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAiC;QAG5D,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC7C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAEzD,OAAO,MAAM,CAAC,OAAO;YACjB,CAAC,CAAC,IAAI,oBAAoB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC;YAChD,CAAC,CAAC,IAAI,oBAAoB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IAC5F,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,IAAK,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,EAAG;YAC1C,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC1B,IAAI,cAAc,EAAE;gBAChB,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;aACnC;SACJ;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAnCe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,MAAM,CAAC;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AAiCzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterProfileIdListResponseParameters extends ICommandParameters {
|
|
4
|
+
isCompleted: boolean;
|
|
5
|
+
meterProfileIdList: Array<number>;
|
|
6
|
+
}
|
|
7
|
+
declare class GetMeterProfileIdListResponse extends Command {
|
|
8
|
+
parameters: IGetMeterProfileIdListResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterProfileIdListResponseParameters);
|
|
10
|
+
static readonly id = 101;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterProfileIdListResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetMeterProfileIdListResponse;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x65;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'response to GetMeterProfileIdList with two meterProfileId',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 5,
|
|
10
|
+
isCompleted: true,
|
|
11
|
+
meterProfileIdList: [1, 2]
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '65 04', body: '05 01 01 02' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetMeterProfileIdListResponse extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = REQUEST_ID_SIZE + 1 + parameters.meterProfileIdList.length;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes(data) {
|
|
23
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
+
const requestId = buffer.getUint8();
|
|
25
|
+
const isCompleted = buffer.isEmpty ? 1 : buffer.getUint8();
|
|
26
|
+
const meterProfileIdList = buffer.isEmpty
|
|
27
|
+
? []
|
|
28
|
+
: [...new Array(buffer.bytesLeft)].map(() => buffer.getUint8());
|
|
29
|
+
return new GetMeterProfileIdListResponse({ requestId, isCompleted: isCompleted !== 0, meterProfileIdList });
|
|
30
|
+
}
|
|
31
|
+
toBytes() {
|
|
32
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
|
+
const { requestId, isCompleted, meterProfileIdList } = this.parameters;
|
|
34
|
+
buffer.setUint8(requestId);
|
|
35
|
+
buffer.setUint8(isCompleted ? 1 : 0);
|
|
36
|
+
meterProfileIdList.forEach(meterProfileId => buffer.setUint8(meterProfileId));
|
|
37
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GetMeterProfileIdListResponse.id = COMMAND_ID;
|
|
41
|
+
GetMeterProfileIdListResponse.directionType = UPLINK;
|
|
42
|
+
GetMeterProfileIdListResponse.examples = examples;
|
|
43
|
+
GetMeterProfileIdListResponse.hasParameters = true;
|
|
44
|
+
export default GetMeterProfileIdListResponse;
|
|
45
|
+
//# sourceMappingURL=GetMeterProfileIdListResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterProfileIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterProfileIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2DAA2D;QACjE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,IAAI;YACjB,kBAAkB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAC;KAC9C;CACJ,CAAC;AAwBF,MAAM,6BAA8B,SAAQ,OAAO;IAC/C,YAAqB,UAAoD;QACrE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA0C;QAIrE,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC;IAC3E,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC3D,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO;YACrC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAS,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE5E,OAAO,IAAI,6BAA6B,CAAC,EAAC,SAAS,EAAE,WAAW,EAAE,WAAW,KAAK,CAAC,EAAE,kBAAkB,EAAC,CAAC,CAAC;IAC9G,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAErE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAE9E,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,gCAAE,GAAG,UAAU,CAAC;AAEhB,2CAAa,GAAG,MAAM,CAAC;AAEvB,sCAAQ,GAAG,QAAQ,CAAC;AAEpB,2CAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
archive1Period: number;
|
|
5
|
+
archive2Period: number;
|
|
6
|
+
}
|
|
7
|
+
declare class GetMeterProfileResponse extends Command {
|
|
8
|
+
parameters: IGetMeterProfileResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterProfileResponseParameters);
|
|
10
|
+
static readonly id = 103;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterProfileResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetMeterProfileResponse;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x67;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 4;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'response to GetMeterProfile',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
archive1Period: 600,
|
|
12
|
+
archive2Period: 45
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '67 05', body: '03 02 58 00 2d' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class GetMeterProfileResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes(data) {
|
|
24
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
25
|
+
return new GetMeterProfileResponse({
|
|
26
|
+
requestId: buffer.getUint8(),
|
|
27
|
+
archive1Period: buffer.getUint16(),
|
|
28
|
+
archive2Period: buffer.getUint16()
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
toBytes() {
|
|
32
|
+
const { requestId, archive1Period, archive2Period } = this.parameters;
|
|
33
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
34
|
+
buffer.setUint8(requestId);
|
|
35
|
+
buffer.setUint16(archive1Period);
|
|
36
|
+
buffer.setUint16(archive2Period);
|
|
37
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GetMeterProfileResponse.id = COMMAND_ID;
|
|
41
|
+
GetMeterProfileResponse.directionType = UPLINK;
|
|
42
|
+
GetMeterProfileResponse.examples = examples;
|
|
43
|
+
GetMeterProfileResponse.hasParameters = true;
|
|
44
|
+
export default GetMeterProfileResponse;
|
|
45
|
+
//# sourceMappingURL=GetMeterProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,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,cAAc,EAAE,GAAG;YACnB,cAAc,EAAE,EAAE;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;CACJ,CAAC;AAwBF,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,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,uBAAuB,CAAC;YAC/B,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;YAClC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;SACrC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,cAAc,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,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;;AA9Be,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AA4BzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface
|
|
3
|
+
interface IGetMeterReadoutStateResponseParameters extends ICommandParameters {
|
|
4
4
|
lastSuccessfulTime: number;
|
|
5
5
|
lastFailedTime: number;
|
|
6
6
|
readoutAttempts: number;
|
|
@@ -14,14 +14,14 @@ interface IGetReadoutStateResponseParameters extends ICommandParameters {
|
|
|
14
14
|
frameErrors: number;
|
|
15
15
|
overrunErrors: number;
|
|
16
16
|
}
|
|
17
|
-
declare class
|
|
18
|
-
parameters:
|
|
19
|
-
constructor(parameters:
|
|
20
|
-
static readonly id =
|
|
17
|
+
declare class GetMeterReadoutStateResponse extends Command {
|
|
18
|
+
parameters: IGetMeterReadoutStateResponseParameters | ICommandParameters;
|
|
19
|
+
constructor(parameters: IGetMeterReadoutStateResponseParameters | ICommandParameters);
|
|
20
|
+
static readonly id = 130;
|
|
21
21
|
static readonly directionType = 2;
|
|
22
22
|
static readonly examples: TCommandExampleList;
|
|
23
23
|
static readonly hasParameters = true;
|
|
24
|
-
static fromBytes(data: Uint8Array):
|
|
24
|
+
static fromBytes(data: Uint8Array): GetMeterReadoutStateResponse;
|
|
25
25
|
toBytes(): Uint8Array;
|
|
26
26
|
}
|
|
27
|
-
export default
|
|
27
|
+
export default GetMeterReadoutStateResponse;
|