jooby-codec 2.8.2 → 2.10.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/analog/Command.d.ts +1 -0
- package/dist/analog/Command.js +4 -0
- package/dist/analog/Command.js.map +1 -1
- package/dist/analog/message.d.ts +2 -0
- package/dist/analog/message.js +4 -0
- package/dist/analog/message.js.map +1 -1
- package/dist/obis-observer/Command.d.ts +1 -0
- package/dist/obis-observer/Command.js +7 -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/{GetShortNameInfo.js → GetMeterId.js} +17 -17
- 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 -6
- 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 -15
- 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 +61 -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 -13
- 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 +50 -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 -6
- 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 -3
- 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} +1 -1
- package/dist/obis-observer/commands/uplink/{GetArchiveProfileResponse.js → GetMeterArchiveProfileResponse.js} +4 -4
- 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 +18 -0
- package/dist/obis-observer/commands/uplink/{GetDateResponse.js → GetMeterDateResponse.js} +18 -18
- 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 +43 -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 +34 -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 +57 -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 +43 -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/{GetReadoutStateResponse.js → GetMeterReadoutStateResponse.js} +11 -11
- 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/{GetContentByShortNameResponse.js → GetObisContentByIdResponse.js} +11 -11
- 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 -14
- 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 -7
- 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 +43 -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} +13 -14
- 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} +11 -11
- 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 -15
- 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 +44 -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 -16
- 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 -17
- 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/{ReadArchiveResponse.js → ReadMeterArchiveResponse.js} +22 -23
- 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.d.ts +2 -0
- package/dist/obis-observer/message.js +8 -12
- package/dist/obis-observer/message.js.map +1 -1
- package/dist/utils/getBase64FromBytes.d.ts +2 -0
- package/dist/utils/getBase64FromBytes.js +5 -0
- package/dist/utils/getBase64FromBytes.js.map +1 -0
- package/dist/utils/getBytesFromBase64.d.ts +2 -0
- package/dist/utils/getBytesFromBase64.js +2 -0
- package/dist/utils/getBytesFromBase64.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.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.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.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.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.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
- 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.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,14 +1,14 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import {
|
|
2
|
+
import { IObisValueString } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { TTime2000 } from '../../../utils/time.js';
|
|
4
4
|
interface IObservationReportStringParameters {
|
|
5
5
|
time2000: TTime2000;
|
|
6
|
-
|
|
6
|
+
obisValueList: Array<IObisValueString>;
|
|
7
7
|
}
|
|
8
8
|
declare class ObservationReportString extends Command {
|
|
9
9
|
parameters: IObservationReportStringParameters;
|
|
10
10
|
constructor(parameters: IObservationReportStringParameters);
|
|
11
|
-
static readonly id =
|
|
11
|
+
static readonly id = 82;
|
|
12
12
|
static readonly directionType = 2;
|
|
13
13
|
static readonly examples: TCommandExampleList;
|
|
14
14
|
static readonly hasParameters = true;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x52;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: '
|
|
7
|
+
name: 'observation report from 2023.12.23 00:00:00 GMT',
|
|
8
8
|
parameters: {
|
|
9
9
|
time2000: 756604800,
|
|
10
|
-
|
|
10
|
+
obisValueList: [
|
|
11
11
|
{ code: 50, content: 'reactive power QI, average' },
|
|
12
12
|
{ code: 56, content: 'reactive power QI, total' }
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
15
|
hex: {
|
|
16
|
-
header: '
|
|
17
|
-
body: '
|
|
16
|
+
header: '52 3a',
|
|
17
|
+
body: '2d 18 df 80 32 1a 72 65 61 63 74 69 76 65 20 70 6f 77 65'
|
|
18
18
|
+ ' 72 20 51 49 2c 20 61 76 65 72 61 67 65 38 18 72 65 61 63 74 69 76'
|
|
19
19
|
+ ' 65 20 70 6f 77 65 72 20 51 49 2c 20 74 6f 74 61 6c'
|
|
20
20
|
}
|
|
@@ -24,33 +24,32 @@ class ObservationReportString extends Command {
|
|
|
24
24
|
constructor(parameters) {
|
|
25
25
|
super();
|
|
26
26
|
this.parameters = parameters;
|
|
27
|
-
let size =
|
|
28
|
-
this.parameters.
|
|
29
|
-
size += CommandBinaryBuffer.
|
|
27
|
+
let size = DATE_TIME_SIZE;
|
|
28
|
+
this.parameters.obisValueList.forEach(obisValue => {
|
|
29
|
+
size += CommandBinaryBuffer.getObisContentSize(obisValue);
|
|
30
30
|
});
|
|
31
31
|
this.size = size;
|
|
32
32
|
}
|
|
33
33
|
static fromBytes(data) {
|
|
34
34
|
const buffer = new CommandBinaryBuffer(data);
|
|
35
|
-
let size =
|
|
35
|
+
let size = data.length - DATE_TIME_SIZE;
|
|
36
36
|
const time2000 = buffer.getUint32();
|
|
37
|
-
const
|
|
37
|
+
const obisValueList = [];
|
|
38
38
|
while (size > 0) {
|
|
39
|
-
const
|
|
40
|
-
size -= CommandBinaryBuffer.
|
|
41
|
-
|
|
39
|
+
const obisValue = buffer.getObisValueString();
|
|
40
|
+
size -= CommandBinaryBuffer.getObisContentSize(obisValue);
|
|
41
|
+
obisValueList.push(obisValue);
|
|
42
42
|
}
|
|
43
|
-
return new ObservationReportString({ time2000,
|
|
43
|
+
return new ObservationReportString({ time2000, obisValueList });
|
|
44
44
|
}
|
|
45
45
|
toBytes() {
|
|
46
46
|
if (typeof this.size !== 'number') {
|
|
47
47
|
throw new Error('unknown or invalid size');
|
|
48
48
|
}
|
|
49
49
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
50
|
-
const { time2000,
|
|
51
|
-
buffer.setUint8(this.size - 1);
|
|
50
|
+
const { time2000, obisValueList } = this.parameters;
|
|
52
51
|
buffer.setUint32(time2000);
|
|
53
|
-
|
|
52
|
+
obisValueList.forEach(obisValue => buffer.setObisValueString(obisValue));
|
|
54
53
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationReportString.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReportString.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAmB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAcrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ObservationReportString.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReportString.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAmB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAcrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iDAAiD;QACvD,UAAU,EAAE;YACR,QAAQ,EAAE,SAAS;YACnB,aAAa,EAAE;gBACX,EAAC,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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,QAAQ,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAElD,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3B,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;QAEzE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAxCe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAsCzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters, IObisValueFloat } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
+
interface IReadMeterArchiveResponseParameters extends ICommandParameters {
|
|
5
|
+
time2000: TTime2000;
|
|
6
|
+
obisValueList: Array<IObisValueFloat>;
|
|
7
|
+
}
|
|
8
|
+
declare class ReadMeterArchiveResponse extends Command {
|
|
9
|
+
parameters: IReadMeterArchiveResponseParameters;
|
|
10
|
+
constructor(parameters: IReadMeterArchiveResponseParameters);
|
|
11
|
+
static readonly id = 128;
|
|
12
|
+
static readonly directionType = 2;
|
|
13
|
+
static readonly examples: TCommandExampleList;
|
|
14
|
+
static readonly hasParameters = true;
|
|
15
|
+
static fromBytes(data: Uint8Array): ReadMeterArchiveResponse;
|
|
16
|
+
toBytes(): Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
export default ReadMeterArchiveResponse;
|
package/dist/obis-observer/commands/uplink/{ReadArchiveResponse.js → ReadMeterArchiveResponse.js}
RENAMED
|
@@ -1,61 +1,60 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x80;
|
|
5
5
|
const COMMAND_HEADER_SIZE = REQUEST_ID_SIZE + DATE_TIME_SIZE;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
|
-
name: '
|
|
8
|
+
name: 'response to ReadMeterArchive from 2023-12-23 04:00:00 GMT',
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 34,
|
|
11
11
|
time2000: 756619200,
|
|
12
|
-
|
|
12
|
+
obisValueList: [
|
|
13
13
|
{ code: 50, content: 22.27 },
|
|
14
14
|
{ code: 56, content: 89.33 }
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
-
hex: { header: '
|
|
17
|
+
hex: { header: '80 0f', body: '22 2d 19 17 c0 32 41 b2 28 f6 38 42 b2 a8 f6' }
|
|
18
18
|
}
|
|
19
19
|
];
|
|
20
|
-
class
|
|
20
|
+
class ReadMeterArchiveResponse extends Command {
|
|
21
21
|
constructor(parameters) {
|
|
22
22
|
super();
|
|
23
23
|
this.parameters = parameters;
|
|
24
|
-
let size =
|
|
25
|
-
this.parameters.
|
|
26
|
-
size += CommandBinaryBuffer.
|
|
24
|
+
let size = COMMAND_HEADER_SIZE;
|
|
25
|
+
this.parameters.obisValueList.forEach(obisId => {
|
|
26
|
+
size += CommandBinaryBuffer.getObisContentSize(obisId);
|
|
27
27
|
});
|
|
28
28
|
this.size = size;
|
|
29
29
|
}
|
|
30
30
|
static fromBytes(data) {
|
|
31
31
|
const buffer = new CommandBinaryBuffer(data);
|
|
32
|
-
let size =
|
|
32
|
+
let size = data.length - COMMAND_HEADER_SIZE;
|
|
33
33
|
const requestId = buffer.getUint8();
|
|
34
34
|
const time2000 = buffer.getUint32();
|
|
35
|
-
const
|
|
35
|
+
const obisValueList = [];
|
|
36
36
|
while (size) {
|
|
37
|
-
const
|
|
38
|
-
size -= CommandBinaryBuffer.
|
|
39
|
-
|
|
37
|
+
const obisValue = buffer.getObisValueFloat();
|
|
38
|
+
size -= CommandBinaryBuffer.getObisContentSize(obisValue);
|
|
39
|
+
obisValueList.push(obisValue);
|
|
40
40
|
}
|
|
41
|
-
return new
|
|
41
|
+
return new ReadMeterArchiveResponse({ requestId, time2000, obisValueList });
|
|
42
42
|
}
|
|
43
43
|
toBytes() {
|
|
44
44
|
if (typeof this.size !== 'number') {
|
|
45
45
|
throw new Error('unknown or invalid size');
|
|
46
46
|
}
|
|
47
47
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
48
|
-
const { requestId, time2000,
|
|
49
|
-
buffer.setUint8(this.size - 1);
|
|
48
|
+
const { requestId, time2000, obisValueList } = this.parameters;
|
|
50
49
|
buffer.setUint8(requestId);
|
|
51
50
|
buffer.setUint32(time2000);
|
|
52
|
-
|
|
51
|
+
obisValueList.forEach(obisValue => buffer.setObisValueFloat(obisValue));
|
|
53
52
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export default
|
|
61
|
-
//# sourceMappingURL=
|
|
55
|
+
ReadMeterArchiveResponse.id = COMMAND_ID;
|
|
56
|
+
ReadMeterArchiveResponse.directionType = UPLINK;
|
|
57
|
+
ReadMeterArchiveResponse.examples = examples;
|
|
58
|
+
ReadMeterArchiveResponse.hasParameters = true;
|
|
59
|
+
export default ReadMeterArchiveResponse;
|
|
60
|
+
//# sourceMappingURL=ReadMeterArchiveResponse.js.map
|
|
@@ -0,0 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AwCzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRebootResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
3
6
|
declare class RebootResponse extends Command {
|
|
4
|
-
parameters:
|
|
5
|
-
constructor(parameters:
|
|
6
|
-
static readonly id =
|
|
7
|
+
parameters: IRebootResponseParameters;
|
|
8
|
+
constructor(parameters: IRebootResponseParameters);
|
|
9
|
+
static readonly id = 26;
|
|
7
10
|
static readonly directionType = 2;
|
|
8
11
|
static readonly examples: TCommandExampleList;
|
|
9
12
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): RebootResponse;
|
|
11
14
|
toBytes(): Uint8Array;
|
|
12
15
|
}
|
|
13
16
|
export default RebootResponse;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
|
|
5
|
-
const
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x1a;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
7
|
const examples = [
|
|
7
8
|
{
|
|
8
|
-
name: '
|
|
9
|
+
name: 'reboot response',
|
|
9
10
|
parameters: {
|
|
10
|
-
requestId: 7
|
|
11
|
+
requestId: 7,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
11
13
|
},
|
|
12
|
-
hex: { header: '
|
|
14
|
+
hex: { header: '1a 02', body: '07 00' }
|
|
13
15
|
}
|
|
14
16
|
];
|
|
15
17
|
class RebootResponse extends Command {
|
|
@@ -18,14 +20,11 @@ class RebootResponse extends Command {
|
|
|
18
20
|
this.parameters = parameters;
|
|
19
21
|
this.size = COMMAND_SIZE;
|
|
20
22
|
}
|
|
21
|
-
static fromBytes(
|
|
22
|
-
|
|
23
|
-
return new RebootResponse({ requestId: buffer.getUint8() });
|
|
23
|
+
static fromBytes([requestId, resultCode]) {
|
|
24
|
+
return new RebootResponse({ requestId, resultCode });
|
|
24
25
|
}
|
|
25
26
|
toBytes() {
|
|
26
|
-
|
|
27
|
-
buffer.setUint8(this.parameters.requestId);
|
|
28
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
RebootResponse.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,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,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAsBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAAqC;QACtD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2B;QAGtD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IACvD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChH,CAAC;;AAjBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,MAAM,CAAC;AAEvB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAezC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveMeterProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveMeterProfileResponse extends Command {
|
|
7
|
+
parameters: IRemoveMeterProfileResponseParameters;
|
|
8
|
+
constructor(parameters: IRemoveMeterProfileResponseParameters);
|
|
9
|
+
static readonly id = 99;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): RemoveMeterProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveMeterProfileResponse;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x63;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'response to RemoveObisProfile - succeed',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 7,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '63 02', body: '07 00' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class RemoveMeterProfileResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes([requestId, resultCode]) {
|
|
24
|
+
return new RemoveMeterProfileResponse({ requestId, resultCode });
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
RemoveMeterProfileResponse.id = COMMAND_ID;
|
|
31
|
+
RemoveMeterProfileResponse.directionType = UPLINK;
|
|
32
|
+
RemoveMeterProfileResponse.examples = examples;
|
|
33
|
+
RemoveMeterProfileResponse.hasParameters = true;
|
|
34
|
+
export default RemoveMeterProfileResponse;
|
|
35
|
+
//# sourceMappingURL=RemoveMeterProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMeterProfileResponse.js","sourceRoot":"","sources":["../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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveMeterResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveMeterResponse extends Command {
|
|
7
|
+
parameters: IRemoveMeterResponseParameters;
|
|
8
|
+
constructor(parameters: IRemoveMeterResponseParameters);
|
|
9
|
+
static readonly id = 115;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): RemoveMeterResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveMeterResponse;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x73;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'response to RemoveObisProfile - succeed',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 7,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '73 02', body: '07 00' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class RemoveMeterResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes([requestId, resultCode]) {
|
|
24
|
+
return new RemoveMeterResponse({ requestId, resultCode });
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
RemoveMeterResponse.id = COMMAND_ID;
|
|
31
|
+
RemoveMeterResponse.directionType = UPLINK;
|
|
32
|
+
RemoveMeterResponse.examples = examples;
|
|
33
|
+
RemoveMeterResponse.hasParameters = true;
|
|
34
|
+
export default RemoveMeterResponse;
|
|
35
|
+
//# sourceMappingURL=RemoveMeterResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMeterResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveMeterResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,mBAAoB,SAAQ,OAAO;IACrC,YAAqB,UAA0C;QAC3D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAgC;QAG3D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,mBAAmB,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IAC5D,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAC1D,CACJ,CAAC;IACN,CAAC;;AAtBe,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,MAAM,CAAC;AAEvB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveObisProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveObisProfileResponse extends Command {
|
|
7
|
+
parameters: IRemoveObisProfileResponseParameters;
|
|
8
|
+
constructor(parameters: IRemoveObisProfileResponseParameters);
|
|
9
|
+
static readonly id = 71;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): RemoveObisProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveObisProfileResponse;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x47;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'responst to RemoveObisProfile - not found',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 5,
|
|
12
|
+
resultCode: resultCodes.PROFILE_NOT_FOUND
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '47 02', body: '05 05' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class RemoveObisProfileResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes([requestId, resultCode]) {
|
|
24
|
+
return new RemoveObisProfileResponse({ requestId, resultCode });
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
RemoveObisProfileResponse.id = COMMAND_ID;
|
|
31
|
+
RemoveObisProfileResponse.directionType = UPLINK;
|
|
32
|
+
RemoveObisProfileResponse.examples = examples;
|
|
33
|
+
RemoveObisProfileResponse.hasParameters = true;
|
|
34
|
+
export default RemoveObisProfileResponse;
|
|
35
|
+
//# sourceMappingURL=RemoveObisProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveObisProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveObisProfileResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2CAA2C;QACjD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,iBAAiB;SAC5C;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAAgD;QACjE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAsC;QAGjE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,yBAAyB,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IAClE,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAC1D,CACJ,CAAC;IACN,CAAC;;AAtBe,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetLorawanActivationMethodResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetLorawanActivationMethodResponse extends Command {
|
|
7
|
+
parameters: ISetLorawanActivationMethodResponseParameters;
|
|
8
|
+
constructor(parameters: ISetLorawanActivationMethodResponseParameters);
|
|
9
|
+
static readonly id = 24;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): SetLorawanActivationMethodResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetLorawanActivationMethodResponse;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x18;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'response to SetLorawanActivationMode - succeed',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 7,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '18 02', body: '07 00' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class SetLorawanActivationMethodResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes([requestId, resultCode]) {
|
|
24
|
+
return new SetLorawanActivationMethodResponse({ requestId, resultCode });
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
SetLorawanActivationMethodResponse.id = COMMAND_ID;
|
|
31
|
+
SetLorawanActivationMethodResponse.directionType = UPLINK;
|
|
32
|
+
SetLorawanActivationMethodResponse.examples = examples;
|
|
33
|
+
SetLorawanActivationMethodResponse.hasParameters = true;
|
|
34
|
+
export default SetLorawanActivationMethodResponse;
|
|
35
|
+
//# sourceMappingURL=SetLorawanActivationMethodResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetLorawanActivationMethodResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gDAAgD;QACtD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,kCAAmC,SAAQ,OAAO;IACpD,YAAqB,UAAyD;QAC1E,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+C;QAG1E,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,kCAAkC,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IAC3E,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAC1D,CACJ,CAAC;IACN,CAAC;;AAtBe,qCAAE,GAAG,UAAU,CAAC;AAEhB,gDAAa,GAAG,MAAM,CAAC;AAEvB,2CAAQ,GAAG,QAAQ,CAAC;AAEpB,gDAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetMeterArchiveProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetMeterArchiveProfileResponse extends Command {
|
|
7
|
+
parameters: ISetMeterArchiveProfileResponseParameters;
|
|
8
|
+
constructor(parameters: ISetMeterArchiveProfileResponseParameters);
|
|
9
|
+
static readonly id = 105;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): SetMeterArchiveProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetMeterArchiveProfileResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x69;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'response to SetMeterArchiveProfile - successful',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 156,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '69 02', body: '9c 00' }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'response to SetMeterArchiveProfile - failed',
|
|
18
|
+
parameters: {
|
|
19
|
+
requestId: 49,
|
|
20
|
+
resultCode: resultCodes.PROFILE_NOT_FOUND
|
|
21
|
+
},
|
|
22
|
+
hex: { header: '69 02', body: '31 05' }
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
class SetMeterArchiveProfileResponse extends Command {
|
|
26
|
+
constructor(parameters) {
|
|
27
|
+
super();
|
|
28
|
+
this.parameters = parameters;
|
|
29
|
+
this.size = COMMAND_SIZE;
|
|
30
|
+
}
|
|
31
|
+
static fromBytes([requestId, resultCode]) {
|
|
32
|
+
return new SetMeterArchiveProfileResponse({ requestId, resultCode });
|
|
33
|
+
}
|
|
34
|
+
toBytes() {
|
|
35
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
SetMeterArchiveProfileResponse.id = COMMAND_ID;
|
|
39
|
+
SetMeterArchiveProfileResponse.directionType = UPLINK;
|
|
40
|
+
SetMeterArchiveProfileResponse.examples = examples;
|
|
41
|
+
SetMeterArchiveProfileResponse.hasParameters = true;
|
|
42
|
+
export default SetMeterArchiveProfileResponse;
|
|
43
|
+
//# sourceMappingURL=SetMeterArchiveProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetMeterArchiveProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,M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{ TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetObisIdResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetObisIdResponse extends Command {
|
|
7
|
+
parameters: ISetObisIdResponseParameters;
|
|
8
|
+
constructor(parameters: ISetObisIdResponseParameters);
|
|
9
|
+
static readonly id = 67;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, resultCode]: Uint8Array): SetObisIdResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetObisIdResponse;
|