jooby-codec 2.9.0 → 2.11.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/obis-observer/Command.js +3 -8
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
- package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +34 -0
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/{AddShortNameProfile.js → AddObisProfile.js} +20 -17
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +1 -0
- 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/GetMeterArchiveProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +35 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +33 -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 +33 -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 +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +33 -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 +33 -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 +34 -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/{SetShortName.js → GetObisIdList.js} +15 -18
- 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 +34 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.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/{GetDeviceInfo.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/{GetDate.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 +19 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +58 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.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 +34 -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 +34 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +34 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +48 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/{GetShortNames.js → SetObisId.js} +19 -16
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +34 -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 +47 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.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 +28 -15
- package/dist/obis-observer/commands/downlink/index.js +28 -15
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +1 -0
- 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/{GetArchiveProfileResponse.d.ts → GetMeterArchiveProfileResponse.d.ts} +5 -5
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js +64 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +78 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +50 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +40 -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 +45 -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 +54 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +40 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.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 +16 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +40 -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/{GetShortNameInfoResponse.js → GetObisInfoResponse.js} +42 -31
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetShortNameProfileResponse.js → GetObisProfileResponse.js} +24 -17
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.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/{GetDeviceInfoResponse.d.ts → GetObserverInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +13 -18
- 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 +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +15 -19
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +16 -20
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +79 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +7 -4
- package/dist/obis-observer/commands/uplink/RebootResponse.js +11 -12
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +9 -17
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +29 -16
- package/dist/obis-observer/commands/uplink/index.js +29 -16
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +31 -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/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.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/GetArchiveState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +0 -42
- package/dist/obis-observer/commands/downlink/GetArchiveState.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.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.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.js +0 -45
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +0 -58
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.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.d.ts +0 -18
- 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.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.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
- 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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x77;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get meter id response',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 2,
|
|
11
|
+
meterId: 1
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '77 02', body: '02 01' }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'get meter id response without data',
|
|
17
|
+
parameters: {
|
|
18
|
+
requestId: 2
|
|
19
|
+
},
|
|
20
|
+
hex: { header: '77 01', body: '02' }
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
class GetMeterIdResponse extends Command {
|
|
24
|
+
constructor(parameters) {
|
|
25
|
+
super();
|
|
26
|
+
this.parameters = parameters;
|
|
27
|
+
this.size = parameters.meterId ? COMMAND_SIZE : REQUEST_ID_SIZE;
|
|
28
|
+
}
|
|
29
|
+
static fromBytes([requestId, meterId]) {
|
|
30
|
+
return meterId
|
|
31
|
+
? new GetMeterIdResponse({ requestId, meterId })
|
|
32
|
+
: new GetMeterIdResponse({ requestId });
|
|
33
|
+
}
|
|
34
|
+
toBytes() {
|
|
35
|
+
return Command.toBytes(COMMAND_ID, this.parameters.meterId
|
|
36
|
+
? new Uint8Array([this.parameters.requestId, this.parameters.meterId])
|
|
37
|
+
: new Uint8Array([this.parameters.requestId]));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GetMeterIdResponse.id = COMMAND_ID;
|
|
41
|
+
GetMeterIdResponse.directionType = UPLINK;
|
|
42
|
+
GetMeterIdResponse.examples = examples;
|
|
43
|
+
GetMeterIdResponse.hasParameters = true;
|
|
44
|
+
export default GetMeterIdResponse;
|
|
45
|
+
//# sourceMappingURL=GetMeterIdResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterIdResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterIdResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAGzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;IACD;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAyBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAAyC;QAC1D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+B;QAG1D,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC;IACpE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,OAAO;YACV,CAAC,CAAC,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC;YAC9C,CAAC,CAAC,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC9C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,CAAC,UAAU,CAAC,OAAO;YACnB,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACtE,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CACpD,CAAC;IACN,CAAC;;AAxBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterInfoResponseParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId?: number;
|
|
5
|
+
address: string;
|
|
6
|
+
}
|
|
7
|
+
declare class GetMeterInfoResponse extends Command {
|
|
8
|
+
parameters: IGetMeterInfoResponseParameters;
|
|
9
|
+
constructor(parameters: IGetMeterInfoResponseParameters);
|
|
10
|
+
static readonly id = 121;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetMeterInfoResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetMeterInfoResponse;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x79;
|
|
5
|
+
const INVALID_METER_PROFILE_ID = 0xff;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get meter info response with meterProfileId',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 2,
|
|
11
|
+
meterProfileId: 1,
|
|
12
|
+
address: 'ma2375'
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '79 09', body: '02 01 06 6d 61 32 33 37 35' }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'get meter info response without meterProfileId',
|
|
18
|
+
parameters: {
|
|
19
|
+
requestId: 2,
|
|
20
|
+
address: 'ma2375'
|
|
21
|
+
},
|
|
22
|
+
hex: { header: '79 09', body: '02 ff 06 6d 61 32 33 37 35' }
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
class GetMeterInfoResponse extends Command {
|
|
26
|
+
constructor(parameters) {
|
|
27
|
+
super();
|
|
28
|
+
this.parameters = parameters;
|
|
29
|
+
this.size = REQUEST_ID_SIZE + 1 + 1 + parameters.address.length;
|
|
30
|
+
}
|
|
31
|
+
static fromBytes(data) {
|
|
32
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
33
|
+
const requestId = buffer.getUint8();
|
|
34
|
+
const meterProfileId = buffer.getUint8();
|
|
35
|
+
const address = buffer.getString();
|
|
36
|
+
return meterProfileId === INVALID_METER_PROFILE_ID
|
|
37
|
+
? new GetMeterInfoResponse({ requestId, address })
|
|
38
|
+
: new GetMeterInfoResponse({ requestId, meterProfileId, address });
|
|
39
|
+
}
|
|
40
|
+
toBytes() {
|
|
41
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
42
|
+
const { requestId, meterProfileId, address } = this.parameters;
|
|
43
|
+
buffer.setUint8(requestId);
|
|
44
|
+
buffer.setUint8(meterProfileId || INVALID_METER_PROFILE_ID);
|
|
45
|
+
buffer.setString(address);
|
|
46
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
GetMeterInfoResponse.id = COMMAND_ID;
|
|
50
|
+
GetMeterInfoResponse.directionType = UPLINK;
|
|
51
|
+
GetMeterInfoResponse.examples = examples;
|
|
52
|
+
GetMeterInfoResponse.hasParameters = true;
|
|
53
|
+
export default GetMeterInfoResponse;
|
|
54
|
+
//# sourceMappingURL=GetMeterInfoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAEtC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,4BAA4B,EAAC;KAC7D;IACD;QACI,IAAI,EAAE,gDAAgD;QACtD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,4BAA4B,EAAC;KAC7D;CACJ,CAAC;AA0BF,MAAM,oBAAqB,SAAQ,OAAO;IACtC,YAAqB,UAA2C;QAC5D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAiC;QA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import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetMeterProfileIdListResponseParameters extends ICommandParameters {
|
|
4
|
+
meterProfileIdList: Array<number>;
|
|
5
|
+
}
|
|
6
|
+
declare class GetMeterProfileIdListResponse extends Command {
|
|
7
|
+
parameters: IGetMeterProfileIdListResponseParameters;
|
|
8
|
+
constructor(parameters: IGetMeterProfileIdListResponseParameters);
|
|
9
|
+
static readonly id = 101;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetMeterProfileIdListResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetMeterProfileIdListResponse;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x65;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'response to GetMeterProfileIdList with two meterProfileId',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 3,
|
|
10
|
+
meterProfileIdList: [1, 2]
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '65 03', body: '03 01 02' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetMeterProfileIdListResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + parameters.meterProfileIdList.length;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
const requestId = buffer.getUint8();
|
|
24
|
+
const meterProfileIdList = [...new Array(data.length - REQUEST_ID_SIZE)].map(() => buffer.getUint8());
|
|
25
|
+
return new GetMeterProfileIdListResponse({ requestId, meterProfileIdList });
|
|
26
|
+
}
|
|
27
|
+
toBytes() {
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId, meterProfileIdList } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
meterProfileIdList.forEach(meterProfileId => buffer.setUint8(meterProfileId));
|
|
32
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
GetMeterProfileIdListResponse.id = COMMAND_ID;
|
|
36
|
+
GetMeterProfileIdListResponse.directionType = UPLINK;
|
|
37
|
+
GetMeterProfileIdListResponse.examples = examples;
|
|
38
|
+
GetMeterProfileIdListResponse.hasParameters = true;
|
|
39
|
+
export default GetMeterProfileIdListResponse;
|
|
40
|
+
//# sourceMappingURL=GetMeterProfileIdListResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterProfileIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterProfileIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2DAA2D;QACjE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,kBAAkB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAuBF,MAA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
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface
|
|
3
|
+
interface IGetMeterReadoutStateResponseParameters extends ICommandParameters {
|
|
4
4
|
lastSuccessfulTime: number;
|
|
5
5
|
lastFailedTime: number;
|
|
6
6
|
readoutAttempts: number;
|
|
@@ -14,14 +14,14 @@ interface IGetReadoutStateResponseParameters extends ICommandParameters {
|
|
|
14
14
|
frameErrors: number;
|
|
15
15
|
overrunErrors: number;
|
|
16
16
|
}
|
|
17
|
-
declare class
|
|
18
|
-
parameters:
|
|
19
|
-
constructor(parameters:
|
|
20
|
-
static readonly id =
|
|
17
|
+
declare class GetMeterReadoutStateResponse extends Command {
|
|
18
|
+
parameters: IGetMeterReadoutStateResponseParameters | ICommandParameters;
|
|
19
|
+
constructor(parameters: IGetMeterReadoutStateResponseParameters | ICommandParameters);
|
|
20
|
+
static readonly id = 130;
|
|
21
21
|
static readonly directionType = 2;
|
|
22
22
|
static readonly examples: TCommandExampleList;
|
|
23
23
|
static readonly hasParameters = true;
|
|
24
|
-
static fromBytes(data: Uint8Array):
|
|
24
|
+
static fromBytes(data: Uint8Array): GetMeterReadoutStateResponse;
|
|
25
25
|
toBytes(): Uint8Array;
|
|
26
26
|
}
|
|
27
|
-
export default
|
|
27
|
+
export default GetMeterReadoutStateResponse;
|
|
@@ -0,0 +1,104 @@
|
|
|
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 = 0x82;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 4 + 4 + 2 + 2 + 2 + 7;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'response to GetMeterReadoutState',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
lastSuccessfulTime: 127,
|
|
12
|
+
lastFailedTime: 193,
|
|
13
|
+
readoutAttempts: 14,
|
|
14
|
+
successfulReadoutAttempts: 12,
|
|
15
|
+
readoutRepetitions: 2,
|
|
16
|
+
waitNextSymbolErrors: 0,
|
|
17
|
+
waitIdErrors: 0,
|
|
18
|
+
waitNextStateErrors: 0,
|
|
19
|
+
wrongBccErrors: 0,
|
|
20
|
+
parityErrors: 0,
|
|
21
|
+
frameErrors: 0,
|
|
22
|
+
overrunErrors: 0
|
|
23
|
+
},
|
|
24
|
+
hex: { header: '82 16', body: '03 00 00 00 7f 00 00 00 c1 00 0e 00 0c 00 02 00 00 00 00 00 00 00' }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'response to GetMeterReadoutState without data',
|
|
28
|
+
parameters: {
|
|
29
|
+
requestId: 3
|
|
30
|
+
},
|
|
31
|
+
hex: { header: '82 01', body: '03' }
|
|
32
|
+
}
|
|
33
|
+
];
|
|
34
|
+
const isValidParameterSet = (parameters) => {
|
|
35
|
+
const { requestId, lastSuccessfulTime, lastFailedTime, readoutAttempts, successfulReadoutAttempts, readoutRepetitions, waitNextSymbolErrors, waitIdErrors, waitNextStateErrors, wrongBccErrors, parityErrors, frameErrors, overrunErrors } = parameters;
|
|
36
|
+
return requestId !== undefined
|
|
37
|
+
&& lastSuccessfulTime !== undefined
|
|
38
|
+
&& lastFailedTime !== undefined
|
|
39
|
+
&& readoutAttempts !== undefined
|
|
40
|
+
&& successfulReadoutAttempts !== undefined
|
|
41
|
+
&& readoutRepetitions !== undefined
|
|
42
|
+
&& waitNextSymbolErrors !== undefined
|
|
43
|
+
&& waitIdErrors !== undefined
|
|
44
|
+
&& waitNextStateErrors !== undefined
|
|
45
|
+
&& wrongBccErrors !== undefined
|
|
46
|
+
&& parityErrors !== undefined
|
|
47
|
+
&& frameErrors !== undefined
|
|
48
|
+
&& overrunErrors !== undefined;
|
|
49
|
+
};
|
|
50
|
+
class GetMeterReadoutStateResponse extends Command {
|
|
51
|
+
constructor(parameters) {
|
|
52
|
+
super();
|
|
53
|
+
this.parameters = parameters;
|
|
54
|
+
this.size = isValidParameterSet(parameters) ? COMMAND_SIZE : REQUEST_ID_SIZE;
|
|
55
|
+
}
|
|
56
|
+
static fromBytes(data) {
|
|
57
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
58
|
+
const requestId = buffer.getUint8();
|
|
59
|
+
return buffer.isEmpty
|
|
60
|
+
? new GetMeterReadoutStateResponse({ requestId })
|
|
61
|
+
: new GetMeterReadoutStateResponse({
|
|
62
|
+
requestId,
|
|
63
|
+
lastSuccessfulTime: buffer.getUint32(),
|
|
64
|
+
lastFailedTime: buffer.getUint32(),
|
|
65
|
+
readoutAttempts: buffer.getUint16(),
|
|
66
|
+
successfulReadoutAttempts: buffer.getUint16(),
|
|
67
|
+
readoutRepetitions: buffer.getUint16(),
|
|
68
|
+
waitNextSymbolErrors: buffer.getUint8(),
|
|
69
|
+
waitIdErrors: buffer.getUint8(),
|
|
70
|
+
waitNextStateErrors: buffer.getUint8(),
|
|
71
|
+
wrongBccErrors: buffer.getUint8(),
|
|
72
|
+
parityErrors: buffer.getUint8(),
|
|
73
|
+
frameErrors: buffer.getUint8(),
|
|
74
|
+
overrunErrors: buffer.getUint8()
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
toBytes() {
|
|
78
|
+
if (!isValidParameterSet(this.parameters)) {
|
|
79
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
80
|
+
}
|
|
81
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
82
|
+
const parameters = this.parameters;
|
|
83
|
+
buffer.setUint8(parameters.requestId);
|
|
84
|
+
buffer.setUint32(parameters.lastSuccessfulTime);
|
|
85
|
+
buffer.setUint32(parameters.lastFailedTime);
|
|
86
|
+
buffer.setUint16(parameters.readoutAttempts);
|
|
87
|
+
buffer.setUint16(parameters.successfulReadoutAttempts);
|
|
88
|
+
buffer.setUint16(parameters.readoutRepetitions);
|
|
89
|
+
buffer.setUint8(parameters.waitNextSymbolErrors);
|
|
90
|
+
buffer.setUint8(parameters.waitIdErrors);
|
|
91
|
+
buffer.setUint8(parameters.waitNextStateErrors);
|
|
92
|
+
buffer.setUint8(parameters.wrongBccErrors);
|
|
93
|
+
buffer.setUint8(parameters.parityErrors);
|
|
94
|
+
buffer.setUint8(parameters.frameErrors);
|
|
95
|
+
buffer.setUint8(parameters.overrunErrors);
|
|
96
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
GetMeterReadoutStateResponse.id = COMMAND_ID;
|
|
100
|
+
GetMeterReadoutStateResponse.directionType = UPLINK;
|
|
101
|
+
GetMeterReadoutStateResponse.examples = examples;
|
|
102
|
+
GetMeterReadoutStateResponse.hasParameters = true;
|
|
103
|
+
export default GetMeterReadoutStateResponse;
|
|
104
|
+
//# sourceMappingURL=GetMeterReadoutStateResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMeterReadoutStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterReadoutStateResponse.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;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,kBAAkB,EAAE,GAAG;YACvB,cAAc,EAAE,GAAG;YACnB,eA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import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetObisContentByIdResponseParameters extends ICommandParameters {
|
|
4
|
+
content?: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetObisContentByIdResponse extends Command {
|
|
7
|
+
parameters: IGetObisContentByIdResponseParameters;
|
|
8
|
+
constructor(parameters: IGetObisContentByIdResponseParameters);
|
|
9
|
+
static readonly id = 78;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetObisContentByIdResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetObisContentByIdResponse;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 = 0x4e;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'response to GetObisContentById',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 121,
|
|
11
|
+
content: 344.23
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '4e 05', body: '79 43 ac 1d 71' }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'response to GetObisContentById without content',
|
|
17
|
+
parameters: {
|
|
18
|
+
requestId: 122
|
|
19
|
+
},
|
|
20
|
+
hex: { header: '4e 01', body: '7a' }
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
class GetObisContentByIdResponse extends Command {
|
|
24
|
+
constructor(parameters) {
|
|
25
|
+
super();
|
|
26
|
+
this.parameters = parameters;
|
|
27
|
+
this.size = REQUEST_ID_SIZE + (parameters.content ? 4 : 0);
|
|
28
|
+
}
|
|
29
|
+
static fromBytes(data) {
|
|
30
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
31
|
+
const requestId = buffer.getUint8();
|
|
32
|
+
return buffer.isEmpty
|
|
33
|
+
? new GetObisContentByIdResponse({ requestId })
|
|
34
|
+
: new GetObisContentByIdResponse({ requestId, content: roundNumber(buffer.getFloat32()) });
|
|
35
|
+
}
|
|
36
|
+
toBytes() {
|
|
37
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
38
|
+
const { requestId, content } = this.parameters;
|
|
39
|
+
buffer.setUint8(requestId);
|
|
40
|
+
if (content) {
|
|
41
|
+
buffer.setFloat32(roundNumber(content));
|
|
42
|
+
}
|
|
43
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
GetObisContentByIdResponse.id = COMMAND_ID;
|
|
47
|
+
GetObisContentByIdResponse.directionType = UPLINK;
|
|
48
|
+
GetObisContentByIdResponse.examples = examples;
|
|
49
|
+
GetObisContentByIdResponse.hasParameters = true;
|
|
50
|
+
export default GetObisContentByIdResponse;
|
|
51
|
+
//# sourceMappingURL=GetObisContentByIdResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisContentByIdResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisContentByIdResponse.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gCAAgC;QACtC,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,MAAM;SAClB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,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA/Be,6BAAE,GAAG,UAAU,CAAC;AAEhB,wCAAa,GAAG,MAAM,CAAC;AAEvB,mCAAQ,GAAG,QAAQ,CAAC;AAEpB,wCAAa,GAAG,IAAI,CAAC;AA6BzC,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetObisContentByIdStringResponseParameters extends ICommandParameters {
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
declare class GetObisContentByIdStringResponse extends Command {
|
|
7
|
+
parameters: IGetObisContentByIdStringResponseParameters;
|
|
8
|
+
constructor(parameters: IGetObisContentByIdStringResponseParameters);
|
|
9
|
+
static readonly id = 79;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetObisContentByIdStringResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetObisContentByIdStringResponse;
|
|
@@ -1,45 +1,40 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x4f;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: '
|
|
7
|
+
name: 'response to GetObisContentById with string result',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 121,
|
|
10
10
|
content: 'Total energy'
|
|
11
11
|
},
|
|
12
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '4f 0e', body: '79 0c 54 6f 74 61 6c 20 65 6e 65 72 67 79' }
|
|
13
13
|
}
|
|
14
14
|
];
|
|
15
|
-
class
|
|
15
|
+
class GetObisContentByIdStringResponse extends Command {
|
|
16
16
|
constructor(parameters) {
|
|
17
17
|
super();
|
|
18
18
|
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE +
|
|
19
|
+
this.size = REQUEST_ID_SIZE + this.parameters.content.length + 1;
|
|
20
20
|
}
|
|
21
21
|
static fromBytes(data) {
|
|
22
22
|
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
-
buffer.seek(buffer.offset + 1);
|
|
24
23
|
const requestId = buffer.getUint8();
|
|
25
24
|
const content = buffer.getString();
|
|
26
|
-
return new
|
|
25
|
+
return new GetObisContentByIdStringResponse({ requestId, content });
|
|
27
26
|
}
|
|
28
27
|
toBytes() {
|
|
29
|
-
if (typeof this.size !== 'number') {
|
|
30
|
-
throw new Error('unknown or invalid size');
|
|
31
|
-
}
|
|
32
28
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
29
|
const { requestId, content } = this.parameters;
|
|
34
|
-
buffer.setUint8(this.size - 1);
|
|
35
30
|
buffer.setUint8(requestId);
|
|
36
31
|
buffer.setString(content);
|
|
37
32
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export default
|
|
45
|
-
//# sourceMappingURL=
|
|
35
|
+
GetObisContentByIdStringResponse.id = COMMAND_ID;
|
|
36
|
+
GetObisContentByIdStringResponse.directionType = UPLINK;
|
|
37
|
+
GetObisContentByIdStringResponse.examples = examples;
|
|
38
|
+
GetObisContentByIdStringResponse.hasParameters = true;
|
|
39
|
+
export default GetObisContentByIdStringResponse;
|
|
40
|
+
//# sourceMappingURL=GetObisContentByIdStringResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisContentByIdString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QAC3B,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA3Be,mCAAE,GAAG,UAAU,CAAC;AAEhB,8CAAa,GAAG,MAAM,CAAC;AAEvB,yCAAQ,GAAG,QAAQ,CAAC;AAEpB,8CAAa,GAAG,IAAI,CAAC;AAyBzC,eAAe,gCAAgC,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface IGetContentByObisResponseParameters extends ICommandParameters {
|
|
|
6
6
|
declare class GetContentByObisResponse extends Command {
|
|
7
7
|
parameters: IGetContentByObisResponseParameters;
|
|
8
8
|
constructor(parameters: IGetContentByObisResponseParameters);
|
|
9
|
-
static readonly id =
|
|
9
|
+
static readonly id = 77;
|
|
10
10
|
static readonly directionType = 2;
|
|
11
11
|
static readonly examples: TCommandExampleList;
|
|
12
12
|
static readonly hasParameters = true;
|
package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js}
RENAMED
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x4d;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: '
|
|
7
|
+
name: 'response to GetObisContent',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 2,
|
|
10
10
|
content: '57906635'
|
|
11
11
|
},
|
|
12
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '4d 0a', body: '02 08 35 37 39 30 36 36 33 35' }
|
|
13
13
|
}
|
|
14
14
|
];
|
|
15
15
|
class GetContentByObisResponse extends Command {
|
|
16
16
|
constructor(parameters) {
|
|
17
17
|
super();
|
|
18
18
|
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + 1 +
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1 + this.parameters.content.length;
|
|
20
20
|
}
|
|
21
21
|
static fromBytes(data) {
|
|
22
22
|
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
-
buffer.seek(buffer.offset + 1);
|
|
24
23
|
const requestId = buffer.getUint8();
|
|
25
24
|
const content = buffer.getString();
|
|
26
25
|
return new GetContentByObisResponse({ requestId, content });
|
|
27
26
|
}
|
|
28
27
|
toBytes() {
|
|
29
|
-
if (typeof this.size !== 'number') {
|
|
30
|
-
throw new Error('unknown or invalid size');
|
|
31
|
-
}
|
|
32
28
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
29
|
const { requestId, content } = this.parameters;
|
|
34
|
-
buffer.setUint8(this.size - 1);
|
|
35
30
|
buffer.setUint8(requestId);
|
|
36
31
|
buffer.setString(content);
|
|
37
32
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
@@ -42,4 +37,4 @@ GetContentByObisResponse.directionType = UPLINK;
|
|
|
42
37
|
GetContentByObisResponse.examples = examples;
|
|
43
38
|
GetContentByObisResponse.hasParameters = true;
|
|
44
39
|
export default GetContentByObisResponse;
|
|
45
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=GetObisContentResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisContentResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisContentResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4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 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetObisIdListResponseParameters extends ICommandParameters {
|
|
4
|
+
obisIdList: Array<number>;
|
|
5
|
+
}
|
|
6
|
+
declare class GetObisIdListResponse extends Command {
|
|
7
|
+
parameters: IGetObisIdListResponseParameters;
|
|
8
|
+
constructor(parameters: IGetObisIdListResponseParameters);
|
|
9
|
+
static readonly id = 65;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetObisIdListResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetObisIdListResponse;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 = 0x41;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'response to GetObisIdList with two obis id',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 3,
|
|
10
|
+
obisIdList: [197, 198]
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '41 03', body: '03 c5 c6' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetObisIdListResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + parameters.obisIdList.length;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
const requestId = buffer.getUint8();
|
|
24
|
+
const obisIdList = [...new Array(data.length - REQUEST_ID_SIZE)].map(() => buffer.getUint8());
|
|
25
|
+
return new GetObisIdListResponse({ requestId, obisIdList });
|
|
26
|
+
}
|
|
27
|
+
toBytes() {
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId, obisIdList } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
obisIdList.forEach(obisId => buffer.setUint8(obisId));
|
|
32
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
GetObisIdListResponse.id = COMMAND_ID;
|
|
36
|
+
GetObisIdListResponse.directionType = UPLINK;
|
|
37
|
+
GetObisIdListResponse.examples = examples;
|
|
38
|
+
GetObisIdListResponse.hasParameters = true;
|
|
39
|
+
export default GetObisIdListResponse;
|
|
40
|
+
//# sourceMappingURL=GetObisIdListResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisIdListResponse.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;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;SACzB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAuBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,C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
interface IGetObisInfoResponseParameters extends ICommandParameters {
|
|
4
|
+
obis?: IObis;
|
|
5
|
+
obisProfile?: IObisProfile;
|
|
6
|
+
}
|
|
7
|
+
declare class GetObisInfoResponse extends Command {
|
|
8
|
+
parameters: IGetObisInfoResponseParameters;
|
|
9
|
+
constructor(parameters: IGetObisInfoResponseParameters);
|
|
10
|
+
static readonly id = 75;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetObisInfoResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetObisInfoResponse;
|