jooby-codec 2.8.2 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog/Command.d.ts +1 -0
- package/dist/analog/Command.js +4 -0
- package/dist/analog/Command.js.map +1 -1
- package/dist/analog/message.d.ts +2 -0
- package/dist/analog/message.js +4 -0
- package/dist/analog/message.js.map +1 -1
- package/dist/obis-observer/Command.d.ts +1 -0
- package/dist/obis-observer/Command.js +7 -8
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
- package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +34 -0
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/{AddShortNameProfile.js → AddObisProfile.js} +20 -17
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +35 -0
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/{GetShortNameInfo.js → GetMeterId.js} +17 -17
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +33 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
- package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -6
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +34 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{SetShortName.js → GetObisIdList.js} +15 -15
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +34 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverUptime.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +19 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +61 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +34 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +34 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +34 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +48 -0
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/{GetShortNames.js → SetObisId.js} +19 -13
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +34 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js +50 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -6
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +28 -15
- package/dist/obis-observer/commands/downlink/index.js +28 -15
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -3
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetArchiveProfileResponse.d.ts → GetMeterArchiveProfileResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetArchiveProfileResponse.js → GetMeterArchiveProfileResponse.js} +4 -4
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +78 -0
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/{GetDateResponse.js → GetMeterDateResponse.js} +18 -18
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +34 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +57 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.js → GetMeterReadoutStateResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetContentByShortNameResponse.js → GetObisContentByIdResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -14
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -7
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/{GetShortNameInfoResponse.js → GetObisInfoResponse.js} +13 -14
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetShortNameProfileResponse.js → GetObisProfileResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.d.ts → GetObserverInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +13 -15
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +44 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +15 -16
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +16 -17
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/{ReadArchiveResponse.js → ReadMeterArchiveResponse.js} +22 -23
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +7 -4
- package/dist/obis-observer/commands/uplink/RebootResponse.js +11 -12
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +9 -17
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +8 -16
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +29 -16
- package/dist/obis-observer/commands/uplink/index.js +29 -16
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +31 -12
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
- package/dist/obis-observer/constants/obisIds.js +228 -0
- package/dist/obis-observer/constants/obisIds.js.map +1 -0
- package/dist/obis-observer/message.d.ts +2 -0
- package/dist/obis-observer/message.js +8 -12
- package/dist/obis-observer/message.js.map +1 -1
- package/dist/utils/getBase64FromBytes.d.ts +2 -0
- package/dist/utils/getBase64FromBytes.js +5 -0
- package/dist/utils/getBase64FromBytes.js.map +1 -0
- package/dist/utils/getBytesFromBase64.d.ts +2 -0
- package/dist/utils/getBytesFromBase64.js +2 -0
- package/dist/utils/getBytesFromBase64.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +0 -42
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +0 -58
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
- package/dist/obis-observer/constants/shortNames.js +0 -228
- package/dist/obis-observer/constants/shortNames.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetObisInfoParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId: number;
|
|
5
|
+
obisId: number;
|
|
6
|
+
}
|
|
7
|
+
declare class GetObisInfo extends Command {
|
|
8
|
+
parameters: IGetObisInfoParameters;
|
|
9
|
+
constructor(parameters: IGetObisInfoParameters);
|
|
10
|
+
static readonly id = 74;
|
|
11
|
+
static readonly directionType = 1;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes([requestId, meterProfileId, obisId]: Uint8Array): GetObisInfo;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetObisInfo;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x4a;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get info for obisId 44 in meter profile 7',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 3,
|
|
10
|
+
meterProfileId: 7,
|
|
11
|
+
obisId: 44
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '4a 03', body: '03 07 2c' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetObisInfo extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = REQUEST_ID_SIZE + 1 + 1;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes([requestId, meterProfileId, obisId]) {
|
|
23
|
+
return new GetObisInfo({ requestId, meterProfileId, obisId });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterProfileId, this.parameters.obisId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
GetObisInfo.id = COMMAND_ID;
|
|
30
|
+
GetObisInfo.directionType = DOWNLINK;
|
|
31
|
+
GetObisInfo.examples = examples;
|
|
32
|
+
GetObisInfo.hasParameters = true;
|
|
33
|
+
export default GetObisInfo;
|
|
34
|
+
//# sourceMappingURL=GetObisInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2CAA2C;QACjD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,MAAM,EAAE,EAAE;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,WAAY,SAAQ,OAAO;IAC7B,YAAqB,UAAkC;QACnD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAwB;QAInD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAa;QAC9D,OAAO,IAAI,WAAW,CAAC,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAC,CAAC,CAAC;IAChE,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,cAAc,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CACtG,CAAC;IACN,CAAC;;AApBe,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetObisProfileParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId: number;
|
|
5
|
+
obisId: number;
|
|
6
|
+
}
|
|
7
|
+
declare class GetObisProfile extends Command {
|
|
8
|
+
parameters: IGetObisProfileParameters;
|
|
9
|
+
constructor(parameters: IGetObisProfileParameters);
|
|
10
|
+
static readonly id = 72;
|
|
11
|
+
static readonly directionType = 1;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes([requestId, meterProfileId, obisId]: Uint8Array): GetObisProfile;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetObisProfile;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x48;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1 + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get OBIS profile for obisId 128 in meter profile 3',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 4,
|
|
11
|
+
meterProfileId: 3,
|
|
12
|
+
obisId: 128
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '48 03', body: '04 03 80' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class GetObisProfile extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes([requestId, meterProfileId, obisId]) {
|
|
24
|
+
return new GetObisProfile({ requestId, meterProfileId, obisId });
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterProfileId, this.parameters.obisId]));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
GetObisProfile.id = COMMAND_ID;
|
|
31
|
+
GetObisProfile.directionType = DOWNLINK;
|
|
32
|
+
GetObisProfile.examples = examples;
|
|
33
|
+
GetObisProfile.hasParameters = true;
|
|
34
|
+
export default GetObisProfile;
|
|
35
|
+
//# sourceMappingURL=GetObisProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObisProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oDAAoD;QAC1D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,MAAM,EAAE,GAAG;SACd;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAAqC;QACtD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2B;QAGtD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,EAAE,MAAM,CAAa;QAC9D,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAE,cAAc,EAAE,MAAM,EAAC,CAAC,CAAC;IACnE,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,cAAc,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CACtG,CAAC;IACN,CAAC;;AApBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,QAAQ,CAAC;AAEzB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,cAAc,CAAC"}
|
package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
declare class
|
|
3
|
+
declare class GetObserverCapabilities extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 3;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetObserverCapabilities;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetObserverCapabilities;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x03;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '03 01', body: '07' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetObserverCapabilities extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetObserverCapabilities({ requestId });
|
|
22
|
+
}
|
|
23
|
+
toBytes() {
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
GetObserverCapabilities.id = COMMAND_ID;
|
|
28
|
+
GetObserverCapabilities.directionType = DOWNLINK;
|
|
29
|
+
GetObserverCapabilities.examples = examples;
|
|
30
|
+
GetObserverCapabilities.hasParameters = true;
|
|
31
|
+
export default GetObserverCapabilities;
|
|
32
|
+
//# sourceMappingURL=GetObserverCapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObserverCapabilities.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,uBAAuB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IACpD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,QAAQ,CAAC;AAEzB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAezC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
declare class
|
|
3
|
+
declare class GetObserverInfo extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 1;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetObserverInfo;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetObserverInfo;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x01;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '01 01', body: '07' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetObserverInfo extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetObserverInfo({ requestId });
|
|
22
|
+
}
|
|
23
|
+
toBytes() {
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
GetObserverInfo.id = COMMAND_ID;
|
|
28
|
+
GetObserverInfo.directionType = DOWNLINK;
|
|
29
|
+
GetObserverInfo.examples = examples;
|
|
30
|
+
GetObserverInfo.hasParameters = true;
|
|
31
|
+
export default GetObserverInfo;
|
|
32
|
+
//# sourceMappingURL=GetObserverInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObserverInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,eAAe,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC5C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAezC,eAAe,eAAe,CAAC"}
|
package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
declare class
|
|
3
|
+
declare class GetObserverSingleMode extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
6
|
static readonly id = 13;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetObserverSingleMode;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetObserverSingleMode;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x0d;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '0d 01', body: '07' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetObserverSingleMode extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetObserverSingleMode({ requestId });
|
|
22
|
+
}
|
|
23
|
+
toBytes() {
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
GetObserverSingleMode.id = COMMAND_ID;
|
|
28
|
+
GetObserverSingleMode.directionType = DOWNLINK;
|
|
29
|
+
GetObserverSingleMode.examples = examples;
|
|
30
|
+
GetObserverSingleMode.hasParameters = true;
|
|
31
|
+
export default GetObserverSingleMode;
|
|
32
|
+
//# sourceMappingURL=GetObserverSingleMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObserverSingleMode.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverSingleMode.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,qBAAqB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAezC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
declare class
|
|
3
|
+
declare class GetObserverUptime extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 5;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): GetObserverUptime;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetObserverUptime;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x05;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '05 01', body: '07' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetObserverUptime extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes([requestId]) {
|
|
21
|
+
return new GetObserverUptime({ requestId });
|
|
22
|
+
}
|
|
23
|
+
toBytes() {
|
|
24
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
GetObserverUptime.id = COMMAND_ID;
|
|
28
|
+
GetObserverUptime.directionType = DOWNLINK;
|
|
29
|
+
GetObserverUptime.examples = examples;
|
|
30
|
+
GetObserverUptime.hasParameters = true;
|
|
31
|
+
export default GetObserverUptime;
|
|
32
|
+
//# sourceMappingURL=GetObserverUptime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetObserverUptime.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverUptime.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,iBAAkB,SAAQ,OAAO;IACnC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,iBAAiB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC9C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,QAAQ,CAAC;AAEzB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAezC,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
+
interface IReadMeterArchiveParameters extends ICommandParameters {
|
|
5
|
+
meterId: number;
|
|
6
|
+
archiveType: number;
|
|
7
|
+
time2000: TTime2000;
|
|
8
|
+
}
|
|
9
|
+
declare class ReadMeterArchive extends Command {
|
|
10
|
+
parameters: IReadMeterArchiveParameters;
|
|
11
|
+
constructor(parameters: IReadMeterArchiveParameters);
|
|
12
|
+
static readonly id = 127;
|
|
13
|
+
static readonly directionType = 1;
|
|
14
|
+
static readonly examples: TCommandExampleList;
|
|
15
|
+
static readonly hasParameters = true;
|
|
16
|
+
static fromBytes(data: Uint8Array): ReadMeterArchive;
|
|
17
|
+
toBytes(): Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
export default ReadMeterArchive;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x7f;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 2 + DATE_TIME_SIZE;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'request to read archive 1 from 2023.12.23 00:00:00 GMT for meter 5',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 33,
|
|
11
|
+
meterId: 5,
|
|
12
|
+
archiveType: 1,
|
|
13
|
+
time2000: 756604800
|
|
14
|
+
},
|
|
15
|
+
hex: { header: '7f 07', body: '21 05 01 2d 18 df 80' }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'request archive 2 from 2023-12-23 04:00:00 GMT for meter 6',
|
|
19
|
+
parameters: {
|
|
20
|
+
requestId: 34,
|
|
21
|
+
meterId: 6,
|
|
22
|
+
archiveType: 2,
|
|
23
|
+
time2000: 756619200
|
|
24
|
+
},
|
|
25
|
+
hex: { header: '7f 07', body: '22 06 02 2d 19 17 c0' }
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
class ReadMeterArchive extends Command {
|
|
29
|
+
constructor(parameters) {
|
|
30
|
+
super();
|
|
31
|
+
this.parameters = parameters;
|
|
32
|
+
this.size = COMMAND_SIZE;
|
|
33
|
+
}
|
|
34
|
+
static fromBytes(data) {
|
|
35
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
36
|
+
return new ReadMeterArchive({
|
|
37
|
+
requestId: buffer.getUint8(),
|
|
38
|
+
meterId: buffer.getUint8(),
|
|
39
|
+
archiveType: buffer.getUint8(),
|
|
40
|
+
time2000: buffer.getUint32()
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
toBytes() {
|
|
44
|
+
if (typeof this.size !== 'number') {
|
|
45
|
+
throw new Error('unknown or invalid size');
|
|
46
|
+
}
|
|
47
|
+
const { requestId, meterId, archiveType, time2000 } = this.parameters;
|
|
48
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
49
|
+
buffer.setUint8(requestId);
|
|
50
|
+
buffer.setUint8(meterId);
|
|
51
|
+
buffer.setUint8(archiveType);
|
|
52
|
+
buffer.setUint32(time2000);
|
|
53
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
ReadMeterArchive.id = COMMAND_ID;
|
|
57
|
+
ReadMeterArchive.directionType = DOWNLINK;
|
|
58
|
+
ReadMeterArchive.examples = examples;
|
|
59
|
+
ReadMeterArchive.hasParameters = true;
|
|
60
|
+
export default ReadMeterArchive;
|
|
61
|
+
//# sourceMappingURL=ReadMeterArchive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadMeterArchive.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/ReadMeterArchive.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAcvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,cAAc,CAAC;AAE1D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oEAAoE;QAC1E,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,CAAC;YACd,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACvD;IACD;QACI,IAAI,EAAE,4DAA4D;QAClE,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,CAAC;YACd,QAAQ,EAAE,SAAS;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACvD;CACJ,CAAC;AAyBF,MAAM,gBAAiB,SAAQ,OAAO;IAClC,YAAqB,UAAuC;QACxD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA6B;QAGxD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,gBAAgB,CAAC;YACxB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC1B,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC9B,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE;SAC/B,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,EAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QACpE,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC7B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AApCe,mBAAE,GAAG,UAAU,CAAC;AAEhB,8BAAa,GAAG,QAAQ,CAAC;AAEzB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,IAAI,CAAC;AAkCzC,eAAe,gBAAgB,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
declare class Reboot extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 25;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes([requestId]: Uint8Array): Reboot;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export default Reboot;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x19;
|
|
5
5
|
const COMMAND_SIZE = REQUEST_ID_SIZE;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
@@ -9,7 +9,7 @@ const examples = [
|
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 3
|
|
11
11
|
},
|
|
12
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '19 01', body: '03' }
|
|
13
13
|
}
|
|
14
14
|
];
|
|
15
15
|
class Reboot extends Command {
|
|
@@ -18,17 +18,11 @@ class Reboot extends Command {
|
|
|
18
18
|
this.parameters = parameters;
|
|
19
19
|
this.size = COMMAND_SIZE;
|
|
20
20
|
}
|
|
21
|
-
static fromBytes(
|
|
22
|
-
|
|
23
|
-
return new Reboot({ requestId: buffer.getUint8() });
|
|
21
|
+
static fromBytes([requestId]) {
|
|
22
|
+
return new Reboot({ requestId });
|
|
24
23
|
}
|
|
25
24
|
toBytes() {
|
|
26
|
-
|
|
27
|
-
throw new Error('unknown or invalid size');
|
|
28
|
-
}
|
|
29
|
-
const buffer = new CommandBinaryBuffer(this.size);
|
|
30
|
-
buffer.setUint8(this.parameters.requestId);
|
|
31
|
-
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
25
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId]));
|
|
32
26
|
}
|
|
33
27
|
}
|
|
34
28
|
Reboot.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reboot.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/Reboot.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"Reboot.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/Reboot.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,CAAC;AAErC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,MAAO,SAAQ,OAAO;IACxB,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,MAAM,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IACnC,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpF,CAAC;;AAjBe,SAAE,GAAG,UAAU,CAAC;AAEhB,oBAAa,GAAG,QAAQ,CAAC;AAEzB,eAAQ,GAAG,QAAQ,CAAC;AAEpB,oBAAa,GAAG,IAAI,CAAC;AAezC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveMeterParameters extends ICommandParameters {
|
|
4
|
+
meterId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveMeter extends Command {
|
|
7
|
+
parameters: IRemoveMeterParameters;
|
|
8
|
+
constructor(parameters: IRemoveMeterParameters);
|
|
9
|
+
static readonly id = 114;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterId]: Uint8Array): RemoveMeter;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveMeter;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x72;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'remove meter 17',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
meterId: 17
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '72 02', body: '03 11' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class RemoveMeter 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 RemoveMeter({ requestId, meterId });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
RemoveMeter.id = COMMAND_ID;
|
|
30
|
+
RemoveMeter.directionType = DOWNLINK;
|
|
31
|
+
RemoveMeter.examples = examples;
|
|
32
|
+
RemoveMeter.hasParameters = true;
|
|
33
|
+
export default RemoveMeter;
|
|
34
|
+
//# sourceMappingURL=RemoveMeter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMeter.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveMeter.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,EAAE;SACd;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,WAAY,SAAQ,OAAO;IAC7B,YAAqB,UAAkC;QACnD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAwB;QAGnD,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,WAAW,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IACjD,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,cAAE,GAAG,UAAU,CAAC;AAEhB,yBAAa,GAAG,QAAQ,CAAC;AAEzB,oBAAQ,GAAG,QAAQ,CAAC;AAEpB,yBAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveMeterProfileParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveMeterProfile extends Command {
|
|
7
|
+
parameters: IRemoveMeterProfileParameters;
|
|
8
|
+
constructor(parameters: IRemoveMeterProfileParameters);
|
|
9
|
+
static readonly id = 98;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes([requestId, meterProfileId]: Uint8Array): RemoveMeterProfile;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveMeterProfile;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x62;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'remove meter profile 17',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
meterProfileId: 17
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '62 02', body: '03 11' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class RemoveMeterProfile extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = COMMAND_SIZE;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes([requestId, meterProfileId]) {
|
|
23
|
+
return new RemoveMeterProfile({ requestId, meterProfileId });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
return Command.toBytes(COMMAND_ID, new Uint8Array([this.parameters.requestId, this.parameters.meterProfileId]));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
RemoveMeterProfile.id = COMMAND_ID;
|
|
30
|
+
RemoveMeterProfile.directionType = DOWNLINK;
|
|
31
|
+
RemoveMeterProfile.examples = examples;
|
|
32
|
+
RemoveMeterProfile.hasParameters = true;
|
|
33
|
+
export default RemoveMeterProfile;
|
|
34
|
+
//# sourceMappingURL=RemoveMeterProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/RemoveMeterProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,EAAE;SACrB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,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,cAAc,CAAa;QACtD,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,cAAc,EAAC,CAAC,CAAC;IAC/D,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CACV,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAC9D,CACJ,CAAC;IACN,CAAC;;AAtBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,QAAQ,CAAC;AAEzB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveObisProfileParameters extends ICommandParameters {
|
|
4
|
+
meterProfileId: number;
|
|
5
|
+
obisId: number;
|
|
6
|
+
}
|
|
7
|
+
declare class RemoveObisProfile extends Command {
|
|
8
|
+
parameters: IRemoveObisProfileParameters;
|
|
9
|
+
constructor(parameters: IRemoveObisProfileParameters);
|
|
10
|
+
static readonly id = 70;
|
|
11
|
+
static readonly directionType = 1;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes([requestId, meterProfileId, obisId]: Uint8Array): RemoveObisProfile;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default RemoveObisProfile;
|