jooby-codec 2.14.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mtx/CommandBinaryBuffer.d.ts +27 -0
- package/dist/mtx/CommandBinaryBuffer.js +55 -0
- package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDeviceId.d.ts +12 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js +30 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +17 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +46 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +16 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js +38 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js +91 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +62 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js +52 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
- package/dist/mtx/commands/downlink/index.d.ts +6 -0
- package/dist/mtx/commands/downlink/index.js +6 -0
- package/dist/mtx/commands/downlink/index.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +16 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +43 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/index.d.ts +6 -0
- package/dist/mtx/commands/uplink/index.js +6 -0
- package/dist/mtx/commands/uplink/index.js.map +1 -1
- package/dist/mtx/constants/commandRelations.d.ts +4 -0
- package/dist/mtx/constants/commandRelations.js +21 -0
- package/dist/mtx/constants/commandRelations.js.map +1 -0
- package/dist/mtx/message.d.ts +2 -2
- package/dist/obis-observer/Command.js +1 -1
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +9 -9
- package/dist/obis-observer/CommandBinaryBuffer.js +20 -20
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +4 -3
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +23 -16
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js +41 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
- package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverUptime.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +48 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +20 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +51 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.js +36 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +35 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +35 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js +82 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +48 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupObis.d.ts +19 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js +85 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -9
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +25 -14
- package/dist/obis-observer/commands/downlink/index.js +25 -14
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js +36 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +36 -14
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -6
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts} +7 -8
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +38 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +83 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +104 -0
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -17
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -10
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +54 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +92 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +20 -19
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +41 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -19
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -20
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +22 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +102 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +69 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/RebootResponse.js +8 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +8 -26
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +10 -18
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +27 -15
- package/dist/obis-observer/commands/uplink/index.js +27 -15
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.d.ts +2 -0
- package/dist/obis-observer/constants/commandRelations.js +35 -14
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
- package/dist/obis-observer/constants/obisIds.js +228 -0
- package/dist/obis-observer/constants/obisIds.js.map +1 -0
- package/dist/obis-observer/constants/resultCodes.d.ts +12 -4
- package/dist/obis-observer/constants/resultCodes.js +12 -4
- package/dist/obis-observer/constants/resultCodes.js.map +1 -1
- package/dist/obis-observer/constants/resultDescriptions.d.ts +16 -0
- package/dist/obis-observer/constants/resultDescriptions.js +17 -0
- package/dist/obis-observer/constants/resultDescriptions.js.map +1 -0
- package/dist/obis-observer/message.d.ts +2 -2
- package/dist/obis-observer/message.js +4 -12
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +0 -56
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +0 -44
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNames.js +0 -48
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetShortName.js +0 -51
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +0 -44
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +0 -47
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +0 -77
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +0 -81
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +0 -55
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -61
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
- package/dist/obis-observer/constants/shortNames.js +0 -228
- package/dist/obis-observer/constants/shortNames.js.map +0 -1
|
@@ -1,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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a,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,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;C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AE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;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.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AAC;QAE7C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;QAExC,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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetContentByShortNameStringResponseParameters extends ICommandParameters {
|
|
4
|
-
content: string;
|
|
5
|
-
}
|
|
6
|
-
declare class GetContentByShortNameStringResponse extends Command {
|
|
7
|
-
parameters: IGetContentByShortNameStringResponseParameters;
|
|
8
|
-
constructor(parameters: IGetContentByShortNameStringResponseParameters);
|
|
9
|
-
static readonly id = 25;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetContentByShortNameStringResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetContentByShortNameStringResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetContentByShortNameStringResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetContentByShortNameStringResponse.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,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/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,sCAAE,GAAG,UAAU,CAAC;AAEhB,iDAAa,GAAG,MAAM,CAAC;AAEvB,4CAAQ,GAAG,QAAQ,CAAC;AAEpB,iDAAa,GAAG,IAAI,CAAC;AAmCzC,eAAe,mCAAmC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 = 0x23;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'current date and time info',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 7,
|
|
10
|
-
time2000: 741280502,
|
|
11
|
-
uptime: 4016
|
|
12
|
-
},
|
|
13
|
-
hex: { header: '23', body: '07 2c 2f 0a f6 00 00 0f b0' }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
class GetDateResponse extends Command {
|
|
17
|
-
constructor(parameters) {
|
|
18
|
-
super();
|
|
19
|
-
this.parameters = parameters;
|
|
20
|
-
this.size = REQUEST_ID_SIZE + DATE_TIME_SIZE + 4;
|
|
21
|
-
}
|
|
22
|
-
static fromBytes(data) {
|
|
23
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
-
return new GetDateResponse({
|
|
25
|
-
requestId: buffer.getUint8(),
|
|
26
|
-
time2000: buffer.getUint32(),
|
|
27
|
-
uptime: buffer.getUint32()
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
toBytes() {
|
|
31
|
-
if (typeof this.size !== 'number') {
|
|
32
|
-
throw new Error('unknown or invalid size');
|
|
33
|
-
}
|
|
34
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
35
|
-
const { requestId, time2000, uptime } = this.parameters;
|
|
36
|
-
buffer.setUint8(requestId);
|
|
37
|
-
buffer.setUint32(time2000);
|
|
38
|
-
buffer.setUint32(uptime);
|
|
39
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
GetDateResponse.id = COMMAND_ID;
|
|
43
|
-
GetDateResponse.directionType = UPLINK;
|
|
44
|
-
GetDateResponse.examples = examples;
|
|
45
|
-
GetDateResponse.hasParameters = true;
|
|
46
|
-
export default GetDateResponse;
|
|
47
|
-
//# sourceMappingURL=GetDateResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetDateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetDateResponse.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;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,IAAI;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,4BAA4B,EAAC;KAC1D;CACJ,CAAC;AA0BF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAAsC;QACvD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA4B;QAGvD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,cAAc,GAAG,CAAC,CAAC;IACrD,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,eAAe,CAAC;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE;YAC5B,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE;SAC7B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEtD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAlCe,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,MAAM,CAAC;AAEvB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAgCzC,eAAe,eAAe,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IVersion } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetDeviceInfoResponseParameters extends ICommandParameters {
|
|
4
|
-
softwareVersion: IVersion;
|
|
5
|
-
hardwareVersion: IVersion;
|
|
6
|
-
deviceName: string;
|
|
7
|
-
}
|
|
8
|
-
declare class GetDeviceInfoResponse extends Command {
|
|
9
|
-
parameters: IGetDeviceInfoResponseParameters;
|
|
10
|
-
constructor(parameters: IGetDeviceInfoResponseParameters);
|
|
11
|
-
static readonly id = 33;
|
|
12
|
-
static readonly directionType = 2;
|
|
13
|
-
static readonly examples: TCommandExampleList;
|
|
14
|
-
static readonly hasParameters = true;
|
|
15
|
-
static fromBytes(data: Uint8Array): GetDeviceInfoResponse;
|
|
16
|
-
toBytes(): Uint8Array;
|
|
17
|
-
}
|
|
18
|
-
export default GetDeviceInfoResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetDeviceInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetDeviceInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA+B,MAAM,8BAA8B,CAAC;AAChH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,0DAA0D;QAChE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,UAAU,EAAE,mCAAmC;SAClD;QACD,GAAG,EAAE;YACD,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yHAAyH;SAClI;KACJ;CACJ,CAAC;AAqCF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAI7D,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG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YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA1Ce,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,77 +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 = 0x27;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'simple response',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 3,
|
|
10
|
-
lastSuccessfulTime: 127,
|
|
11
|
-
lastFailedTime: 193,
|
|
12
|
-
readoutAttempts: 14,
|
|
13
|
-
successfulReadoutAttempts: 12,
|
|
14
|
-
readoutRepetitions: 2,
|
|
15
|
-
waitNextSymbolErrors: 0,
|
|
16
|
-
waitIdErrors: 0,
|
|
17
|
-
waitNextStateErrors: 0,
|
|
18
|
-
wrongBccErrors: 0,
|
|
19
|
-
parityErrors: 0,
|
|
20
|
-
frameErrors: 0,
|
|
21
|
-
overrunErrors: 0
|
|
22
|
-
},
|
|
23
|
-
hex: { header: '27', body: '03 00 00 00 7f 00 00 00 c1 00 0e 00 0c 00 02 00 00 00 00 00 00 00' }
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
class GetReadoutStateResponse extends Command {
|
|
27
|
-
constructor(parameters) {
|
|
28
|
-
super();
|
|
29
|
-
this.parameters = parameters;
|
|
30
|
-
this.size = REQUEST_ID_SIZE + 4 + 4 + 2 + 2 + 2 + 7;
|
|
31
|
-
}
|
|
32
|
-
static fromBytes(data) {
|
|
33
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
34
|
-
return new GetReadoutStateResponse({
|
|
35
|
-
requestId: buffer.getUint8(),
|
|
36
|
-
lastSuccessfulTime: buffer.getUint32(),
|
|
37
|
-
lastFailedTime: buffer.getUint32(),
|
|
38
|
-
readoutAttempts: buffer.getUint16(),
|
|
39
|
-
successfulReadoutAttempts: buffer.getUint16(),
|
|
40
|
-
readoutRepetitions: buffer.getUint16(),
|
|
41
|
-
waitNextSymbolErrors: buffer.getUint8(),
|
|
42
|
-
waitIdErrors: buffer.getUint8(),
|
|
43
|
-
waitNextStateErrors: buffer.getUint8(),
|
|
44
|
-
wrongBccErrors: buffer.getUint8(),
|
|
45
|
-
parityErrors: buffer.getUint8(),
|
|
46
|
-
frameErrors: buffer.getUint8(),
|
|
47
|
-
overrunErrors: buffer.getUint8()
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
toBytes() {
|
|
51
|
-
if (typeof this.size !== 'number') {
|
|
52
|
-
throw new Error('unknown or invalid size');
|
|
53
|
-
}
|
|
54
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
55
|
-
const { parameters } = this;
|
|
56
|
-
buffer.setUint8(parameters.requestId);
|
|
57
|
-
buffer.setUint32(parameters.lastSuccessfulTime);
|
|
58
|
-
buffer.setUint32(parameters.lastFailedTime);
|
|
59
|
-
buffer.setUint16(parameters.readoutAttempts);
|
|
60
|
-
buffer.setUint16(parameters.successfulReadoutAttempts);
|
|
61
|
-
buffer.setUint16(parameters.readoutRepetitions);
|
|
62
|
-
buffer.setUint8(parameters.waitNextSymbolErrors);
|
|
63
|
-
buffer.setUint8(parameters.waitIdErrors);
|
|
64
|
-
buffer.setUint8(parameters.waitNextStateErrors);
|
|
65
|
-
buffer.setUint8(parameters.wrongBccErrors);
|
|
66
|
-
buffer.setUint8(parameters.parityErrors);
|
|
67
|
-
buffer.setUint8(parameters.frameErrors);
|
|
68
|
-
buffer.setUint8(parameters.overrunErrors);
|
|
69
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
GetReadoutStateResponse.id = COMMAND_ID;
|
|
73
|
-
GetReadoutStateResponse.directionType = UPLINK;
|
|
74
|
-
GetReadoutStateResponse.examples = examples;
|
|
75
|
-
GetReadoutStateResponse.hasParameters = true;
|
|
76
|
-
export default GetReadoutStateResponse;
|
|
77
|
-
//# sourceMappingURL=GetReadoutStateResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetReadoutStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetReadoutStateResponse.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;AAkCrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,kBAAkB,EAAE,GAAG;YACvB,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,EAAE;YACnB,yBAAyB,EAAE,EAAE;YAC7B,kBAAkB,EAAE,CAAC;YACrB,oBAAoB,EAAE,CAAC;YACvB,YAAY,EAAE,CAAC;YACf,mBAAmB,EAAE,CAAC;YACtB,cAAc,EAAE,CAAC;YACjB,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,CAAC;SACnB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,mEAAmE,EAAC;KACjG;CACJ,CAAC;AAoCF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8C;QAC/D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoC;QAG/D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG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,CAAC,SAAS,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;QACvD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;QAChD,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACjD,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;QAChD,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QAC3C,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACzC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACxC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAE1C,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAtDe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAoDzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObisProfile, IObis } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetShortNameInfoResponseParameters extends ICommandParameters {
|
|
4
|
-
obis?: IObis;
|
|
5
|
-
obisProfile?: IObisProfile;
|
|
6
|
-
}
|
|
7
|
-
declare class GetShortNameInfoResponse extends Command {
|
|
8
|
-
parameters: IGetShortNameInfoResponseParameters;
|
|
9
|
-
constructor(parameters: IGetShortNameInfoResponseParameters);
|
|
10
|
-
static readonly id = 12;
|
|
11
|
-
static readonly directionType = 2;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): GetShortNameInfoResponse;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default GetShortNameInfoResponse;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE, OBIS_PROFILE_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
import { contentTypes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID = 0x0c;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'short name info with obis code 0.9.1 and obis profile',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 3,
|
|
11
|
-
obis: {
|
|
12
|
-
c: 0,
|
|
13
|
-
d: 9,
|
|
14
|
-
e: 1
|
|
15
|
-
},
|
|
16
|
-
obisProfile: {
|
|
17
|
-
capturePeriod: 344,
|
|
18
|
-
sendingPeriod: 532,
|
|
19
|
-
sendingCounter: 61,
|
|
20
|
-
flags: {
|
|
21
|
-
contentType: contentTypes.STRING,
|
|
22
|
-
sendOnChange: true,
|
|
23
|
-
archiveProfile1: true,
|
|
24
|
-
archiveProfile2: false
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
hex: { header: '0c', body: '0b 03 02 00 09 01 01 58 02 14 3d 15' }
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
class GetShortNameInfoResponse extends Command {
|
|
32
|
-
constructor(parameters) {
|
|
33
|
-
super();
|
|
34
|
-
this.parameters = parameters;
|
|
35
|
-
let size = 1 + REQUEST_ID_SIZE;
|
|
36
|
-
if (parameters.obis) {
|
|
37
|
-
size += CommandBinaryBuffer.getObisSize(parameters.obis);
|
|
38
|
-
}
|
|
39
|
-
if (parameters.obisProfile) {
|
|
40
|
-
size += OBIS_PROFILE_SIZE;
|
|
41
|
-
}
|
|
42
|
-
this.size = size;
|
|
43
|
-
}
|
|
44
|
-
static fromBytes(data) {
|
|
45
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
46
|
-
let size = buffer.getUint8() - REQUEST_ID_SIZE;
|
|
47
|
-
const requestId = buffer.getUint8();
|
|
48
|
-
let obis;
|
|
49
|
-
let obisProfile;
|
|
50
|
-
if (size > 0) {
|
|
51
|
-
obis = buffer.getObis();
|
|
52
|
-
size -= CommandBinaryBuffer.getObisSize(obis);
|
|
53
|
-
}
|
|
54
|
-
if (size > 0) {
|
|
55
|
-
obisProfile = buffer.getObisProfile();
|
|
56
|
-
}
|
|
57
|
-
return new GetShortNameInfoResponse({ requestId, obis, obisProfile });
|
|
58
|
-
}
|
|
59
|
-
toBytes() {
|
|
60
|
-
if (typeof this.size !== 'number') {
|
|
61
|
-
throw new Error('unknown or invalid size');
|
|
62
|
-
}
|
|
63
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
64
|
-
const { requestId, obis, obisProfile } = this.parameters;
|
|
65
|
-
buffer.setUint8(this.size - 1);
|
|
66
|
-
buffer.setUint8(requestId);
|
|
67
|
-
if (obis) {
|
|
68
|
-
buffer.setObis(obis);
|
|
69
|
-
}
|
|
70
|
-
if (obisProfile) {
|
|
71
|
-
buffer.setObisProfile(obisProfile);
|
|
72
|
-
}
|
|
73
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
GetShortNameInfoResponse.id = COMMAND_ID;
|
|
77
|
-
GetShortNameInfoResponse.directionType = UPLINK;
|
|
78
|
-
GetShortNameInfoResponse.examples = examples;
|
|
79
|
-
GetShortNameInfoResponse.hasParameters = true;
|
|
80
|
-
export default GetShortNameInfoResponse;
|
|
81
|
-
//# sourceMappingURL=GetShortNameInfoResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetShortNameInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetShortNameInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAA0C,MAAM,8BAA8B,CAAC;AAC9I,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAWtD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uDAAuD;QAC7D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;YACD,WAAW,EAAE;gBACT,aAAa,EAAE,GAAG;gBAClB,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,EAAE;gBAClB,KAAK,EAAE;oBACH,WAAW,EAAE,YAAY,CAAC,MAAM;oBAChC,YAAY,EAAE,IAAI;oBAClB,eAAe,EAAE,IAAI;oBACrB,eAAe,EAAE,KAAK;iBACzB;aACJ;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,qCAAqC,EAAC;KACnE;CACJ,CAAC;AAsCF,MAAM,wBAAyB,SAAQ,OAAO;IAC1C,YAAqB,UAA+C;QAChE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAqC;QAIhE,IAAI,IAAI,GAAG,CAAC,GAAG,eAAe,CAAC;QAE/B,IAAK,UAAU,CAAC,IAAI,EAAG;YACnB,IAAI,IAAI,mBAAmB,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAC5D;QAED,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K,WAAW,EAAG;YACf,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;SACtC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAtDe,2BAAE,GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AAoDzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObisProfile } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetShortNameProfileResponseParameters extends ICommandParameters {
|
|
4
|
-
obisProfile: IObisProfile;
|
|
5
|
-
}
|
|
6
|
-
declare class GetShortNameProfileResponse extends Command {
|
|
7
|
-
parameters: IGetShortNameProfileResponseParameters;
|
|
8
|
-
constructor(parameters: IGetShortNameProfileResponseParameters);
|
|
9
|
-
static readonly id = 10;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetShortNameProfileResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetShortNameProfileResponse;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE, OBIS_PROFILE_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
import { contentTypes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID = 0x0a;
|
|
6
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + OBIS_PROFILE_SIZE;
|
|
7
|
-
const examples = [
|
|
8
|
-
{
|
|
9
|
-
name: 'profile for short name 121',
|
|
10
|
-
parameters: {
|
|
11
|
-
requestId: 3,
|
|
12
|
-
obisProfile: {
|
|
13
|
-
capturePeriod: 344,
|
|
14
|
-
sendingPeriod: 532,
|
|
15
|
-
sendingCounter: 61,
|
|
16
|
-
flags: {
|
|
17
|
-
contentType: contentTypes.STRING,
|
|
18
|
-
sendOnChange: false,
|
|
19
|
-
archiveProfile1: true,
|
|
20
|
-
archiveProfile2: true
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
hex: { header: '0a', body: '03 01 58 02 14 3d 13' }
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
class GetShortNameProfileResponse extends Command {
|
|
28
|
-
constructor(parameters) {
|
|
29
|
-
super();
|
|
30
|
-
this.parameters = parameters;
|
|
31
|
-
this.size = COMMAND_SIZE;
|
|
32
|
-
}
|
|
33
|
-
static fromBytes(data) {
|
|
34
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
35
|
-
const requestId = buffer.getUint8();
|
|
36
|
-
const obisProfile = buffer.getObisProfile();
|
|
37
|
-
return new GetShortNameProfileResponse({ requestId, obisProfile });
|
|
38
|
-
}
|
|
39
|
-
toBytes() {
|
|
40
|
-
if (typeof this.size !== 'number') {
|
|
41
|
-
throw new Error('unknown or invalid size');
|
|
42
|
-
}
|
|
43
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
44
|
-
const { requestId, obisProfile } = this.parameters;
|
|
45
|
-
buffer.setUint8(requestId);
|
|
46
|
-
buffer.setObisProfile(obisProfile);
|
|
47
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
GetShortNameProfileResponse.id = COMMAND_ID;
|
|
51
|
-
GetShortNameProfileResponse.directionType = UPLINK;
|
|
52
|
-
GetShortNameProfileResponse.examples = examples;
|
|
53
|
-
GetShortNameProfileResponse.hasParameters = true;
|
|
54
|
-
export default GetShortNameProfileResponse;
|
|
55
|
-
//# sourceMappingURL=GetShortNameProfileResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetShortNameProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAAmC,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAUtD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAEzD,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE;gBACT,aAAa,EAAE,GAAG;gBAClB,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,EAAE;gBAClB,KAAK,EAAE;oBACH,WAAW,EAAE,YAAY,CAAC,MAAM;oBAChC,YAAY,EAAE,KAAK;oBACnB,eAAe,EAAE,IAAI;oBACrB,eAAe,EAAE,IAAI;iBACxB;aACJ;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACpD;CACJ,CAAC;AAiCF,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,MAAM,SAA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