jooby-codec 2.15.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/ActivateRatePlan.d.ts +1 -0
- package/dist/mtx/commands/downlink/ActivateRatePlan.js +1 -0
- package/dist/mtx/commands/downlink/ActivateRatePlan.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDateTime.d.ts +1 -0
- package/dist/mtx/commands/downlink/GetDateTime.js +1 -0
- package/dist/mtx/commands/downlink/GetDateTime.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDeviceId.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js +31 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
- package/dist/mtx/commands/downlink/GetDisplayParam.d.ts +1 -0
- package/dist/mtx/commands/downlink/GetDisplayParam.js +1 -0
- package/dist/mtx/commands/downlink/GetDisplayParam.js.map +1 -1
- package/dist/mtx/commands/downlink/GetOpParams.d.ts +1 -0
- package/dist/mtx/commands/downlink/GetOpParams.js +1 -0
- package/dist/mtx/commands/downlink/GetOpParams.js.map +1 -1
- package/dist/mtx/commands/downlink/GetRatePlanInfo.d.ts +1 -0
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js +1 -0
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js.map +1 -1
- package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +18 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +47 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +17 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js +39 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.d.ts +20 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js +92 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDisplayParam.d.ts +1 -0
- package/dist/mtx/commands/downlink/SetDisplayParam.js +1 -0
- package/dist/mtx/commands/downlink/SetDisplayParam.js.map +1 -1
- package/dist/mtx/commands/downlink/SetOpParams.d.ts +1 -0
- package/dist/mtx/commands/downlink/SetOpParams.js +1 -0
- package/dist/mtx/commands/downlink/SetOpParams.js.map +1 -1
- package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +63 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +19 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js +53 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
- package/dist/mtx/commands/downlink/TurnRelayOff.d.ts +1 -0
- package/dist/mtx/commands/downlink/TurnRelayOff.js +1 -0
- package/dist/mtx/commands/downlink/TurnRelayOff.js.map +1 -1
- package/dist/mtx/commands/downlink/TurnRelayOn.d.ts +1 -0
- package/dist/mtx/commands/downlink/TurnRelayOn.js +1 -0
- package/dist/mtx/commands/downlink/TurnRelayOn.js.map +1 -1
- 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/ActivateRatePlanResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js +1 -0
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/ErrorResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/ErrorResponse.js +1 -0
- package/dist/mtx/commands/uplink/ErrorResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDateTimeResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js +1 -0
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +17 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +44 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js +1 -0
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetOpParamsResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js +1 -0
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js +1 -0
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +31 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +31 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js +1 -0
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetOpParamsResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js +1 -0
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js +1 -0
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.d.ts +1 -0
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js +1 -0
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js.map +1 -1
- 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
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetShortNameProfileParameters extends ICommandParameters {
|
|
4
|
-
shortName: number;
|
|
5
|
-
}
|
|
6
|
-
declare class GetShortNameProfile extends Command {
|
|
7
|
-
parameters: IGetShortNameProfileParameters;
|
|
8
|
-
constructor(parameters: IGetShortNameProfileParameters);
|
|
9
|
-
static readonly id = 9;
|
|
10
|
-
static readonly directionType = 1;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetShortNameProfile;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetShortNameProfile;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x09;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'get profile for short name 128',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 4,
|
|
11
|
-
shortName: 128
|
|
12
|
-
},
|
|
13
|
-
hex: { header: '09', body: '04 80' }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
class GetShortNameProfile extends Command {
|
|
17
|
-
constructor(parameters) {
|
|
18
|
-
super();
|
|
19
|
-
this.parameters = parameters;
|
|
20
|
-
this.size = COMMAND_SIZE;
|
|
21
|
-
}
|
|
22
|
-
static fromBytes(data) {
|
|
23
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
-
return new GetShortNameProfile({
|
|
25
|
-
requestId: buffer.getUint8(),
|
|
26
|
-
shortName: buffer.getUint8()
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
toBytes() {
|
|
30
|
-
if (typeof this.size !== 'number') {
|
|
31
|
-
throw new Error('unknown or invalid size');
|
|
32
|
-
}
|
|
33
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
34
|
-
const { requestId, shortName } = this.parameters;
|
|
35
|
-
buffer.setUint8(requestId);
|
|
36
|
-
buffer.setUint8(shortName);
|
|
37
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
GetShortNameProfile.id = COMMAND_ID;
|
|
41
|
-
GetShortNameProfile.directionType = DOWNLINK;
|
|
42
|
-
GetShortNameProfile.examples = examples;
|
|
43
|
-
GetShortNameProfile.hasParameters = true;
|
|
44
|
-
export default GetShortNameProfile;
|
|
45
|
-
//# sourceMappingURL=GetShortNameProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetShortNameProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetShortNameProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;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;IAC9D,CAAC;;AAhCe,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,QAAQ,CAAC;AAEzB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObis } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetShortNamesParameters extends ICommandParameters {
|
|
4
|
-
obis: IObis;
|
|
5
|
-
}
|
|
6
|
-
declare class GetShortNames extends Command {
|
|
7
|
-
parameters: IGetShortNamesParameters;
|
|
8
|
-
constructor(parameters: IGetShortNamesParameters);
|
|
9
|
-
static readonly id = 1;
|
|
10
|
-
static readonly directionType = 1;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetShortNames;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetShortNames;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x01;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'get short name for OBIS code 0.9.1 - local time',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 3,
|
|
10
|
-
obis: {
|
|
11
|
-
c: 0,
|
|
12
|
-
d: 9,
|
|
13
|
-
e: 1
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
hex: { header: '01', body: '03 02 00 09 01' }
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
class GetShortNames extends Command {
|
|
20
|
-
constructor(parameters) {
|
|
21
|
-
super();
|
|
22
|
-
this.parameters = parameters;
|
|
23
|
-
this.size = REQUEST_ID_SIZE + CommandBinaryBuffer.getObisSize(parameters.obis);
|
|
24
|
-
}
|
|
25
|
-
static fromBytes(data) {
|
|
26
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
27
|
-
return new GetShortNames({
|
|
28
|
-
requestId: buffer.getUint8(),
|
|
29
|
-
obis: buffer.getObis()
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
toBytes() {
|
|
33
|
-
if (typeof this.size !== 'number') {
|
|
34
|
-
throw new Error('unknown or invalid size');
|
|
35
|
-
}
|
|
36
|
-
const { requestId, obis } = this.parameters;
|
|
37
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
38
|
-
buffer.setUint8(requestId);
|
|
39
|
-
buffer.setObis(obis);
|
|
40
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
GetShortNames.id = COMMAND_ID;
|
|
44
|
-
GetShortNames.directionType = DOWNLINK;
|
|
45
|
-
GetShortNames.examples = examples;
|
|
46
|
-
GetShortNames.hasParameters = true;
|
|
47
|
-
export default GetShortNames;
|
|
48
|
-
//# sourceMappingURL=GetShortNames.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetShortNames.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetShortNames.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iDAAiD;QACvD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,IAAI,EAAE;gBACF,C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I,CAAC;AA8BzC,eAAe,aAAa,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
-
interface IReadArchiveParameters extends ICommandParameters {
|
|
5
|
-
profile: number;
|
|
6
|
-
time2000: TTime2000;
|
|
7
|
-
}
|
|
8
|
-
declare class ReadArchive extends Command {
|
|
9
|
-
parameters: IReadArchiveParameters;
|
|
10
|
-
constructor(parameters: IReadArchiveParameters);
|
|
11
|
-
static readonly id = 17;
|
|
12
|
-
static readonly directionType = 1;
|
|
13
|
-
static readonly examples: TCommandExampleList;
|
|
14
|
-
static readonly hasParameters = true;
|
|
15
|
-
static fromBytes(data: Uint8Array): ReadArchive;
|
|
16
|
-
toBytes(): Uint8Array;
|
|
17
|
-
}
|
|
18
|
-
export default ReadArchive;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x11;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 5;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'request profile 1 from 2023.12.23 00:00:00 GMT',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 33,
|
|
11
|
-
profile: 1,
|
|
12
|
-
time2000: 756604800
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '11', body: '21 01 2d 18 df 80' }
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: 'request profile 2 from 2023-12-23 04:00:00 GMT',
|
|
18
|
-
parameters: {
|
|
19
|
-
requestId: 34,
|
|
20
|
-
profile: 2,
|
|
21
|
-
time2000: 756619200
|
|
22
|
-
},
|
|
23
|
-
hex: { header: '11', body: '22 02 2d 19 17 c0' }
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
class ReadArchive extends Command {
|
|
27
|
-
constructor(parameters) {
|
|
28
|
-
super();
|
|
29
|
-
this.parameters = parameters;
|
|
30
|
-
this.size = COMMAND_SIZE;
|
|
31
|
-
}
|
|
32
|
-
static fromBytes(data) {
|
|
33
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
34
|
-
return new ReadArchive({
|
|
35
|
-
requestId: buffer.getUint8(),
|
|
36
|
-
profile: buffer.getUint8(),
|
|
37
|
-
time2000: buffer.getUint32()
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
toBytes() {
|
|
41
|
-
if (typeof this.size !== 'number') {
|
|
42
|
-
throw new Error('unknown or invalid size');
|
|
43
|
-
}
|
|
44
|
-
const { requestId, profile, time2000 } = this.parameters;
|
|
45
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
46
|
-
buffer.setUint8(requestId);
|
|
47
|
-
buffer.setUint8(profile);
|
|
48
|
-
buffer.setUint32(time2000);
|
|
49
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
ReadArchive.id = COMMAND_ID;
|
|
53
|
-
ReadArchive.directionType = DOWNLINK;
|
|
54
|
-
ReadArchive.examples = examples;
|
|
55
|
-
ReadArchive.hasParameters = true;
|
|
56
|
-
export default ReadArchive;
|
|
57
|
-
//# sourceMappingURL=ReadArchive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadArchive.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/ReadArchive.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,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GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAlCe,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,IAAI,CAAC;AAgCzC,eAAe,WAAW,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IRemoveShortNameProfileParameters extends ICommandParameters {
|
|
4
|
-
shortName: number;
|
|
5
|
-
}
|
|
6
|
-
declare class RemoveShortNameProfile extends Command {
|
|
7
|
-
parameters: IRemoveShortNameProfileParameters;
|
|
8
|
-
constructor(parameters: IRemoveShortNameProfileParameters);
|
|
9
|
-
static readonly id = 7;
|
|
10
|
-
static readonly directionType = 1;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): RemoveShortNameProfile;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default RemoveShortNameProfile;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x07;
|
|
5
|
-
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'remove profile for short name 28',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 5,
|
|
11
|
-
shortName: 28
|
|
12
|
-
},
|
|
13
|
-
hex: { header: '07', body: '05 1c' }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
class RemoveShortNameProfile extends Command {
|
|
17
|
-
constructor(parameters) {
|
|
18
|
-
super();
|
|
19
|
-
this.parameters = parameters;
|
|
20
|
-
this.size = COMMAND_SIZE;
|
|
21
|
-
}
|
|
22
|
-
static fromBytes(data) {
|
|
23
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
-
return new RemoveShortNameProfile({
|
|
25
|
-
requestId: buffer.getUint8(),
|
|
26
|
-
shortName: buffer.getUint8()
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
toBytes() {
|
|
30
|
-
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
31
|
-
const { requestId, shortName } = this.parameters;
|
|
32
|
-
buffer.setUint8(requestId);
|
|
33
|
-
buffer.setUint8(shortName);
|
|
34
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
RemoveShortNameProfile.id = COMMAND_ID;
|
|
38
|
-
RemoveShortNameProfile.directionType = DOWNLINK;
|
|
39
|
-
RemoveShortNameProfile.examples = examples;
|
|
40
|
-
RemoveShortNameProfile.hasParameters = true;
|
|
41
|
-
export default RemoveShortNameProfile;
|
|
42
|
-
//# sourceMappingURL=RemoveShortNameProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveShortNameProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveShortNameProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EA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AAG,QAAQ,CAAC;AAEpB,oCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface ISetArchiveProfileParameters extends ICommandParameters {
|
|
4
|
-
archiveProfile1Period: number;
|
|
5
|
-
archiveProfile2Period: number;
|
|
6
|
-
}
|
|
7
|
-
declare class SetArchiveProfile extends Command {
|
|
8
|
-
parameters: ISetArchiveProfileParameters;
|
|
9
|
-
constructor(parameters: ISetArchiveProfileParameters);
|
|
10
|
-
static readonly id = 15;
|
|
11
|
-
static readonly directionType = 1;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): SetArchiveProfile;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default SetArchiveProfile;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x0f;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 4;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'set double default parameters',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 68,
|
|
11
|
-
archiveProfile1Period: 2880,
|
|
12
|
-
archiveProfile2Period: 30
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '0f', body: '44 0b 40 00 1e' }
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
class SetArchiveProfile 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 SetArchiveProfile({
|
|
26
|
-
requestId: buffer.getUint8(),
|
|
27
|
-
archiveProfile1Period: buffer.getUint16(),
|
|
28
|
-
archiveProfile2Period: buffer.getUint16()
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
toBytes() {
|
|
32
|
-
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
33
|
-
const { requestId, archiveProfile1Period, archiveProfile2Period } = this.parameters;
|
|
34
|
-
buffer.setUint8(requestId);
|
|
35
|
-
buffer.setUint16(archiveProfile1Period);
|
|
36
|
-
buffer.setUint16(archiveProfile2Period);
|
|
37
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
SetArchiveProfile.id = COMMAND_ID;
|
|
41
|
-
SetArchiveProfile.directionType = DOWNLINK;
|
|
42
|
-
SetArchiveProfile.examples = examples;
|
|
43
|
-
SetArchiveProfile.hasParameters = true;
|
|
44
|
-
export default SetArchiveProfile;
|
|
45
|
-
//# sourceMappingURL=SetArchiveProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetArchiveProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetArchiveProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE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 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObis } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface ISetShortNameParameters extends ICommandParameters {
|
|
4
|
-
shortName: number;
|
|
5
|
-
obis: IObis;
|
|
6
|
-
}
|
|
7
|
-
declare class SetShortName extends Command {
|
|
8
|
-
parameters: ISetShortNameParameters;
|
|
9
|
-
constructor(parameters: ISetShortNameParameters);
|
|
10
|
-
static readonly id = 3;
|
|
11
|
-
static readonly directionType = 1;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): SetShortName;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default SetShortName;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x03;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'set short name 44 for OBIS code 0.9.1',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 3,
|
|
10
|
-
shortName: 44,
|
|
11
|
-
obis: {
|
|
12
|
-
c: 0,
|
|
13
|
-
d: 9,
|
|
14
|
-
e: 1
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
hex: { header: '03', body: '03 2c 02 00 09 01' }
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
class SetShortName extends Command {
|
|
21
|
-
constructor(parameters) {
|
|
22
|
-
super();
|
|
23
|
-
this.parameters = parameters;
|
|
24
|
-
this.size = REQUEST_ID_SIZE + 1 + CommandBinaryBuffer.getObisSize(parameters.obis);
|
|
25
|
-
}
|
|
26
|
-
static fromBytes(data) {
|
|
27
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
28
|
-
return new SetShortName({
|
|
29
|
-
requestId: buffer.getUint8(),
|
|
30
|
-
shortName: buffer.getUint8(),
|
|
31
|
-
obis: buffer.getObis()
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
toBytes() {
|
|
35
|
-
if (typeof this.size !== 'number') {
|
|
36
|
-
throw new Error('unknown or invalid size');
|
|
37
|
-
}
|
|
38
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
39
|
-
const { requestId, shortName, obis } = this.parameters;
|
|
40
|
-
buffer.setUint8(requestId);
|
|
41
|
-
buffer.setUint8(shortName);
|
|
42
|
-
buffer.setObis(obis);
|
|
43
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
SetShortName.id = COMMAND_ID;
|
|
47
|
-
SetShortName.directionType = DOWNLINK;
|
|
48
|
-
SetShortName.examples = examples;
|
|
49
|
-
SetShortName.hasParameters = true;
|
|
50
|
-
export default SetShortName;
|
|
51
|
-
//# sourceMappingURL=SetShortName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SetShortName.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/SetShortName.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,EAAE;YACb,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;SACJ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G,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAgCzC,eAAe,YAAY,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IAddShortNameProfileResponseParameters extends ICommandParameters {
|
|
4
|
-
resultCode: number;
|
|
5
|
-
}
|
|
6
|
-
declare class AddShortNameProfileResponse extends Command {
|
|
7
|
-
parameters: IAddShortNameProfileResponseParameters;
|
|
8
|
-
constructor(parameters: IAddShortNameProfileResponseParameters);
|
|
9
|
-
static readonly id = 6;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): AddShortNameProfileResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default AddShortNameProfileResponse;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
import { resultCodes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID = 0x06;
|
|
6
|
-
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
7
|
-
const examples = [
|
|
8
|
-
{
|
|
9
|
-
name: 'add short name profile - succeed',
|
|
10
|
-
parameters: {
|
|
11
|
-
requestId: 7,
|
|
12
|
-
resultCode: resultCodes.OK
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '06', body: '07 00' }
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
class AddShortNameProfileResponse 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 AddShortNameProfileResponse({
|
|
26
|
-
requestId: buffer.getUint8(),
|
|
27
|
-
resultCode: buffer.getUint8()
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
toBytes() {
|
|
31
|
-
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
32
|
-
const { requestId, resultCode } = this.parameters;
|
|
33
|
-
buffer.setUint8(requestId);
|
|
34
|
-
buffer.setUint8(resultCode);
|
|
35
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
AddShortNameProfileResponse.id = COMMAND_ID;
|
|
39
|
-
AddShortNameProfileResponse.directionType = UPLINK;
|
|
40
|
-
AddShortNameProfileResponse.examples = examples;
|
|
41
|
-
AddShortNameProfileResponse.hasParameters = true;
|
|
42
|
-
export default AddShortNameProfileResponse;
|
|
43
|
-
//# sourceMappingURL=AddShortNameProfileResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/AddShortNameProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,2BAA4B,SAAQ,OAAO;IAC7C,YAAqB,UAAkD;QACnE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAwC;QAGnE,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,2BAA2B,CAAC;YACnC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,8BAAE,GAAG,UAAU,CAAC;AAEhB,yCAAa,GAAG,MAAM,CAAC;AAEvB,oCAAQ,GAAG,QAAQ,CAAC;AAEpB,yCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetArchiveProfileResponseParameters extends ICommandParameters {
|
|
4
|
-
archiveProfile1Period?: number;
|
|
5
|
-
archiveProfile2Period?: number;
|
|
6
|
-
}
|
|
7
|
-
declare class GetArchiveProfileResponse extends Command {
|
|
8
|
-
parameters: IGetArchiveProfileResponseParameters;
|
|
9
|
-
constructor(parameters: IGetArchiveProfileResponseParameters);
|
|
10
|
-
static readonly id = 14;
|
|
11
|
-
static readonly directionType = 2;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): GetArchiveProfileResponse;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default GetArchiveProfileResponse;
|
|
@@ -1,45 +0,0 @@
|
|
|
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 = 0x0e;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 4;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'default periods',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 3,
|
|
11
|
-
archiveProfile1Period: 600,
|
|
12
|
-
archiveProfile2Period: 45
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '0e', body: '03 02 58 00 2d' }
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
class GetArchiveProfileResponse 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 GetArchiveProfileResponse({
|
|
26
|
-
requestId: buffer.getUint8(),
|
|
27
|
-
archiveProfile1Period: buffer.getUint16(),
|
|
28
|
-
archiveProfile2Period: buffer.getUint16()
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
toBytes() {
|
|
32
|
-
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
33
|
-
const { requestId, archiveProfile1Period, archiveProfile2Period } = this.parameters;
|
|
34
|
-
buffer.setUint8(requestId);
|
|
35
|
-
buffer.setUint16(archiveProfile1Period ?? 0);
|
|
36
|
-
buffer.setUint16(archiveProfile2Period ?? 0);
|
|
37
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
GetArchiveProfileResponse.id = COMMAND_ID;
|
|
41
|
-
GetArchiveProfileResponse.directionType = UPLINK;
|
|
42
|
-
GetArchiveProfileResponse.examples = examples;
|
|
43
|
-
GetArchiveProfileResponse.hasParameters = true;
|
|
44
|
-
export default GetArchiveProfileResponse;
|
|
45
|
-
//# sourceMappingURL=GetArchiveProfileResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetArchiveProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetArchiveProfileResponse.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,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,qBAAqB,EAAE,GAAG;YAC1B,qBAAqB,EAAE,EAAE;SAC5B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAC;KAC9C;CACJ,CAAC;AAwBF,MAAM,yBAA0B,SAAQ,O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AAC;QAG7C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC/B,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;;AArCe,2BAAE,GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AAmCzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetContentByShortNameResponseParameters extends ICommandParameters {
|
|
4
|
-
content: number;
|
|
5
|
-
}
|
|
6
|
-
declare class GetContentByShortNameResponse extends Command {
|
|
7
|
-
parameters: IGetContentByShortNameResponseParameters;
|
|
8
|
-
constructor(parameters: IGetContentByShortNameResponseParameters);
|
|
9
|
-
static readonly id = 24;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetContentByShortNameResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetContentByShortNameResponse;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import roundNumber from '../../../utils/roundNumber.js';
|
|
2
|
-
import Command from '../../Command.js';
|
|
3
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
4
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
5
|
-
const COMMAND_ID = 0x18;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'simple response',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 121,
|
|
11
|
-
content: 344.23
|
|
12
|
-
},
|
|
13
|
-
hex: { header: '18', body: '79 43 ac 1d 71' }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
class GetContentByShortNameResponse extends Command {
|
|
17
|
-
constructor(parameters) {
|
|
18
|
-
super();
|
|
19
|
-
this.parameters = parameters;
|
|
20
|
-
this.size = REQUEST_ID_SIZE + 4;
|
|
21
|
-
}
|
|
22
|
-
static fromBytes(data) {
|
|
23
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
-
const requestId = buffer.getUint8();
|
|
25
|
-
const content = roundNumber(buffer.getFloat32());
|
|
26
|
-
return new GetContentByShortNameResponse({ requestId, content });
|
|
27
|
-
}
|
|
28
|
-
toBytes() {
|
|
29
|
-
if (typeof this.size !== 'number') {
|
|
30
|
-
throw new Error('unknown or invalid size');
|
|
31
|
-
}
|
|
32
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
|
-
const { requestId, content } = this.parameters;
|
|
34
|
-
buffer.setUint8(requestId);
|
|
35
|
-
buffer.setFloat32(roundNumber(content));
|
|
36
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
GetContentByShortNameResponse.id = COMMAND_ID;
|
|
40
|
-
GetContentByShortNameResponse.directionType = UPLINK;
|
|
41
|
-
GetContentByShortNameResponse.examples = examples;
|
|
42
|
-
GetContentByShortNameResponse.hasParameters = true;
|
|
43
|
-
export default GetContentByShortNameResponse;
|
|
44
|
-
//# sourceMappingURL=GetContentByShortNameResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetContentByShortNameResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetContentByShortNameResponse.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM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