jooby-codec 2.11.0 → 2.13.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/CommandBinaryBuffer.d.ts +12 -0
- package/dist/analog/CommandBinaryBuffer.js +43 -0
- package/dist/analog/CommandBinaryBuffer.js.map +1 -1
- package/dist/analog/commands/downlink/GetParameter.d.ts +3 -5
- package/dist/analog/commands/downlink/GetParameter.js +20 -7
- package/dist/analog/commands/downlink/GetParameter.js.map +1 -1
- package/dist/analog/commands/uplink/SetParameterResponse.d.ts +16 -0
- package/dist/analog/commands/uplink/SetParameterResponse.js +49 -0
- package/dist/analog/commands/uplink/SetParameterResponse.js.map +1 -0
- package/dist/analog/commands/uplink/index.d.ts +1 -0
- package/dist/analog/commands/uplink/index.js +1 -0
- package/dist/analog/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/Command.js +8 -3
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
- package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{AddObisProfile.js → AddShortNameProfile.js} +17 -20
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +42 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObisContent.d.ts → GetContentByObis.d.ts} +1 -2
- package/dist/obis-observer/commands/downlink/{GetObisContent.js → GetContentByObis.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverInfo.d.ts → GetDate.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDate.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverUptime.d.ts → GetDeviceInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +39 -0
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +44 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/{SetObisId.js → GetShortNames.js} +16 -19
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +57 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +12 -6
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{GetObisIdList.js → SetShortName.js} +18 -15
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +9 -4
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +15 -28
- package/dist/obis-observer/commands/downlink/index.js +15 -28
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.d.ts → GetArchiveProfileResponse.d.ts} +5 -5
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +58 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.d.ts → GetContentByObisResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js} +10 -5
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +44 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentByIdStringResponse.js → GetContentByShortNameStringResponse.js} +17 -12
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +47 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.d.ts → GetDeviceInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js} +18 -13
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +6 -3
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +26 -23
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.d.ts → GetReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +77 -0
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/{GetObisInfoResponse.js → GetShortNameInfoResponse.js} +31 -42
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisProfileResponse.js → GetShortNameProfileResponse.js} +17 -24
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +19 -15
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +20 -16
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +61 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/RebootResponse.js +12 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +17 -9
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +16 -29
- package/dist/obis-observer/commands/uplink/index.js +16 -29
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +12 -31
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{obisIds.d.ts → shortNames.d.ts} +4 -4
- package/dist/obis-observer/constants/shortNames.js +228 -0
- package/dist/obis-observer/constants/shortNames.js.map +1 -0
- package/dist/obis-observer/message.js +12 -4
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +0 -35
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterId.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -19
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -58
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -34
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +0 -48
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -34
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -47
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js +0 -64
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +0 -78
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +0 -50
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -54
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +0 -104
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -41
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +0 -79
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
- package/dist/obis-observer/constants/obisIds.js +0 -228
- package/dist/obis-observer/constants/obisIds.js.map +0 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
|
-
import CommandBinaryBuffer, { REQUEST_ID_SIZE
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
4
|
import { contentTypes } from '../../constants/index.js';
|
|
5
|
-
const COMMAND_ID =
|
|
6
|
-
const COMMAND_SIZE =
|
|
5
|
+
const COMMAND_ID = 0x05;
|
|
6
|
+
const COMMAND_SIZE = 7 + REQUEST_ID_SIZE;
|
|
7
7
|
const examples = [
|
|
8
8
|
{
|
|
9
|
-
name: 'add
|
|
9
|
+
name: 'add profile for short name 32',
|
|
10
10
|
parameters: {
|
|
11
11
|
requestId: 3,
|
|
12
|
-
|
|
13
|
-
obisId: 32,
|
|
12
|
+
shortName: 32,
|
|
14
13
|
obisProfile: {
|
|
15
14
|
capturePeriod: 244,
|
|
16
15
|
sendingPeriod: 132,
|
|
@@ -23,10 +22,10 @@ const examples = [
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
|
-
hex: { header: '
|
|
25
|
+
hex: { header: '05', body: '03 20 00 f4 00 84 26 04' }
|
|
27
26
|
}
|
|
28
27
|
];
|
|
29
|
-
class
|
|
28
|
+
class AddShortNameProfile extends Command {
|
|
30
29
|
constructor(parameters) {
|
|
31
30
|
super();
|
|
32
31
|
this.parameters = parameters;
|
|
@@ -34,26 +33,24 @@ class AddObisProfile extends Command {
|
|
|
34
33
|
}
|
|
35
34
|
static fromBytes(data) {
|
|
36
35
|
const buffer = new CommandBinaryBuffer(data);
|
|
37
|
-
return new
|
|
36
|
+
return new AddShortNameProfile({
|
|
38
37
|
requestId: buffer.getUint8(),
|
|
39
|
-
|
|
40
|
-
obisId: buffer.getUint8(),
|
|
38
|
+
shortName: buffer.getUint8(),
|
|
41
39
|
obisProfile: buffer.getObisProfile()
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
42
|
toBytes() {
|
|
45
43
|
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
46
|
-
const { requestId,
|
|
44
|
+
const { requestId, shortName, obisProfile } = this.parameters;
|
|
47
45
|
buffer.setUint8(requestId);
|
|
48
|
-
buffer.setUint8(
|
|
49
|
-
buffer.setUint8(obisId);
|
|
46
|
+
buffer.setUint8(shortName);
|
|
50
47
|
buffer.setObisProfile(obisProfile);
|
|
51
48
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export default
|
|
59
|
-
//# sourceMappingURL=
|
|
51
|
+
AddShortNameProfile.id = COMMAND_ID;
|
|
52
|
+
AddShortNameProfile.directionType = DOWNLINK;
|
|
53
|
+
AddShortNameProfile.examples = examples;
|
|
54
|
+
AddShortNameProfile.hasParameters = true;
|
|
55
|
+
export default AddShortNameProfile;
|
|
56
|
+
//# sourceMappingURL=AddShortNameProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddShortNameProf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AAE,MAAM,CAAC,cAAc,EAAE;SACvC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE5D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAEnC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA9Be,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,QAAQ,CAAC;AAEzB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AA4BzC,eAAe,mBAAmB,CAAC"}
|
package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.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 GetArchiveProfile 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(data: Uint8Array): GetArchiveProfile;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetArchiveProfile;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x0d;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple request',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '0d', body: '03' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetArchiveProfile extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = COMMAND_SIZE;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
return new GetArchiveProfile({ requestId: buffer.getUint8() });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
if (typeof this.size !== 'number') {
|
|
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());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
GetArchiveProfile.id = COMMAND_ID;
|
|
35
|
+
GetArchiveProfile.directionType = DOWNLINK;
|
|
36
|
+
GetArchiveProfile.examples = examples;
|
|
37
|
+
GetArchiveProfile.hasParameters = true;
|
|
38
|
+
export default GetArchiveProfile;
|
|
39
|
+
//# sourceMappingURL=GetArchiveProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetArchiveProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveProfile.ts"],"names":[],"mappings":"AAA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;AAEzB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAyBzC,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetArchiveStateParameters extends ICommandParameters {
|
|
4
|
+
profile: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetArchiveState extends Command {
|
|
7
|
+
parameters: IGetArchiveStateParameters;
|
|
8
|
+
constructor(parameters: IGetArchiveStateParameters);
|
|
9
|
+
static readonly id = 40;
|
|
10
|
+
static readonly directionType = 1;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetArchiveState;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetArchiveState;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x28;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'get archive state',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 5,
|
|
11
|
+
profile: 1
|
|
12
|
+
},
|
|
13
|
+
hex: { header: '28', body: '05 01' }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
class GetArchiveState extends Command {
|
|
17
|
+
constructor(parameters) {
|
|
18
|
+
super();
|
|
19
|
+
this.parameters = parameters;
|
|
20
|
+
this.size = COMMAND_SIZE;
|
|
21
|
+
}
|
|
22
|
+
static fromBytes(data) {
|
|
23
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
+
return new GetArchiveState({
|
|
25
|
+
requestId: buffer.getUint8(),
|
|
26
|
+
profile: buffer.getUint8()
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
toBytes() {
|
|
30
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
31
|
+
const { requestId, profile } = this.parameters;
|
|
32
|
+
buffer.setUint8(requestId);
|
|
33
|
+
buffer.setUint8(profile);
|
|
34
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
GetArchiveState.id = COMMAND_ID;
|
|
38
|
+
GetArchiveState.directionType = DOWNLINK;
|
|
39
|
+
GetArchiveState.examples = examples;
|
|
40
|
+
GetArchiveState.hasParameters = true;
|
|
41
|
+
export default GetArchiveState;
|
|
42
|
+
//# sourceMappingURL=GetArchiveState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetArchiveState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,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,mBAAmB;QACzB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAAsC;QACvD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA4B;QAGvD,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,eAAe,CAAC;YACvB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;SAC7B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,eAAe,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters, IObis } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
interface IGetContentByObisParameters extends ICommandParameters {
|
|
4
|
-
meterId: number;
|
|
5
4
|
obis: IObis;
|
|
6
5
|
}
|
|
7
6
|
declare class GetContentByObis extends Command {
|
|
8
7
|
parameters: IGetContentByObisParameters;
|
|
9
8
|
constructor(parameters: IGetContentByObisParameters);
|
|
10
|
-
static readonly id =
|
|
9
|
+
static readonly id = 21;
|
|
11
10
|
static readonly directionType = 1;
|
|
12
11
|
static readonly examples: TCommandExampleList;
|
|
13
12
|
static readonly hasParameters = true;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x15;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: 'get content for OBIS code 0.9.1 - local time
|
|
7
|
+
name: 'get content for OBIS code 0.9.1 - local time',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 3,
|
|
10
|
-
meterId: 8,
|
|
11
10
|
obis: {
|
|
12
11
|
c: 0,
|
|
13
12
|
d: 9,
|
|
14
13
|
e: 1
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
|
-
hex: { header: '
|
|
16
|
+
hex: { header: '15', body: '03 02 00 09 01' }
|
|
18
17
|
}
|
|
19
18
|
];
|
|
20
19
|
class GetContentByObis extends Command {
|
|
21
20
|
constructor(parameters) {
|
|
22
21
|
super();
|
|
23
22
|
this.parameters = parameters;
|
|
24
|
-
this.size = REQUEST_ID_SIZE +
|
|
23
|
+
this.size = REQUEST_ID_SIZE + CommandBinaryBuffer.getObisSize(parameters.obis);
|
|
25
24
|
}
|
|
26
25
|
static fromBytes(data) {
|
|
27
26
|
const buffer = new CommandBinaryBuffer(data);
|
|
28
27
|
return new GetContentByObis({
|
|
29
28
|
requestId: buffer.getUint8(),
|
|
30
|
-
meterId: buffer.getUint8(),
|
|
31
29
|
obis: buffer.getObis()
|
|
32
30
|
});
|
|
33
31
|
}
|
|
34
32
|
toBytes() {
|
|
35
|
-
|
|
33
|
+
if (typeof this.size !== 'number') {
|
|
34
|
+
throw new Error('unknown or invalid size');
|
|
35
|
+
}
|
|
36
|
+
const { requestId, obis } = this.parameters;
|
|
36
37
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
37
38
|
buffer.setUint8(requestId);
|
|
38
|
-
buffer.setUint8(meterId);
|
|
39
39
|
buffer.setObis(obis);
|
|
40
40
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
41
41
|
}
|
|
@@ -45,4 +45,4 @@ GetContentByObis.directionType = DOWNLINK;
|
|
|
45
45
|
GetContentByObis.examples = examples;
|
|
46
46
|
GetContentByObis.hasParameters = true;
|
|
47
47
|
export default GetContentByObis;
|
|
48
|
-
//# sourceMappingURL=
|
|
48
|
+
//# sourceMappingURL=GetContentByObis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetContentByObis.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetContentByObis.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAWvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,8CAA8C;QACpD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAC;KAC9C;CACJ,CAAC;AA2BF,MAAM,gBAAiB,SAAQ,OAAO;IAClC,YAAqB,UAAuC;QACxD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA6B;QAGxD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,mBAAmB,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACnF,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,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,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,IAAI,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1C,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,mBAAE,GAAG,UAAU,CAAC;AAEhB,8BAAa,GAAG,QAAQ,CAAC;AAEzB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetContentByShortNameParameters extends ICommandParameters {
|
|
4
|
+
requestId: number;
|
|
5
|
+
shortName: number;
|
|
6
|
+
}
|
|
7
|
+
declare class GetContentByShortName extends Command {
|
|
8
|
+
parameters: IGetContentByShortNameParameters;
|
|
9
|
+
constructor(parameters: IGetContentByShortNameParameters);
|
|
10
|
+
static readonly id = 23;
|
|
11
|
+
static readonly directionType = 1;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetContentByShortName;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetContentByShortName;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x17;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get content for short name 50',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 121,
|
|
10
|
+
shortName: 50
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '17', body: '79 32' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetContentByShortName extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
return new GetContentByShortName({
|
|
24
|
+
requestId: buffer.getUint8(),
|
|
25
|
+
shortName: buffer.getUint8()
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
toBytes() {
|
|
29
|
+
if (typeof this.size !== 'number') {
|
|
30
|
+
throw new Error('unknown or invalid size');
|
|
31
|
+
}
|
|
32
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
33
|
+
const { requestId, shortName } = this.parameters;
|
|
34
|
+
buffer.setUint8(requestId);
|
|
35
|
+
buffer.setUint8(shortName);
|
|
36
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
GetContentByShortName.id = COMMAND_ID;
|
|
40
|
+
GetContentByShortName.directionType = DOWNLINK;
|
|
41
|
+
GetContentByShortName.examples = examples;
|
|
42
|
+
GetContentByShortName.hasParameters = true;
|
|
43
|
+
export default GetContentByShortName;
|
|
44
|
+
//# sourceMappingURL=GetContentByShortName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetContentByShortName.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetContentByShortName.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAYvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,SAAS,EAAE,EAAE;SAChB;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;QAI7D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAWD,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,SAAS,EAAE,MAAM,CAAC,QAAQ,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,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,SAAS,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE/C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA/Be,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AA6BzC,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 GetDate extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 34;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): GetDate;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetDate;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x22;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 8
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '22', body: '08' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetDate extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes(data) {
|
|
21
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
22
|
+
return new GetDate({ requestId: buffer.getUint8() });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
if (typeof this.size !== 'number') {
|
|
26
|
+
throw new Error('unknown or invalid size');
|
|
27
|
+
}
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
GetDate.id = COMMAND_ID;
|
|
35
|
+
GetDate.directionType = DOWNLINK;
|
|
36
|
+
GetDate.examples = examples;
|
|
37
|
+
GetDate.hasParameters = true;
|
|
38
|
+
export default GetDate;
|
|
39
|
+
//# sourceMappingURL=GetDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDate.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetDate.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAGvD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI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3
|
+
declare class GetDeviceInfo extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 32;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): GetDeviceInfo;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetDeviceInfo;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x20;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'simple request',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 7
|
|
10
|
+
},
|
|
11
|
+
hex: { header: '20', body: '07' }
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
class GetDeviceInfo extends Command {
|
|
15
|
+
constructor(parameters) {
|
|
16
|
+
super();
|
|
17
|
+
this.parameters = parameters;
|
|
18
|
+
this.size = REQUEST_ID_SIZE;
|
|
19
|
+
}
|
|
20
|
+
static fromBytes(data) {
|
|
21
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
22
|
+
return new GetDeviceInfo({ requestId: buffer.getUint8() });
|
|
23
|
+
}
|
|
24
|
+
toBytes() {
|
|
25
|
+
if (typeof this.size !== 'number') {
|
|
26
|
+
throw new Error('unknown or invalid size');
|
|
27
|
+
}
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
GetDeviceInfo.id = COMMAND_ID;
|
|
35
|
+
GetDeviceInfo.directionType = DOWNLINK;
|
|
36
|
+
GetDeviceInfo.examples = examples;
|
|
37
|
+
GetDeviceInfo.hasParameters = true;
|
|
38
|
+
export default GetDeviceInfo;
|
|
39
|
+
//# sourceMappingURL=GetDeviceInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDeviceInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetDeviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,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,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;KAClC;CACJ,CAAC;AAsBF,MAAM,aAAc,SAAQ,OAAO;IAC/B,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,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,aAAa,CAAC,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IAC7D,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,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEpC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,gBAAE,GAAG,UAAU,CAAC;AAEhB,2BAAa,GAAG,QAAQ,CAAC;AAEzB,sBAAQ,GAAG,QAAQ,CAAC;AAEpB,2BAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,aAAa,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
declare class GetLorawanInfo extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 30;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): GetLorawanInfo;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export default GetLorawanInfo;
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x1e;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
7
|
name: 'simple request',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 8
|
|
10
10
|
},
|
|
11
|
-
hex: { header: '
|
|
11
|
+
hex: { header: '1e', body: '08' }
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
class GetLorawanInfo extends Command {
|
|
@@ -17,11 +17,18 @@ class GetLorawanInfo extends Command {
|
|
|
17
17
|
this.parameters = parameters;
|
|
18
18
|
this.size = REQUEST_ID_SIZE;
|
|
19
19
|
}
|
|
20
|
-
static fromBytes(
|
|
21
|
-
|
|
20
|
+
static fromBytes(data) {
|
|
21
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
22
|
+
return new GetLorawanInfo({ requestId: buffer.getUint8() });
|
|
22
23
|
}
|
|
23
24
|
toBytes() {
|
|
24
|
-
|
|
25
|
+
if (typeof this.size !== 'number') {
|
|
26
|
+
throw new Error('unknown or invalid size');
|
|
27
|
+
}
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
GetLorawanInfo.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EA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import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
declare class GetLorawanState extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 36;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): GetLorawanState;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
13
|
export default GetLorawanState;
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { DOWNLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x24;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
7
|
name: 'simple request',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 8
|
|
10
10
|
},
|
|
11
|
-
hex: { header: '
|
|
11
|
+
hex: { header: '24', body: '08' }
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
class GetLorawanState extends Command {
|
|
@@ -17,11 +17,18 @@ class GetLorawanState extends Command {
|
|
|
17
17
|
this.parameters = parameters;
|
|
18
18
|
this.size = REQUEST_ID_SIZE;
|
|
19
19
|
}
|
|
20
|
-
static fromBytes(
|
|
21
|
-
|
|
20
|
+
static fromBytes(data) {
|
|
21
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
22
|
+
return new GetLorawanState({ requestId: buffer.getUint8() });
|
|
22
23
|
}
|
|
23
24
|
toBytes() {
|
|
24
|
-
|
|
25
|
+
if (typeof this.size !== 'number') {
|
|
26
|
+
throw new Error('unknown or invalid size');
|
|
27
|
+
}
|
|
28
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
29
|
+
const { requestId } = this.parameters;
|
|
30
|
+
buffer.setUint8(requestId);
|
|
31
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
GetLorawanState.id = COMMAND_ID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,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,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC;KAClC;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,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,eAAe,CAAC,EAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC;IAC/D,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,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEpC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,eAAe,CAAC"}
|
package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.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 GetReadoutState extends Command {
|
|
4
4
|
parameters: ICommandParameters;
|
|
5
5
|
constructor(parameters: ICommandParameters);
|
|
6
|
-
static readonly id =
|
|
6
|
+
static readonly id = 38;
|
|
7
7
|
static readonly directionType = 1;
|
|
8
8
|
static readonly examples: TCommandExampleList;
|
|
9
9
|
static readonly hasParameters = true;
|
|
10
|
-
static fromBytes(
|
|
10
|
+
static fromBytes(data: Uint8Array): GetReadoutState;
|
|
11
11
|
toBytes(): Uint8Array;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default GetReadoutState;
|