jooby-codec 2.10.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} +6 -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/{GetMeterId.js → GetShortNameInfo.js} +17 -17
- 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} +13 -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} +15 -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 +6 -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} +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.js → GetArchiveProfileResponse.js} +4 -4
- 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} +7 -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/{GetObisContentByIdResponse.js → GetContentByShortNameResponse.js} +11 -11
- 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} +14 -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/{GetMeterDateResponse.js → GetDateResponse.js} +18 -18
- 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} +15 -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 +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 +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/{GetMeterReadoutStateResponse.js → GetReadoutStateResponse.js} +11 -11
- 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} +14 -13
- 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} +11 -11
- 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 +16 -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 +17 -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/{ReadMeterArchiveResponse.js → ReadArchiveResponse.js} +23 -22
- 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.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 -61
- 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 -50
- 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.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 -18
- 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 -43
- 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 -34
- 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 -57
- 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 -43
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- 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.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 -43
- 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 -44
- 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.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,34 +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 = 0x74;
|
|
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: '74 02', body: '02 01' }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
class GetMeterIdResponse extends Command {
|
|
17
|
-
constructor(parameters) {
|
|
18
|
-
super();
|
|
19
|
-
this.parameters = parameters;
|
|
20
|
-
this.size = COMMAND_SIZE;
|
|
21
|
-
}
|
|
22
|
-
static fromBytes([requestId, meterId]) {
|
|
23
|
-
return new GetMeterIdResponse({ requestId, meterId });
|
|
24
|
-
}
|
|
25
|
-
toBytes() {
|
|
26
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterId]));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
GetMeterIdResponse.id = COMMAND_ID;
|
|
30
|
-
GetMeterIdResponse.directionType = UPLINK;
|
|
31
|
-
GetMeterIdResponse.examples = examples;
|
|
32
|
-
GetMeterIdResponse.hasParameters = true;
|
|
33
|
-
export default GetMeterIdResponse;
|
|
34
|
-
//# 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;AAEzC,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;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,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IACxD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CACvE,CAAC;IACN,CAAC;;AApBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAkBzC,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,57 +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
|
-
if (typeof this.size !== 'number') {
|
|
42
|
-
throw new Error('unknown or invalid size');
|
|
43
|
-
}
|
|
44
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
45
|
-
const { requestId, meterProfileId, address } = this.parameters;
|
|
46
|
-
buffer.setUint8(requestId);
|
|
47
|
-
buffer.setUint8(meterProfileId || INVALID_METER_PROFILE_ID);
|
|
48
|
-
buffer.setString(address);
|
|
49
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
GetMeterInfoResponse.id = COMMAND_ID;
|
|
53
|
-
GetMeterInfoResponse.directionType = UPLINK;
|
|
54
|
-
GetMeterInfoResponse.examples = examples;
|
|
55
|
-
GetMeterInfoResponse.hasParameters = true;
|
|
56
|
-
export default GetMeterInfoResponse;
|
|
57
|
-
//# 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;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EA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,EAAC,SAAS,EAAE,cAAc,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7D,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;;AApCe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,MAAM,CAAC;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AAkCzC,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,43 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
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
|
-
if (typeof this.size !== 'number') {
|
|
29
|
-
throw new Error('unknown or invalid size');
|
|
30
|
-
}
|
|
31
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
32
|
-
const { requestId, meterProfileIdList } = this.parameters;
|
|
33
|
-
buffer.setUint8(requestId);
|
|
34
|
-
meterProfileIdList.forEach(meterProfileId => buffer.setUint8(meterProfileId));
|
|
35
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
GetMeterProfileIdListResponse.id = COMMAND_ID;
|
|
39
|
-
GetMeterProfileIdListResponse.directionType = UPLINK;
|
|
40
|
-
GetMeterProfileIdListResponse.examples = examples;
|
|
41
|
-
GetMeterProfileIdListResponse.hasParameters = true;
|
|
42
|
-
export default GetMeterProfileIdListResponse;
|
|
43
|
-
//# sourceMappingURL=GetMeterProfileIdListResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterProfileIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterProfileIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2DAA2D;QACjE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,kBAAkB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAuBF,MAAM,6BAA8B,SAAQ,OAAO;IAC/C,YAAqB,UAAoD;QACrE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA0C;QAIrE,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC;IACvE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAEpC,MAAM,kBAAkB,GAAG,CAAC,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtG,OAAO,IAAI,6BAA6B,CAAC,EAAC,SAAS,EAAE,kBAAkB,EAAC,CAAC,CAAC;IAC9E,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,kBAAkB,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAExD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;QAE9E,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAjCe,gCAAE,GAAG,UAAU,CAAC;AAEhB,2CAAa,GAAG,MAAM,CAAC;AAEvB,sCAAQ,GAAG,QAAQ,CAAC;AAEpB,2CAAa,GAAG,IAAI,CAAC;AA+BzC,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterReadoutStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetMeterReadoutStateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAkCrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kCAAkC;QACxC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,kBAAkB,EAAE,GAAG;YACvB,cAAc,EAAE,GAAG;YACnB,eAAe,EAAE,EAAE;YACnB,yBAAyB,EAAE,EAAE;Y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0CAAa,GAAG,MAAM,CAAC;AAEvB,qCAAQ,GAAG,QAAQ,CAAC;AAEpB,0CAAa,GAAG,IAAI,CAAC;AAoDzC,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObisContentByIdResponseParameters extends ICommandParameters {
|
|
4
|
-
content: number;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObisContentByIdResponse extends Command {
|
|
7
|
-
parameters: IGetObisContentByIdResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObisContentByIdResponseParameters);
|
|
9
|
-
static readonly id = 78;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetObisContentByIdResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObisContentByIdResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisContentByIdResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisContentByIdResponse.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gCAAgC;QACtC,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,MAAM;SAClB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBA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../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObisContentByIdStringResponseParameters extends ICommandParameters {
|
|
4
|
-
content: string;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObisContentByIdStringResponse extends Command {
|
|
7
|
-
parameters: IGetObisContentByIdStringResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObisContentByIdStringResponseParameters);
|
|
9
|
-
static readonly id = 79;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetObisContentByIdStringResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObisContentByIdStringResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisContentByIdStringResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisContentByIdStringResponse.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;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,mDAAmD;QACzD,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,cAAc;SAC1B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,2CAA2C,EAAC;KAC5E;CACJ,CAAC;AAuBF,MAAM,gCAAiC,SAAQ,OAAO;IAClD,YAAqB,UAAuD;QACxE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA6C;QAIxE,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,IAAI,CAAC,UAAU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AC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA/Be,2BAAE,GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AA6BzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObisIdListResponseParameters extends ICommandParameters {
|
|
4
|
-
obisIdList: Array<number>;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObisIdListResponse extends Command {
|
|
7
|
-
parameters: IGetObisIdListResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObisIdListResponseParameters);
|
|
9
|
-
static readonly id = 65;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetObisIdListResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObisIdListResponse;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID = 0x41;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetObisIdList with two obis id',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 3,
|
|
10
|
-
obisIdList: [197, 198]
|
|
11
|
-
},
|
|
12
|
-
hex: { header: '41 03', body: '03 c5 c6' }
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
class GetObisIdListResponse extends Command {
|
|
16
|
-
constructor(parameters) {
|
|
17
|
-
super();
|
|
18
|
-
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + parameters.obisIdList.length;
|
|
20
|
-
}
|
|
21
|
-
static fromBytes(data) {
|
|
22
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
-
const requestId = buffer.getUint8();
|
|
24
|
-
const obisIdList = [...new Array(data.length - REQUEST_ID_SIZE)].map(() => buffer.getUint8());
|
|
25
|
-
return new GetObisIdListResponse({ requestId, obisIdList });
|
|
26
|
-
}
|
|
27
|
-
toBytes() {
|
|
28
|
-
if (typeof this.size !== 'number') {
|
|
29
|
-
throw new Error('unknown or invalid size');
|
|
30
|
-
}
|
|
31
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
32
|
-
const { requestId, obisIdList } = this.parameters;
|
|
33
|
-
buffer.setUint8(requestId);
|
|
34
|
-
obisIdList.forEach(obisId => buffer.setUint8(obisId));
|
|
35
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
GetObisIdListResponse.id = COMMAND_ID;
|
|
39
|
-
GetObisIdListResponse.directionType = UPLINK;
|
|
40
|
-
GetObisIdListResponse.examples = examples;
|
|
41
|
-
GetObisIdListResponse.hasParameters = true;
|
|
42
|
-
export default GetObisIdListResponse;
|
|
43
|
-
//# sourceMappingURL=GetObisIdListResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisIdListResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisIdListResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;I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AAC,MAAM,CAAC,CAAC,CAAC;QAEtD,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAjCe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AA+BzC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObisProfile, IObis } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObisInfoResponseParameters extends ICommandParameters {
|
|
4
|
-
obis?: IObis;
|
|
5
|
-
obisProfile?: IObisProfile;
|
|
6
|
-
}
|
|
7
|
-
declare class GetObisInfoResponse extends Command {
|
|
8
|
-
parameters: IGetObisInfoResponseParameters;
|
|
9
|
-
constructor(parameters: IGetObisInfoResponseParameters);
|
|
10
|
-
static readonly id = 75;
|
|
11
|
-
static readonly directionType = 2;
|
|
12
|
-
static readonly examples: TCommandExampleList;
|
|
13
|
-
static readonly hasParameters = true;
|
|
14
|
-
static fromBytes(data: Uint8Array): GetObisInfoResponse;
|
|
15
|
-
toBytes(): Uint8Array;
|
|
16
|
-
}
|
|
17
|
-
export default GetObisInfoResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAA0C,MAAM,8BAA8B,CAAC;AAC9I,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AA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IAAK,IAAI,GAAG,CAAC,EAAG;YACZ,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;YACxB,IAAI,IAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACjD;QAGD,IAAK,IAAI,GAAG,CAAC,EAAG;YACZ,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;SACzC;QAED,OAAO,IAAI,mBAAmB,CAAC,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,CAAC,CAAC;IACnE,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEvD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,IAAK,IAAI,EAAG;YACR,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACxB;QAED,IAAK,WAAW,EAAG;YACf,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;SACtC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AApDe,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,MAAM,CAAC;AAEvB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AAkDzC,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters, IObisProfile } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObisProfileResponseParameters extends ICommandParameters {
|
|
4
|
-
obisProfile: IObisProfile;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObisProfileResponse extends Command {
|
|
7
|
-
parameters: IGetObisProfileResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObisProfileResponseParameters);
|
|
9
|
-
static readonly id = 73;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetObisProfileResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObisProfileResponse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObisProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAAmC,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAUtD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAEzD,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE;gBACT,aAAa,EAAE,GAAG;gBAClB,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,EAAE;gBAClB,KAAK,EAAE;oBACH,WAAW,EAAE,YAAY,CAAC,MAAM;oBAChC,YAAY,EAAE,KAAK;oBACnB,eAAe,EAAE,IAAI;oBACrB,eAAe,EAAE,IAAI;iBACxB;aACJ;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE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Parameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObserverCapabilitiesResponseParameters extends ICommandParameters {
|
|
4
|
-
maxMeterProfilesNumber: number;
|
|
5
|
-
maxMetersNumber: number;
|
|
6
|
-
maxObisProfilesNumber: number;
|
|
7
|
-
isMultiModeSupported: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare class GetObserverCapabilitiesResponse extends Command {
|
|
10
|
-
parameters: IGetObserverCapabilitiesResponseParameters;
|
|
11
|
-
constructor(parameters: IGetObserverCapabilitiesResponseParameters);
|
|
12
|
-
static readonly id = 4;
|
|
13
|
-
static readonly directionType = 2;
|
|
14
|
-
static readonly examples: TCommandExampleList;
|
|
15
|
-
static readonly hasParameters = true;
|
|
16
|
-
static fromBytes(data: Uint8Array): GetObserverCapabilitiesResponse;
|
|
17
|
-
toBytes(): Uint8Array;
|
|
18
|
-
}
|
|
19
|
-
export default GetObserverCapabilitiesResponse;
|
|
@@ -1,53 +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 = 0x04;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetObserverCapabilities',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 7,
|
|
10
|
-
maxMeterProfilesNumber: 8,
|
|
11
|
-
maxMetersNumber: 8,
|
|
12
|
-
maxObisProfilesNumber: 255,
|
|
13
|
-
isMultiModeSupported: true
|
|
14
|
-
},
|
|
15
|
-
hex: {
|
|
16
|
-
header: '04 05',
|
|
17
|
-
body: '07 08 08 ff 01'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
class GetObserverCapabilitiesResponse extends Command {
|
|
22
|
-
constructor(parameters) {
|
|
23
|
-
super();
|
|
24
|
-
this.parameters = parameters;
|
|
25
|
-
this.size = REQUEST_ID_SIZE + 4;
|
|
26
|
-
}
|
|
27
|
-
static fromBytes(data) {
|
|
28
|
-
const [requestId, maxMeterProfilesNumber, maxMetersNumber, maxObisProfilesNumber, isMultiModeSupported] = data;
|
|
29
|
-
return new GetObserverCapabilitiesResponse({
|
|
30
|
-
requestId,
|
|
31
|
-
maxMeterProfilesNumber,
|
|
32
|
-
maxMetersNumber,
|
|
33
|
-
maxObisProfilesNumber,
|
|
34
|
-
isMultiModeSupported: isMultiModeSupported !== 0
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
toBytes() {
|
|
38
|
-
const { parameters } = this;
|
|
39
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([
|
|
40
|
-
parameters.requestId,
|
|
41
|
-
parameters.maxMeterProfilesNumber,
|
|
42
|
-
parameters.maxMetersNumber,
|
|
43
|
-
parameters.maxObisProfilesNumber,
|
|
44
|
-
parameters.isMultiModeSupported ? 1 : 0
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
GetObserverCapabilitiesResponse.id = COMMAND_ID;
|
|
49
|
-
GetObserverCapabilitiesResponse.directionType = UPLINK;
|
|
50
|
-
GetObserverCapabilitiesResponse.examples = examples;
|
|
51
|
-
GetObserverCapabilitiesResponse.hasParameters = true;
|
|
52
|
-
export default GetObserverCapabilitiesResponse;
|
|
53
|
-
//# sourceMappingURL=GetObserverCapabilitiesResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObserverCapabilitiesResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.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,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ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e,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObserverInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObserverInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA+B,MAAM,8BAA8B,CAAC;AAChH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kFAAkF;QACxF,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,UAAU,EAAE,mCAAmC;SAClD;QACD,GAAG,EAAE;YACD,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,sHAAsH;SAC/H;KACJ;CACJ,CAAC;AAqCF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8C;QAC/D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoC;QAI/D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;IAC3E,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC7C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAE5C,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEtC,OAAO,IAAI,uBAAuB,CAAC,EAAC,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAC,CAAC,CAAC;IAClG,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAElF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QACnC,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QACnC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AApCe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAkCzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObserverSingleModeResponseParameters extends ICommandParameters {
|
|
4
|
-
isSingleMode: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObserverSingleModeResponse extends Command {
|
|
7
|
-
parameters: IGetObserverSingleModeResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObserverSingleModeResponseParameters);
|
|
9
|
-
static readonly id = 14;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes([requestId, isSingleMode]: Uint8Array): GetObserverSingleModeResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObserverSingleModeResponse;
|
|
@@ -1,33 +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 = 0x0e;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetObserverSingleMode',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 7,
|
|
10
|
-
isSingleMode: true
|
|
11
|
-
},
|
|
12
|
-
hex: { header: '0e 02', body: '07 01' }
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
class GetObserverSingleModeResponse extends Command {
|
|
16
|
-
constructor(parameters) {
|
|
17
|
-
super();
|
|
18
|
-
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + 4;
|
|
20
|
-
}
|
|
21
|
-
static fromBytes([requestId, isSingleMode]) {
|
|
22
|
-
return new GetObserverSingleModeResponse({ requestId, isSingleMode: isSingleMode !== 0 });
|
|
23
|
-
}
|
|
24
|
-
toBytes() {
|
|
25
|
-
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.isSingleMode ? 1 : 0]));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
GetObserverSingleModeResponse.id = COMMAND_ID;
|
|
29
|
-
GetObserverSingleModeResponse.directionType = UPLINK;
|
|
30
|
-
GetObserverSingleModeResponse.examples = examples;
|
|
31
|
-
GetObserverSingleModeResponse.hasParameters = true;
|
|
32
|
-
export default GetObserverSingleModeResponse;
|
|
33
|
-
//# sourceMappingURL=GetObserverSingleModeResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObserverSingleModeResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObserverSingleModeResponse.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;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,mCAAmC;QACzC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,YAAY,EAAE,IAAI;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAyBF,MAAM,6BAA8B,SAAQ,OAAO;IAC/C,YAAqB,UAAoD;QACrE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA0C;QAGrE,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,YAAY,CAAa;QACpD,OAAO,IAAI,6BAA6B,CAAC,EAAC,SAAS,EAAE,YAAY,EAAE,YAAY,KAAK,CAAC,EAAC,CAAC,CAAC;IAC5F,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACpF,CAAC;IACN,CAAC;;AApBe,gCAAE,GAAG,UAAU,CAAC;AAEhB,2CAAa,GAAG,MAAM,CAAC;AAEvB,sCAAQ,GAAG,QAAQ,CAAC;AAEpB,2CAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
-
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IGetObserverUptimeResponseParameters extends ICommandParameters {
|
|
4
|
-
uptime: number;
|
|
5
|
-
}
|
|
6
|
-
declare class GetObserverUptimeResponse extends Command {
|
|
7
|
-
parameters: IGetObserverUptimeResponseParameters;
|
|
8
|
-
constructor(parameters: IGetObserverUptimeResponseParameters);
|
|
9
|
-
static readonly id = 6;
|
|
10
|
-
static readonly directionType = 2;
|
|
11
|
-
static readonly examples: TCommandExampleList;
|
|
12
|
-
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(data: Uint8Array): GetObserverUptimeResponse;
|
|
14
|
-
toBytes(): Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
export default GetObserverUptimeResponse;
|
|
@@ -1,44 +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 = 0x06;
|
|
5
|
-
const examples = [
|
|
6
|
-
{
|
|
7
|
-
name: 'response to GetObserverUptime',
|
|
8
|
-
parameters: {
|
|
9
|
-
requestId: 7,
|
|
10
|
-
uptime: 4016
|
|
11
|
-
},
|
|
12
|
-
hex: { header: '06 05', body: '07 00 00 0f b0' }
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
class GetObserverUptimeResponse extends Command {
|
|
16
|
-
constructor(parameters) {
|
|
17
|
-
super();
|
|
18
|
-
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + 4;
|
|
20
|
-
}
|
|
21
|
-
static fromBytes(data) {
|
|
22
|
-
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
-
return new GetObserverUptimeResponse({
|
|
24
|
-
requestId: buffer.getUint8(),
|
|
25
|
-
uptime: buffer.getUint32()
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
toBytes() {
|
|
29
|
-
if (typeof this.size !== 'number') {
|
|
30
|
-
throw new Error('unknown or invalid size');
|
|
31
|
-
}
|
|
32
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
|
-
const { requestId, uptime } = this.parameters;
|
|
34
|
-
buffer.setUint8(requestId);
|
|
35
|
-
buffer.setUint32(uptime);
|
|
36
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
GetObserverUptimeResponse.id = COMMAND_ID;
|
|
40
|
-
GetObserverUptimeResponse.directionType = UPLINK;
|
|
41
|
-
GetObserverUptimeResponse.examples = examples;
|
|
42
|
-
GetObserverUptimeResponse.hasParameters = true;
|
|
43
|
-
export default GetObserverUptimeResponse;
|
|
44
|
-
//# sourceMappingURL=GetObserverUptimeResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetObserverUptimeResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetObserverUptimeResponse.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,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,IAAI;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;CACJ,CAAC;AAyBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAAgD;QACjE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAsC;QAGjE,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,yBAAyB,CAAC;YACjC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE;SAC7B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,MAAM,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE5C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadMeterArchiveResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ReadMeterArchiveResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAuC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAGxB,MAAM,mBAAmB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE7D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2DAA2D;QACjE,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,QAAQ,EAAE,SAAS;YACnB,aAAa,EAAE;gBACX,EAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAC;gBAC1B,EAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAC;aAC7B;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,8CAA8C,E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AAE,QAAQ,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3B,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;QAExE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA1Ce,2BAAE,GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|