jooby-codec 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/obis-observer/Command.js +8 -3
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
- package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{AddObisProfile.js → AddShortNameProfile.js} +17 -20
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +42 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObisContent.d.ts → GetContentByObis.d.ts} +1 -2
- package/dist/obis-observer/commands/downlink/{GetObisContent.js → GetContentByObis.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverInfo.d.ts → GetDate.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDate.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverUptime.d.ts → GetDeviceInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +39 -0
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +44 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/{SetObisId.js → GetShortNames.js} +16 -19
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +57 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +12 -6
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{GetObisIdList.js → SetShortName.js} +18 -15
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +9 -4
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +15 -28
- package/dist/obis-observer/commands/downlink/index.js +15 -28
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.d.ts → GetArchiveProfileResponse.d.ts} +5 -5
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +58 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.d.ts → GetContentByObisResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js} +10 -5
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +44 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentByIdStringResponse.js → GetContentByShortNameStringResponse.js} +17 -12
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +47 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.d.ts → GetDeviceInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js} +18 -13
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +6 -3
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +26 -23
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.d.ts → GetReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +77 -0
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/{GetObisInfoResponse.js → GetShortNameInfoResponse.js} +31 -42
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisProfileResponse.js → GetShortNameProfileResponse.js} +17 -24
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +19 -15
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +20 -16
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +61 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/RebootResponse.js +12 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +17 -9
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +16 -29
- package/dist/obis-observer/commands/uplink/index.js +16 -29
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +12 -31
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{obisIds.d.ts → shortNames.d.ts} +4 -4
- package/dist/obis-observer/constants/shortNames.js +228 -0
- package/dist/obis-observer/constants/shortNames.js.map +1 -0
- package/dist/obis-observer/message.js +12 -4
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +0 -35
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterId.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -19
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -58
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -34
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +0 -48
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -34
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -47
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js +0 -64
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +0 -78
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +0 -50
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -54
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +0 -104
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -41
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +0 -79
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
- package/dist/obis-observer/constants/obisIds.js +0 -228
- package/dist/obis-observer/constants/obisIds.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x1b;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: 'observation report from 2023.12.23 00:00:00 GMT',
|
|
7
|
+
name: 'get observation report from 2023.12.23 00:00:00 GMT',
|
|
8
8
|
parameters: {
|
|
9
9
|
time2000: 756604800,
|
|
10
|
-
|
|
10
|
+
shortNameList: [
|
|
11
11
|
{ code: 50, content: 'reactive power QI, average' },
|
|
12
12
|
{ code: 56, content: 'reactive power QI, total' }
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
15
|
hex: {
|
|
16
|
-
header: '
|
|
17
|
-
body: '2d 18 df 80 32 1a 72 65 61 63 74 69 76 65 20 70 6f 77 65'
|
|
16
|
+
header: '1b',
|
|
17
|
+
body: '3a 2d 18 df 80 32 1a 72 65 61 63 74 69 76 65 20 70 6f 77 65'
|
|
18
18
|
+ ' 72 20 51 49 2c 20 61 76 65 72 61 67 65 38 18 72 65 61 63 74 69 76'
|
|
19
19
|
+ ' 65 20 70 6f 77 65 72 20 51 49 2c 20 74 6f 74 61 6c'
|
|
20
20
|
}
|
|
@@ -24,29 +24,33 @@ class ObservationReportString extends Command {
|
|
|
24
24
|
constructor(parameters) {
|
|
25
25
|
super();
|
|
26
26
|
this.parameters = parameters;
|
|
27
|
-
let size = DATE_TIME_SIZE;
|
|
28
|
-
this.parameters.
|
|
29
|
-
size += CommandBinaryBuffer.
|
|
27
|
+
let size = 1 + DATE_TIME_SIZE;
|
|
28
|
+
this.parameters.shortNameList.forEach(shortName => {
|
|
29
|
+
size += CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
30
30
|
});
|
|
31
31
|
this.size = size;
|
|
32
32
|
}
|
|
33
33
|
static fromBytes(data) {
|
|
34
34
|
const buffer = new CommandBinaryBuffer(data);
|
|
35
|
-
let size =
|
|
35
|
+
let size = buffer.getUint8() - DATE_TIME_SIZE;
|
|
36
36
|
const time2000 = buffer.getUint32();
|
|
37
|
-
const
|
|
37
|
+
const shortNameList = [];
|
|
38
38
|
while (size > 0) {
|
|
39
|
-
const
|
|
40
|
-
size -= CommandBinaryBuffer.
|
|
41
|
-
|
|
39
|
+
const shortName = buffer.getShortNameString();
|
|
40
|
+
size -= CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
41
|
+
shortNameList.push(shortName);
|
|
42
42
|
}
|
|
43
|
-
return new ObservationReportString({ time2000,
|
|
43
|
+
return new ObservationReportString({ time2000, shortNameList });
|
|
44
44
|
}
|
|
45
45
|
toBytes() {
|
|
46
|
+
if (typeof this.size !== 'number') {
|
|
47
|
+
throw new Error('unknown or invalid size');
|
|
48
|
+
}
|
|
46
49
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
47
|
-
const { time2000,
|
|
50
|
+
const { time2000, shortNameList } = this.parameters;
|
|
51
|
+
buffer.setUint8(this.size - 1);
|
|
48
52
|
buffer.setUint32(time2000);
|
|
49
|
-
|
|
53
|
+
shortNameList.forEach(shortName => buffer.setShortNameString(shortName));
|
|
50
54
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
51
55
|
}
|
|
52
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationReportString.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReportString.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAmB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAcrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ObservationReportString.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReportString.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAmB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAcrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,qDAAqD;QAC3D,UAAU,EAAE;YACR,QAAQ,EAAE,SAAS;YACnB,aAAa,EAAE;gBACX,EAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAC;gBACjD,EAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAC;aAClD;SACJ;QACD,GAAG,EAAE;YACD,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,6DAA6D;kBAC7D,oEAAoE;kBACpE,qDAAqD;SAC9D;KACJ;CACJ,CAAC;AAgCF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8C;QAC/D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoC;QAI/D,IAAI,IAAI,GAAG,CAAC,GAAG,cAAc,CAAC;QAE9B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;YAC9C,IAAI,IAAI,mBAAmB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG,cAAc,CAAC;QAC9C,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACpC,MAAM,aAAa,GAAG,EAAE,CAAC;QAEzB,OAAQ,IAAI,GAAG,CAAC,EAAG;YACf,MAAM,SAAS,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;YAE9C,IAAI,IAAI,mBAAmB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;YAC/D,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,uBAAuB,CAAC,EAAC,QAAQ,EAAE,aAAa,EAAC,CAAC,CAAC;IAClE,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,QAAQ,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAGlD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3B,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;QAEzE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA1Ce,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters, IShortNameFloat } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
+
interface IReadArchiveResponseParameters extends ICommandParameters {
|
|
5
|
+
time2000: TTime2000;
|
|
6
|
+
shortNameList: Array<IShortNameFloat>;
|
|
7
|
+
}
|
|
8
|
+
declare class ReadArchiveResponse extends Command {
|
|
9
|
+
parameters: IReadArchiveResponseParameters;
|
|
10
|
+
constructor(parameters: IReadArchiveResponseParameters);
|
|
11
|
+
static readonly id = 18;
|
|
12
|
+
static readonly directionType = 2;
|
|
13
|
+
static readonly examples: TCommandExampleList;
|
|
14
|
+
static readonly hasParameters = true;
|
|
15
|
+
static fromBytes(data: Uint8Array): ReadArchiveResponse;
|
|
16
|
+
toBytes(): Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
export default ReadArchiveResponse;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x12;
|
|
5
|
+
const COMMAND_HEADER_SIZE = REQUEST_ID_SIZE + DATE_TIME_SIZE;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'archive from 2023-12-23 04:00:00 GMT',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 34,
|
|
11
|
+
time2000: 756619200,
|
|
12
|
+
shortNameList: [
|
|
13
|
+
{ code: 50, content: 22.27 },
|
|
14
|
+
{ code: 56, content: 89.33 }
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
hex: { header: '12', body: '0f 22 2d 19 17 c0 32 41 b2 28 f6 38 42 b2 a8 f6' }
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
class ReadArchiveResponse extends Command {
|
|
21
|
+
constructor(parameters) {
|
|
22
|
+
super();
|
|
23
|
+
this.parameters = parameters;
|
|
24
|
+
let size = 1 + COMMAND_HEADER_SIZE;
|
|
25
|
+
this.parameters.shortNameList.forEach(shortName => {
|
|
26
|
+
size += CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
27
|
+
});
|
|
28
|
+
this.size = size;
|
|
29
|
+
}
|
|
30
|
+
static fromBytes(data) {
|
|
31
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
32
|
+
let size = buffer.getUint8() - COMMAND_HEADER_SIZE;
|
|
33
|
+
const requestId = buffer.getUint8();
|
|
34
|
+
const time2000 = buffer.getUint32();
|
|
35
|
+
const shortNameList = [];
|
|
36
|
+
while (size) {
|
|
37
|
+
const shortName = buffer.getShortNameFloat();
|
|
38
|
+
size -= CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
39
|
+
shortNameList.push(shortName);
|
|
40
|
+
}
|
|
41
|
+
return new ReadArchiveResponse({ requestId, time2000, shortNameList });
|
|
42
|
+
}
|
|
43
|
+
toBytes() {
|
|
44
|
+
if (typeof this.size !== 'number') {
|
|
45
|
+
throw new Error('unknown or invalid size');
|
|
46
|
+
}
|
|
47
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
48
|
+
const { requestId, time2000, shortNameList } = this.parameters;
|
|
49
|
+
buffer.setUint8(this.size - 1);
|
|
50
|
+
buffer.setUint8(requestId);
|
|
51
|
+
buffer.setUint32(time2000);
|
|
52
|
+
shortNameList.forEach(shortName => buffer.setShortNameFloat(shortName));
|
|
53
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
ReadArchiveResponse.id = COMMAND_ID;
|
|
57
|
+
ReadArchiveResponse.directionType = UPLINK;
|
|
58
|
+
ReadArchiveResponse.examples = examples;
|
|
59
|
+
ReadArchiveResponse.hasParameters = true;
|
|
60
|
+
export default ReadArchiveResponse;
|
|
61
|
+
//# sourceMappingURL=ReadArchiveResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadArchiveResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ReadArchiveResponse.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,sCAAsC;QAC5C,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,IAAI,EAAE,IAAI,EAAE,iDAAiD,EAAC;KAC/E;CACJ,CAAC;AA6BF,MAAM,mBAAoB,SAAQ,OAAO;IACrC,YAAqB,UAA0C;QAC3D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAgC;QAI3D,IAAI,IAAI,GAAG,CAAC,GAAG,mBAAmB,CAAC;QAGnC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;YAC9C,IAAI,IAAI,mBAAmB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,IAAI,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG,mBAAmB,CAAC;QACnD,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QACpC,MAAM,aAAa,GAAG,EAAE,CAAC;QAEzB,OAAQ,IAAI,EAAG;YACX,MAAM,SAAS,GAAG,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAE7C,IAAI,IAAI,mBAAmB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;YAC/D,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,mBAAmB,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAC,CAAC,CAAC;IACzE,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,QAAQ,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAG7D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC/B,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;;AA5Ce,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,MAAM,CAAC;AAEvB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AA0CzC,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface IRebootResponseParameters extends ICommandParameters {
|
|
4
|
-
resultCode: number;
|
|
5
|
-
}
|
|
6
3
|
declare class RebootResponse extends Command {
|
|
7
|
-
parameters:
|
|
8
|
-
constructor(parameters:
|
|
9
|
-
static readonly id =
|
|
4
|
+
parameters: ICommandParameters;
|
|
5
|
+
constructor(parameters: ICommandParameters);
|
|
6
|
+
static readonly id = 29;
|
|
10
7
|
static readonly directionType = 2;
|
|
11
8
|
static readonly examples: TCommandExampleList;
|
|
12
9
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): RebootResponse;
|
|
14
11
|
toBytes(): Uint8Array;
|
|
15
12
|
}
|
|
16
13
|
export default RebootResponse;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
4
|
+
const COMMAND_ID = 0x1d;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE;
|
|
7
6
|
const examples = [
|
|
8
7
|
{
|
|
9
|
-
name: '
|
|
8
|
+
name: 'simple response',
|
|
10
9
|
parameters: {
|
|
11
|
-
requestId: 7
|
|
12
|
-
resultCode: resultCodes.OK
|
|
10
|
+
requestId: 7
|
|
13
11
|
},
|
|
14
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '1d', body: '07' }
|
|
15
13
|
}
|
|
16
14
|
];
|
|
17
15
|
class RebootResponse extends Command {
|
|
@@ -20,11 +18,14 @@ class RebootResponse extends Command {
|
|
|
20
18
|
this.parameters = parameters;
|
|
21
19
|
this.size = COMMAND_SIZE;
|
|
22
20
|
}
|
|
23
|
-
static fromBytes(
|
|
24
|
-
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
return new RebootResponse({ requestId: buffer.getUint8() });
|
|
25
24
|
}
|
|
26
25
|
toBytes() {
|
|
27
|
-
|
|
26
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
27
|
+
buffer.setUint8(this.parameters.requestId);
|
|
28
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
RebootResponse.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"RebootResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RebootResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAGrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,CAAC;AAErC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;KAClC;CACJ,CAAC;AAsBF,MAAM,cAAe,SAAQ,OAAO;IAChC,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,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IAC9D,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAErD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAE3C,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAvBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,MAAM,CAAC;AAEvB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAqBzC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveShortNameProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveShortNameProfileResponse extends Command {
|
|
7
|
+
parameters: IRemoveShortNameProfileResponseParameters;
|
|
8
|
+
constructor(parameters: IRemoveShortNameProfileResponseParameters);
|
|
9
|
+
static readonly id = 8;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): RemoveShortNameProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveShortNameProfileResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x08;
|
|
6
|
+
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'remove short name profile - not found',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 5,
|
|
12
|
+
resultCode: resultCodes.PROFILE_NOT_FOUND
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '08', body: '05 05' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class RemoveShortNameProfileResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes(data) {
|
|
24
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
25
|
+
return new RemoveShortNameProfileResponse({
|
|
26
|
+
requestId: buffer.getUint8(),
|
|
27
|
+
resultCode: buffer.getUint8()
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
toBytes() {
|
|
31
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
32
|
+
const { requestId, resultCode } = this.parameters;
|
|
33
|
+
buffer.setUint8(requestId);
|
|
34
|
+
buffer.setUint8(resultCode);
|
|
35
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
RemoveShortNameProfileResponse.id = COMMAND_ID;
|
|
39
|
+
RemoveShortNameProfileResponse.directionType = UPLINK;
|
|
40
|
+
RemoveShortNameProfileResponse.examples = examples;
|
|
41
|
+
RemoveShortNameProfileResponse.hasParameters = true;
|
|
42
|
+
export default RemoveShortNameProfileResponse;
|
|
43
|
+
//# sourceMappingURL=RemoveShortNameProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveShortNameProfileResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,iBAAiB;SAC5C;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,8BAA+B,SAAQ,OAAO;IAChD,YAAqB,UAAqD;QACtE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2C;QAGtE,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,8BAA8B,CAAC;YACtC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,iCAAE,GAAG,UAAU,CAAC;AAEhB,4CAAa,GAAG,MAAM,CAAC;AAEvB,uCAAQ,GAAG,QAAQ,CAAC;AAEpB,4CAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetArchiveProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetArchiveProfileResponse extends Command {
|
|
7
|
+
parameters: ISetArchiveProfileResponseParameters;
|
|
8
|
+
constructor(parameters: ISetArchiveProfileResponseParameters);
|
|
9
|
+
static readonly id = 16;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): SetArchiveProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetArchiveProfileResponse;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x10;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'successful request',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 156,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '10', body: '9c 00' }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'failed request',
|
|
18
|
+
parameters: {
|
|
19
|
+
requestId: 49,
|
|
20
|
+
resultCode: resultCodes.PROFILE_NOT_FOUND
|
|
21
|
+
},
|
|
22
|
+
hex: { header: '10', body: '31 05' }
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
class SetArchiveProfileResponse extends Command {
|
|
26
|
+
constructor(parameters) {
|
|
27
|
+
super();
|
|
28
|
+
this.parameters = parameters;
|
|
29
|
+
this.size = COMMAND_SIZE;
|
|
30
|
+
}
|
|
31
|
+
static fromBytes(data) {
|
|
32
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
33
|
+
return new SetArchiveProfileResponse({
|
|
34
|
+
requestId: buffer.getUint8(),
|
|
35
|
+
resultCode: buffer.getUint8()
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
toBytes() {
|
|
39
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
40
|
+
const { requestId, resultCode } = this.parameters;
|
|
41
|
+
buffer.setUint8(requestId);
|
|
42
|
+
buffer.setUint8(resultCode);
|
|
43
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
SetArchiveProfileResponse.id = COMMAND_ID;
|
|
47
|
+
SetArchiveProfileResponse.directionType = UPLINK;
|
|
48
|
+
SetArchiveProfileResponse.examples = examples;
|
|
49
|
+
SetArchiveProfileResponse.hasParameters = true;
|
|
50
|
+
export default SetArchiveProfileResponse;
|
|
51
|
+
//# sourceMappingURL=SetArchiveProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetArchiveProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetArchiveProfileResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;IACD;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,iBAAiB;SAC5C;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAAgD;QACjE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAsC;QAGjE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,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,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,yBAAyB,CAAC"}
|
|
@@ -6,11 +6,11 @@ interface ISetSerialPortResponseParameters extends ICommandParameters {
|
|
|
6
6
|
declare class SetSerialPortResponse extends Command {
|
|
7
7
|
parameters: ISetSerialPortResponseParameters;
|
|
8
8
|
constructor(parameters: ISetSerialPortResponseParameters);
|
|
9
|
-
static readonly id =
|
|
9
|
+
static readonly id = 20;
|
|
10
10
|
static readonly directionType = 2;
|
|
11
11
|
static readonly examples: TCommandExampleList;
|
|
12
12
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
13
|
+
static fromBytes(data: Uint8Array): SetSerialPortResponse;
|
|
14
14
|
toBytes(): Uint8Array;
|
|
15
15
|
}
|
|
16
16
|
export default SetSerialPortResponse;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
4
|
import { resultCodes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID =
|
|
5
|
+
const COMMAND_ID = 0x14;
|
|
6
6
|
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
7
7
|
const examples = [
|
|
8
8
|
{
|
|
9
|
-
name: '
|
|
9
|
+
name: 'set serial port settings - succeed',
|
|
10
10
|
parameters: {
|
|
11
11
|
requestId: 32,
|
|
12
12
|
resultCode: resultCodes.OK
|
|
13
13
|
},
|
|
14
|
-
hex: { header: '
|
|
14
|
+
hex: { header: '14', body: '20 00' }
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
name: '
|
|
17
|
+
name: 'set serial port settings - failed',
|
|
18
18
|
parameters: {
|
|
19
19
|
requestId: 32,
|
|
20
20
|
resultCode: resultCodes.FAILURE
|
|
21
21
|
},
|
|
22
|
-
hex: { header: '
|
|
22
|
+
hex: { header: '14', body: '20 01' }
|
|
23
23
|
}
|
|
24
24
|
];
|
|
25
25
|
class SetSerialPortResponse extends Command {
|
|
@@ -28,11 +28,19 @@ class SetSerialPortResponse extends Command {
|
|
|
28
28
|
this.parameters = parameters;
|
|
29
29
|
this.size = COMMAND_SIZE;
|
|
30
30
|
}
|
|
31
|
-
static fromBytes(
|
|
32
|
-
|
|
31
|
+
static fromBytes(data) {
|
|
32
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
33
|
+
return new SetSerialPortResponse({
|
|
34
|
+
requestId: buffer.getUint8(),
|
|
35
|
+
resultCode: buffer.getUint8()
|
|
36
|
+
});
|
|
33
37
|
}
|
|
34
38
|
toBytes() {
|
|
35
|
-
|
|
39
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
40
|
+
const { requestId, resultCode } = this.parameters;
|
|
41
|
+
buffer.setUint8(requestId);
|
|
42
|
+
buffer.setUint8(resultCode);
|
|
43
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
46
|
SetSerialPortResponse.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetSerialPortResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetSerialPortResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"SetSerialPortResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetSerialPortResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oCAAoC;QAC1C,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;IACD;QACI,IAAI,EAAE,mCAAmC;QACzC,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,OAAO;SAClC;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAG7D,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,qBAAqB,CAAC;YAC7B,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetShortNameResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetShortNameResponse extends Command {
|
|
7
|
+
parameters: ISetShortNameResponseParameters;
|
|
8
|
+
constructor(parameters: ISetShortNameResponseParameters);
|
|
9
|
+
static readonly id = 4;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): SetShortNameResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetShortNameResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x04;
|
|
6
|
+
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'set short name - succeed',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 2,
|
|
12
|
+
resultCode: resultCodes.OK
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '04', body: '02 00' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class SetShortNameResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes(data) {
|
|
24
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
25
|
+
return new SetShortNameResponse({
|
|
26
|
+
requestId: buffer.getUint8(),
|
|
27
|
+
resultCode: buffer.getUint8()
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
toBytes() {
|
|
31
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
32
|
+
const { requestId, resultCode } = this.parameters;
|
|
33
|
+
buffer.setUint8(requestId);
|
|
34
|
+
buffer.setUint8(resultCode);
|
|
35
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
SetShortNameResponse.id = COMMAND_ID;
|
|
39
|
+
SetShortNameResponse.directionType = UPLINK;
|
|
40
|
+
SetShortNameResponse.examples = examples;
|
|
41
|
+
SetShortNameResponse.hasParameters = true;
|
|
42
|
+
export default SetShortNameResponse;
|
|
43
|
+
//# sourceMappingURL=SetShortNameResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetShortNameResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/SetShortNameResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,oBAAqB,SAAQ,OAAO;IACtC,YAAqB,UAA2C;QAC5D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAiC;QAG5D,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,oBAAoB,CAAC;YAC5B,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,MAAM,CAAC;AAEvB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -6,11 +6,11 @@ interface IUpdateImageVerifyResponseParameters extends ICommandParameters {
|
|
|
6
6
|
declare class UpdateImageVerifyResponse extends Command {
|
|
7
7
|
parameters: IUpdateImageVerifyResponseParameters;
|
|
8
8
|
constructor(parameters: IUpdateImageVerifyResponseParameters);
|
|
9
|
-
static readonly id =
|
|
9
|
+
static readonly id = 45;
|
|
10
10
|
static readonly directionType = 2;
|
|
11
11
|
static readonly examples: TCommandExampleList;
|
|
12
12
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
13
|
+
static fromBytes(data: Uint8Array): UpdateImageVerifyResponse;
|
|
14
14
|
toBytes(): Uint8Array;
|
|
15
15
|
}
|
|
16
16
|
export default UpdateImageVerifyResponse;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
4
|
import { resultCodes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID =
|
|
6
|
-
const COMMAND_SIZE =
|
|
5
|
+
const COMMAND_ID = 0x2d;
|
|
6
|
+
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
7
7
|
const examples = [
|
|
8
8
|
{
|
|
9
|
-
name: '
|
|
9
|
+
name: 'success',
|
|
10
10
|
parameters: {
|
|
11
11
|
requestId: 32,
|
|
12
12
|
resultCode: resultCodes.OK
|
|
13
13
|
},
|
|
14
|
-
hex: { header: '
|
|
14
|
+
hex: { header: '2d', body: '20 00' }
|
|
15
15
|
}
|
|
16
16
|
];
|
|
17
17
|
class UpdateImageVerifyResponse extends Command {
|
|
@@ -20,11 +20,19 @@ class UpdateImageVerifyResponse extends Command {
|
|
|
20
20
|
this.parameters = parameters;
|
|
21
21
|
this.size = COMMAND_SIZE;
|
|
22
22
|
}
|
|
23
|
-
static fromBytes(
|
|
24
|
-
|
|
23
|
+
static fromBytes(data) {
|
|
24
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
25
|
+
return new UpdateImageVerifyResponse({
|
|
26
|
+
requestId: buffer.getUint8(),
|
|
27
|
+
resultCode: buffer.getUint8()
|
|
28
|
+
});
|
|
25
29
|
}
|
|
26
30
|
toBytes() {
|
|
27
|
-
|
|
31
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
32
|
+
const { requestId, resultCode } = this.parameters;
|
|
33
|
+
buffer.setUint8(requestId);
|
|
34
|
+
buffer.setUint8(resultCode);
|
|
35
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
38
|
UpdateImageVerifyResponse.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateImageVerifyResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/UpdateImageVerifyResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"UpdateImageVerifyResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/UpdateImageVerifyResponse.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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACR,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,WAAW,CAAC,EAAE;SAC7B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,yBAA0B,SAAQ,OAAO;IAC3C,YAAqB,UAAgD;QACjE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAsC;QAGjE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,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,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,yBAAyB,CAAC"}
|
|
@@ -6,11 +6,11 @@ interface IUpdateImageWriteResponseParameters extends ICommandParameters {
|
|
|
6
6
|
declare class UpdateImageWriteResponse extends Command {
|
|
7
7
|
parameters: IUpdateImageWriteResponseParameters;
|
|
8
8
|
constructor(parameters: IUpdateImageWriteResponseParameters);
|
|
9
|
-
static readonly id =
|
|
9
|
+
static readonly id = 43;
|
|
10
10
|
static readonly directionType = 2;
|
|
11
11
|
static readonly examples: TCommandExampleList;
|
|
12
12
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
13
|
+
static fromBytes(data: Uint8Array): UpdateImageWriteResponse;
|
|
14
14
|
toBytes(): Uint8Array;
|
|
15
15
|
}
|
|
16
16
|
export default UpdateImageWriteResponse;
|