jooby-codec 2.11.0 → 2.12.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 +8 -3
- 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/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{AddObisProfile.js → AddShortNameProfile.js} +17 -20
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +42 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObisContent.d.ts → GetContentByObis.d.ts} +1 -2
- package/dist/obis-observer/commands/downlink/{GetObisContent.js → GetContentByObis.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverInfo.d.ts → GetDate.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDate.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverUptime.d.ts → GetDeviceInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +13 -6
- 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 +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +39 -0
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +44 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/{SetObisId.js → GetShortNames.js} +16 -19
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +57 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +12 -6
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.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/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{GetObisIdList.js → SetShortName.js} +18 -15
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +12 -6
- 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 +9 -4
- 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 +12 -6
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +15 -28
- package/dist/obis-observer/commands/downlink/index.js +15 -28
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.d.ts → GetArchiveProfileResponse.d.ts} +5 -5
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +58 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.d.ts → GetContentByObisResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js} +10 -5
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +44 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentByIdStringResponse.js → GetContentByShortNameStringResponse.js} +17 -12
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +47 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.d.ts → GetDeviceInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js} +18 -13
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +6 -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 +26 -23
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.d.ts → GetReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +77 -0
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/{GetObisInfoResponse.js → GetShortNameInfoResponse.js} +31 -42
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisProfileResponse.js → GetShortNameProfileResponse.js} +17 -24
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +19 -15
- 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 +20 -16
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +61 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/RebootResponse.js +12 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +17 -9
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +16 -8
- 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 +16 -8
- 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 +16 -8
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +16 -29
- package/dist/obis-observer/commands/uplink/index.js +16 -29
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +12 -31
- 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/{obisIds.d.ts → shortNames.d.ts} +4 -4
- package/dist/obis-observer/constants/shortNames.js +228 -0
- package/dist/obis-observer/constants/shortNames.js.map +1 -0
- package/dist/obis-observer/message.js +12 -4
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +0 -35
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterId.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -19
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -58
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -34
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +0 -48
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -34
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -47
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js +0 -64
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +0 -78
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +0 -50
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -54
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +0 -104
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -41
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +0 -79
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
- package/dist/obis-observer/constants/obisIds.js +0 -228
- package/dist/obis-observer/constants/obisIds.js.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IAddObisProfileResponseParameters extends ICommandParameters {
|
|
4
|
-
resultCode: number;
|
|
5
|
-
}
|
|
6
|
-
declare class AddObisProfileResponse extends Command {
|
|
7
|
-
parameters: IAddObisProfileResponseParameters;
|
|
8
|
-
constructor(parameters: IAddObisProfileResponseParameters);
|
|
9
|
-
static readonly id = 69;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes([requestId, resultCode]: Uint8Array): AddObisProfileResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default AddObisProfileResponse;
|
|
@@ -1,35 +0,0 @@
|
|
|
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 = 0x45;
|
|
6
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
-
const examples = [
|
|
8
|
-
{
|
|
9
|
-
name: 'add obis profile - succeed',
|
|
10
|
-
parameters: {
|
|
11
|
-
requestId: 7,
|
|
12
|
-
resultCode: resultCodes.OK
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '45 02', body: '07 00' }
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
class AddObisProfileResponse 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 AddObisProfileResponse({ requestId, resultCode });
|
|
25
|
-
}
|
|
26
|
-
toBytes() {
|
|
27
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.resultCode]));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
AddObisProfileResponse.id = COMMAND_ID;
|
|
31
|
-
AddObisProfileResponse.directionType = UPLINK;
|
|
32
|
-
AddObisProfileResponse.examples = examples;
|
|
33
|
-
AddObisProfileResponse.hasParameters = true;
|
|
34
|
-
export default AddObisProfileResponse;
|
|
35
|
-
//# sourceMappingURL=AddObisProfileResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddObisProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/AddObisProfileResponse.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,4BAA4B;QAClC,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,sBAAuB,SAAQ,OAAO;IACxC,YAAqB,UAA6C;QAC9D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAmC;QAG9D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,UAAU,CAAa;QAClD,OAAO,IAAI,sBAAsB,CAAC,EAAC,SAAS,EAAE,UAAU,EAAC,CAAC,CAAC;IAC/D,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,yBAAE,GAAG,UAAU,CAAC;AAEhB,oCAAa,GAAG,MAAM,CAAC;AAEvB,+BAAQ,GAAG,QAAQ,CAAC;AAEpB,oCAAa,GAAG,IAAI,CAAC;AAezC,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x67;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 4;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'response to GetMeterArchiveProfile',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 3,
|
|
11
|
-
archive1Period: 600,
|
|
12
|
-
archive2Period: 45
|
|
13
|
-
},
|
|
14
|
-
hex: { header: '67 05', body: '03 02 58 00 2d' }
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: 'response to GetMeterArchiveProfile without data',
|
|
18
|
-
parameters: {
|
|
19
|
-
requestId: 3
|
|
20
|
-
},
|
|
21
|
-
hex: { header: '67 01', body: '03' }
|
|
22
|
-
}
|
|
23
|
-
];
|
|
24
|
-
const isValidParameterSet = (parameters) => {
|
|
25
|
-
const { requestId, archive1Period, archive2Period } = parameters;
|
|
26
|
-
return requestId !== undefined
|
|
27
|
-
&& archive1Period !== undefined
|
|
28
|
-
&& archive2Period !== undefined;
|
|
29
|
-
};
|
|
30
|
-
class GetArchiveProfileResponse extends Command {
|
|
31
|
-
constructor(parameters) {
|
|
32
|
-
super();
|
|
33
|
-
this.parameters = parameters;
|
|
34
|
-
this.size = isValidParameterSet(parameters) ? COMMAND_SIZE : REQUEST_ID_SIZE;
|
|
35
|
-
}
|
|
36
|
-
static fromBytes(data) {
|
|
37
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
38
|
-
const requestId = buffer.getUint8();
|
|
39
|
-
return buffer.isEmpty
|
|
40
|
-
? new GetArchiveProfileResponse({ requestId })
|
|
41
|
-
: new GetArchiveProfileResponse({
|
|
42
|
-
requestId,
|
|
43
|
-
archive1Period: buffer.getUint16(),
|
|
44
|
-
archive2Period: buffer.getUint16()
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
toBytes() {
|
|
48
|
-
if (!isValidParameterSet(this.parameters)) {
|
|
49
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
50
|
-
}
|
|
51
|
-
const { requestId, archive1Period, archive2Period } = this.parameters;
|
|
52
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
53
|
-
buffer.setUint8(requestId);
|
|
54
|
-
buffer.setUint16(archive1Period);
|
|
55
|
-
buffer.setUint16(archive2Period);
|
|
56
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
GetArchiveProfileResponse.id = COMMAND_ID;
|
|
60
|
-
GetArchiveProfileResponse.directionType = UPLINK;
|
|
61
|
-
GetArchiveProfileResponse.examples = examples;
|
|
62
|
-
GetArchiveProfileResponse.hasParameters = true;
|
|
63
|
-
export default GetArchiveProfileResponse;
|
|
64
|
-
//# sourceMappingURL=GetMeterArchiveProfileResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterArchiveProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,GAAG;YACnB,cAAc,EAAE,EAAE;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;IACD;QACI,IAAI,EAAE,iDAAiD;QACvD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAE,UAAqE,EAAY,EAAE;IAC7G,MAAM,EAAC,SAAS,EAAE,cAAc,EAAE,cAAc,EAAC,GAAG,UAAkD,CAAC;IAEvG,OAAO,SAAS,KAAK,SAAS;WACvB,cAAc,KAAK,SAAS;WAC5B,cAAc,KAAK,SAAS,CAAC;AACxC,CAAC,CAAC;AAwBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAAqE;QACtF,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2D;QAGtF,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC;IACjF,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,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
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
-
interface IGetMeterArchiveStateResponseParameters extends ICommandParameters {
|
|
5
|
-
archiveRecordsNumber: number;
|
|
6
|
-
eldestTime2000: TTime2000;
|
|
7
|
-
newestTime2000: TTime2000;
|
|
8
|
-
}
|
|
9
|
-
declare class GetMeterArchiveStateResponse extends Command {
|
|
10
|
-
parameters: IGetMeterArchiveStateResponseParameters | ICommandParameters;
|
|
11
|
-
constructor(parameters: IGetMeterArchiveStateResponseParameters | ICommandParameters);
|
|
12
|
-
static readonly id = 125;
|
|
13
|
-
static readonly directionType = 2;
|
|
14
|
-
static readonly examples: TCommandExampleList;
|
|
15
|
-
static readonly hasParameters = true;
|
|
16
|
-
static fromBytes(data: Uint8Array): GetMeterArchiveStateResponse;
|
|
17
|
-
toBytes(): Uint8Array;
|
|
18
|
-
}
|
|
19
|
-
export default GetMeterArchiveStateResponse;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x7d;
|
|
5
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 4 + DATE_TIME_SIZE * 2;
|
|
6
|
-
const examples = [
|
|
7
|
-
{
|
|
8
|
-
name: 'response to GetMeterArchiveState. no archive records',
|
|
9
|
-
parameters: {
|
|
10
|
-
requestId: 2,
|
|
11
|
-
archiveRecordsNumber: 0,
|
|
12
|
-
eldestTime2000: 0,
|
|
13
|
-
newestTime2000: 0
|
|
14
|
-
},
|
|
15
|
-
hex: { header: '7d 0d', body: '02 00 00 00 00 00 00 00 00 00 00 00 00' }
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'response to GetMeterArchiveState. 81 records from 2023.06.27 18:45:02 GMT to 2023.06.28 15:15:02 GMT',
|
|
19
|
-
parameters: {
|
|
20
|
-
requestId: 2,
|
|
21
|
-
archiveRecordsNumber: 81,
|
|
22
|
-
eldestTime2000: 741206702,
|
|
23
|
-
newestTime2000: 741280502
|
|
24
|
-
},
|
|
25
|
-
hex: { header: '7d 0d', body: '02 00 00 00 51 2c 2d ea ae 2c 2f 0a f6' }
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'response to GetMeterArchiveState without data',
|
|
29
|
-
parameters: {
|
|
30
|
-
requestId: 2
|
|
31
|
-
},
|
|
32
|
-
hex: { header: '7d 01', body: '02' }
|
|
33
|
-
}
|
|
34
|
-
];
|
|
35
|
-
const isValidParameterSet = (parameters) => {
|
|
36
|
-
const { requestId, archiveRecordsNumber, eldestTime2000, newestTime2000 } = parameters;
|
|
37
|
-
return requestId !== undefined
|
|
38
|
-
&& archiveRecordsNumber !== undefined
|
|
39
|
-
&& eldestTime2000 !== undefined
|
|
40
|
-
&& newestTime2000 !== undefined;
|
|
41
|
-
};
|
|
42
|
-
class GetMeterArchiveStateResponse extends Command {
|
|
43
|
-
constructor(parameters) {
|
|
44
|
-
super();
|
|
45
|
-
this.parameters = parameters;
|
|
46
|
-
this.size = isValidParameterSet(parameters) ? COMMAND_SIZE : REQUEST_ID_SIZE;
|
|
47
|
-
}
|
|
48
|
-
static fromBytes(data) {
|
|
49
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
50
|
-
const requestId = buffer.getUint8();
|
|
51
|
-
return buffer.isEmpty
|
|
52
|
-
? new GetMeterArchiveStateResponse({ requestId })
|
|
53
|
-
: new GetMeterArchiveStateResponse({
|
|
54
|
-
requestId,
|
|
55
|
-
archiveRecordsNumber: buffer.getUint32(),
|
|
56
|
-
eldestTime2000: buffer.getUint32(),
|
|
57
|
-
newestTime2000: buffer.getUint32()
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
toBytes() {
|
|
61
|
-
if (!isValidParameterSet(this.parameters)) {
|
|
62
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
63
|
-
}
|
|
64
|
-
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
65
|
-
const { requestId, archiveRecordsNumber, eldestTime2000, newestTime2000 } = this.parameters;
|
|
66
|
-
buffer.setUint8(requestId);
|
|
67
|
-
buffer.setUint32(archiveRecordsNumber);
|
|
68
|
-
buffer.setUint32(eldestTime2000);
|
|
69
|
-
buffer.setUint32(newestTime2000);
|
|
70
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
GetMeterArchiveStateResponse.id = COMMAND_ID;
|
|
74
|
-
GetMeterArchiveStateResponse.directionType = UPLINK;
|
|
75
|
-
GetMeterArchiveStateResponse.examples = examples;
|
|
76
|
-
GetMeterArchiveStateResponse.hasParameters = true;
|
|
77
|
-
export default GetMeterArchiveStateResponse;
|
|
78
|
-
//# sourceMappingURL=GetMeterArchiveStateResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterArchiveStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterArchiveStateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAGxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,cAAc,GAAG,CAAC,CAAC;AAE9D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,sDAAsD;QAC5D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,oBAAoB,EAAE,CAAC;YACvB,cAAc,EA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AI,4BAA4B,CAAC,EAAC,SAAS,EAAuB,CAAC;YACrE,CAAC,CAAC,IAAI,4BAA4B,CAAC;gBAC/B,SAAS;gBACT,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE;gBACxC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;gBAClC,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE;aACrC,CAAC,CAAC;IACX,CAAC;IAGD,OAAO;QACH,IAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAG;YACzC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SACnF;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAC,GAAG,IAAI,CAAC,UAAqD,CAAC;QAErI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACvC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAEjC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAvCe,+BAAE,GAAG,UAAU,CAAC;AAEhB,0CAAa,GAAG,MAAM,CAAC;AAEvB,qCAAQ,GAAG,QAAQ,CAAC;AAEpB,0CAAa,GAAG,IAAI,CAAC;AAqCzC,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
-
interface IGetMeterDateResponseParameters extends ICommandParameters {
|
|
5
|
-
time2000?: TTime2000;
|
|
6
|
-
}
|
|
7
|
-
declare class GetMeterDateResponse extends Command {
|
|
8
|
-
parameters: IGetMeterDateResponseParameters;
|
|
9
|
-
constructor(parameters: IGetMeterDateResponseParameters);
|
|
10
|
-
static readonly id = 123;
|
|
11
|
-
static readonly directionType = 2;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): GetMeterDateResponse;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default GetMeterDateResponse;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x7b;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetMeterDate with data',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 7,
|
|
10
|
-
time2000: 741280502
|
|
11
|
-
},
|
|
12
|
-
hex: { header: '7b 05', body: '07 2c 2f 0a f6' }
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: 'response to GetMeterDate without data',
|
|
16
|
-
parameters: {
|
|
17
|
-
requestId: 8
|
|
18
|
-
},
|
|
19
|
-
hex: { header: '7b 01', body: '08' }
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
class GetMeterDateResponse extends Command {
|
|
23
|
-
constructor(parameters) {
|
|
24
|
-
super();
|
|
25
|
-
this.parameters = parameters;
|
|
26
|
-
this.size = REQUEST_ID_SIZE + (parameters.time2000 ? DATE_TIME_SIZE : 0);
|
|
27
|
-
}
|
|
28
|
-
static fromBytes(data) {
|
|
29
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
30
|
-
const requestId = buffer.getUint8();
|
|
31
|
-
return buffer.isEmpty
|
|
32
|
-
? new GetMeterDateResponse({ requestId })
|
|
33
|
-
: new GetMeterDateResponse({ requestId, time2000: buffer.getUint32() });
|
|
34
|
-
}
|
|
35
|
-
toBytes() {
|
|
36
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
37
|
-
const { requestId, time2000 } = this.parameters;
|
|
38
|
-
buffer.setUint8(requestId);
|
|
39
|
-
if (time2000) {
|
|
40
|
-
buffer.setUint32(time2000);
|
|
41
|
-
}
|
|
42
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
GetMeterDateResponse.id = COMMAND_ID;
|
|
46
|
-
GetMeterDateResponse.directionType = UPLINK;
|
|
47
|
-
GetMeterDateResponse.examples = examples;
|
|
48
|
-
GetMeterDateResponse.hasParameters = true;
|
|
49
|
-
export default GetMeterDateResponse;
|
|
50
|
-
//# sourceMappingURL=GetMeterDateResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterDateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterDateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;IACD;QACI,IAAI,EA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;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AA6BzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetMeterIdListResponseParameters extends ICommandParameters {
|
|
4
|
-
meterIdList: Array<number>;
|
|
5
|
-
}
|
|
6
|
-
declare class GetMeterIdListResponse extends Command {
|
|
7
|
-
parameters: IGetMeterIdListResponseParameters;
|
|
8
|
-
constructor(parameters: IGetMeterIdListResponseParameters);
|
|
9
|
-
static readonly id = 117;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetMeterIdListResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetMeterIdListResponse;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x75;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetMeterIdList with two meterId',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 3,
|
|
10
|
-
meterIdList: [1, 2]
|
|
11
|
-
},
|
|
12
|
-
hex: { header: '75 03', body: '03 01 02' }
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
class GetMeterIdListResponse extends Command {
|
|
16
|
-
constructor(parameters) {
|
|
17
|
-
super();
|
|
18
|
-
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + parameters.meterIdList.length;
|
|
20
|
-
}
|
|
21
|
-
static fromBytes(data) {
|
|
22
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
-
const requestId = buffer.getUint8();
|
|
24
|
-
const meterIdList = [...new Array(data.length - REQUEST_ID_SIZE)].map(() => buffer.getUint8());
|
|
25
|
-
return new GetMeterIdListResponse({ requestId, meterIdList });
|
|
26
|
-
}
|
|
27
|
-
toBytes() {
|
|
28
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
-
const { requestId, meterIdList } = this.parameters;
|
|
30
|
-
buffer.setUint8(requestId);
|
|
31
|
-
meterIdList.forEach(meterId => buffer.setUint8(meterId));
|
|
32
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
GetMeterIdListResponse.id = COMMAND_ID;
|
|
36
|
-
GetMeterIdListResponse.directionType = UPLINK;
|
|
37
|
-
GetMeterIdListResponse.examples = examples;
|
|
38
|
-
GetMeterIdListResponse.hasParameters = true;
|
|
39
|
-
export default GetMeterIdListResponse;
|
|
40
|
-
//# sourceMappingURL=GetMeterIdListResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU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1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetMeterIdResponseParameters extends ICommandParameters {
|
|
4
|
-
meterId?: number;
|
|
5
|
-
}
|
|
6
|
-
declare class GetMeterIdResponse extends Command {
|
|
7
|
-
parameters: IGetMeterIdResponseParameters;
|
|
8
|
-
constructor(parameters: IGetMeterIdResponseParameters);
|
|
9
|
-
static readonly id = 119;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes([requestId, meterId]: Uint8Array): GetMeterIdResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetMeterIdResponse;
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 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
|
|
@@ -1 +0,0 @@
|
|
|
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;Y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AE7D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,cAAc,IAAI,wBAAwB,CAAC,CAAC;QAC5D,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,MAAM,CAAC;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
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;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterProfileIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterProfileIdListResponse.ts"],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