jooby-codec 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/obis-observer/Command.js +8 -3
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +7 -7
- package/dist/obis-observer/CommandBinaryBuffer.js +11 -11
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{AddObisProfile.js → AddShortNameProfile.js} +17 -20
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverSingleMode.d.ts → GetArchiveProfile.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +42 -0
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObisContent.d.ts → GetContentByObis.d.ts} +1 -2
- package/dist/obis-observer/commands/downlink/{GetObisContent.js → GetContentByObis.js} +6 -9
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverInfo.d.ts → GetDate.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDate.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetObserverUptime.d.ts → GetDeviceInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +39 -0
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +13 -6
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/{GetObserverCapabilities.d.ts → GetReadoutState.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +39 -0
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{GetMeterId.js → GetShortNameInfo.js} +17 -17
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/{SetObisId.js → GetShortNames.js} +13 -19
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +57 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +12 -6
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/{GetObisIdList.js → SetShortName.js} +15 -15
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +6 -4
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +12 -6
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +15 -28
- package/dist/obis-observer/commands/downlink/index.js +15 -28
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.d.ts → GetArchiveProfileResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterArchiveProfileResponse.js → GetArchiveProfileResponse.js} +4 -4
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +58 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.d.ts → GetContentByObisResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js} +7 -5
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentByIdResponse.js → GetContentByShortNameResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisContentByIdStringResponse.js → GetContentByShortNameStringResponse.js} +14 -12
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetDateResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/{GetMeterDateResponse.js → GetDateResponse.js} +18 -18
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.d.ts → GetDeviceInfoResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js} +15 -13
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -3
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +26 -23
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.d.ts → GetReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/{GetMeterReadoutStateResponse.js → GetReadoutStateResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/{GetObisInfoResponse.js → GetShortNameInfoResponse.js} +14 -13
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetObisProfileResponse.js → GetShortNameProfileResponse.js} +11 -11
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -15
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -16
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/{ReadMeterArchiveResponse.js → ReadArchiveResponse.js} +23 -22
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/RebootResponse.js +12 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +17 -9
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +16 -8
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +16 -29
- package/dist/obis-observer/commands/uplink/index.js +16 -29
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +12 -31
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{obisIds.d.ts → shortNames.d.ts} +4 -4
- package/dist/obis-observer/constants/shortNames.js +228 -0
- package/dist/obis-observer/constants/shortNames.js.map +1 -0
- package/dist/obis-observer/message.js +12 -4
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/AddMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/AddObisProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/AddObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js +0 -35
- package/dist/obis-observer/commands/downlink/GetMeterArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -33
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -34
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -19
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -61
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -34
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/RemoveObisProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -34
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js +0 -48
- package/dist/obis-observer/commands/downlink/SetMeterArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObisId.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetObisId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -34
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -50
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/AddObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js +0 -78
- package/dist/obis-observer/commands/uplink/GetMeterArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -34
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -57
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -44
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/RemoveObisProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetMeterArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObisIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
- package/dist/obis-observer/constants/obisIds.js +0 -228
- package/dist/obis-observer/constants/obisIds.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/ob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,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,8BAAE,GAAG,UAAU,CAAC;AAEhB,yCAAa,GAAG,MAAM,CAAC;AAEvB,oCAAQ,GAAG,QAAQ,CAAC;AAEpB,yCAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,2BAA2B,CAAC"}
|
|
@@ -7,7 +7,7 @@ interface IGetArchiveProfileResponseParameters extends ICommandParameters {
|
|
|
7
7
|
declare class GetArchiveProfileResponse extends Command {
|
|
8
8
|
parameters: IGetArchiveProfileResponseParameters;
|
|
9
9
|
constructor(parameters: IGetArchiveProfileResponseParameters);
|
|
10
|
-
static readonly id =
|
|
10
|
+
static readonly id = 14;
|
|
11
11
|
static readonly directionType = 2;
|
|
12
12
|
static readonly examples: TCommandExampleList;
|
|
13
13
|
static readonly hasParameters = true;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x0e;
|
|
5
5
|
const COMMAND_SIZE = REQUEST_ID_SIZE + 4;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
|
-
name: '
|
|
8
|
+
name: 'default periods',
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 3,
|
|
11
11
|
archiveProfile1Period: 600,
|
|
12
12
|
archiveProfile2Period: 45
|
|
13
13
|
},
|
|
14
|
-
hex: { header: '
|
|
14
|
+
hex: { header: '0e', body: '03 02 58 00 2d' }
|
|
15
15
|
}
|
|
16
16
|
];
|
|
17
17
|
class GetArchiveProfileResponse extends Command {
|
|
@@ -42,4 +42,4 @@ GetArchiveProfileResponse.directionType = UPLINK;
|
|
|
42
42
|
GetArchiveProfileResponse.examples = examples;
|
|
43
43
|
GetArchiveProfileResponse.hasParameters = true;
|
|
44
44
|
export default GetArchiveProfileResponse;
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=GetArchiveProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetArchiveProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetArchiveProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,qBAAqB,EAAE,GAAG;YAC1B,qBAAqB,EAAE,EAAE;SAC5B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAC;KAC9C;CACJ,CAAC;AAwBF,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,qBAAqB,EAAE,MAAM,CAAC,SAAS,EAAE;YACzC,qBAAqB,EAAE,MAAM,CAAC,SAAS,EAAE;SAC5C,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,qBAAqB,EAAE,qBAAqB,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAElF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,qBAAqB,IAAI,CAAC,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,qBAAqB,IAAI,CAAC,CAAC,CAAC;QAE7C,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA9Be,4BAAE,GAAG,UAAU,CAAC;AAEhB,uCAAa,GAAG,MAAM,CAAC;AAEvB,kCAAQ,GAAG,QAAQ,CAAC;AAEpB,uCAAa,GAAG,IAAI,CAAC;AA4BzC,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
+
interface IGetArchiveStateResponseParameters extends ICommandParameters {
|
|
5
|
+
archiveRecordsNumber: number;
|
|
6
|
+
eldestTime2000: TTime2000;
|
|
7
|
+
newestTime2000: TTime2000;
|
|
8
|
+
}
|
|
9
|
+
declare class GetArchiveStateResponse extends Command {
|
|
10
|
+
parameters: IGetArchiveStateResponseParameters;
|
|
11
|
+
constructor(parameters: IGetArchiveStateResponseParameters);
|
|
12
|
+
static readonly id = 41;
|
|
13
|
+
static readonly directionType = 2;
|
|
14
|
+
static readonly examples: TCommandExampleList;
|
|
15
|
+
static readonly hasParameters = true;
|
|
16
|
+
static fromBytes(data: Uint8Array): GetArchiveStateResponse;
|
|
17
|
+
toBytes(): Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
export default GetArchiveStateResponse;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 = 0x29;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + 4 + DATE_TIME_SIZE * 2;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'no archive records',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 2,
|
|
11
|
+
archiveRecordsNumber: 0,
|
|
12
|
+
eldestTime2000: 0,
|
|
13
|
+
newestTime2000: 0
|
|
14
|
+
},
|
|
15
|
+
hex: { header: '29', body: '02 00 00 00 00 00 00 00 00 00 00 00 00' }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: '81 records from 2023.06.27 18:45:02 GMT to 2023.06.28 15:15:02 GMT',
|
|
19
|
+
parameters: {
|
|
20
|
+
requestId: 2,
|
|
21
|
+
archiveRecordsNumber: 81,
|
|
22
|
+
eldestTime2000: 741206702,
|
|
23
|
+
newestTime2000: 741280502
|
|
24
|
+
},
|
|
25
|
+
hex: { header: '29', body: '02 00 00 00 51 2c 2d ea ae 2c 2f 0a f6' }
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
class GetArchiveStateResponse extends Command {
|
|
29
|
+
constructor(parameters) {
|
|
30
|
+
super();
|
|
31
|
+
this.parameters = parameters;
|
|
32
|
+
this.size = COMMAND_SIZE;
|
|
33
|
+
}
|
|
34
|
+
static fromBytes(data) {
|
|
35
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
36
|
+
return new GetArchiveStateResponse({
|
|
37
|
+
requestId: buffer.getUint8(),
|
|
38
|
+
archiveRecordsNumber: buffer.getUint32(),
|
|
39
|
+
eldestTime2000: buffer.getUint32(),
|
|
40
|
+
newestTime2000: buffer.getUint32()
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
toBytes() {
|
|
44
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
45
|
+
const { requestId, archiveRecordsNumber, eldestTime2000, newestTime2000 } = this.parameters;
|
|
46
|
+
buffer.setUint8(requestId);
|
|
47
|
+
buffer.setUint32(archiveRecordsNumber);
|
|
48
|
+
buffer.setUint32(eldestTime2000);
|
|
49
|
+
buffer.setUint32(newestTime2000);
|
|
50
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
GetArchiveStateResponse.id = COMMAND_ID;
|
|
54
|
+
GetArchiveStateResponse.directionType = UPLINK;
|
|
55
|
+
GetArchiveStateResponse.examples = examples;
|
|
56
|
+
GetArchiveStateResponse.hasParameters = true;
|
|
57
|
+
export default GetArchiveStateResponse;
|
|
58
|
+
//# sourceMappingURL=GetArchiveStateResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetArchiveStateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetArchiveStateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAGxB,MAAM,YAAY,GAAG,eAAe,GAAG,CAAC,GAAG,cAAc,GAAG,CAAC,CAAC;AAE9D,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,oBAAoB,EAAE,CAAC;YACvB,cAAc,EAAE,CAAC;YACjB,cAAc,EAAE,C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AAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAhCe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface IGetContentByObisResponseParameters extends ICommandParameters {
|
|
|
6
6
|
declare class GetContentByObisResponse extends Command {
|
|
7
7
|
parameters: IGetContentByObisResponseParameters;
|
|
8
8
|
constructor(parameters: IGetContentByObisResponseParameters);
|
|
9
|
-
static readonly id =
|
|
9
|
+
static readonly id = 22;
|
|
10
10
|
static readonly directionType = 2;
|
|
11
11
|
static readonly examples: TCommandExampleList;
|
|
12
12
|
static readonly hasParameters = true;
|
package/dist/obis-observer/commands/uplink/{GetObisContentResponse.js → GetContentByObisResponse.js}
RENAMED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x16;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: 'response
|
|
7
|
+
name: 'content response',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 2,
|
|
10
10
|
content: '57906635'
|
|
11
11
|
},
|
|
12
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '16', body: '0a 02 08 35 37 39 30 36 36 33 35' }
|
|
13
13
|
}
|
|
14
14
|
];
|
|
15
15
|
class GetContentByObisResponse extends Command {
|
|
16
16
|
constructor(parameters) {
|
|
17
17
|
super();
|
|
18
18
|
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + 1 + this.parameters.content.length;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1 + 1 + this.parameters.content.length;
|
|
20
20
|
}
|
|
21
21
|
static fromBytes(data) {
|
|
22
22
|
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
buffer.seek(buffer.offset + 1);
|
|
23
24
|
const requestId = buffer.getUint8();
|
|
24
25
|
const content = buffer.getString();
|
|
25
26
|
return new GetContentByObisResponse({ requestId, content });
|
|
@@ -30,6 +31,7 @@ class GetContentByObisResponse extends Command {
|
|
|
30
31
|
}
|
|
31
32
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
32
33
|
const { requestId, content } = this.parameters;
|
|
34
|
+
buffer.setUint8(this.size - 1);
|
|
33
35
|
buffer.setUint8(requestId);
|
|
34
36
|
buffer.setString(content);
|
|
35
37
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
@@ -40,4 +42,4 @@ GetContentByObisResponse.directionType = UPLINK;
|
|
|
40
42
|
GetContentByObisResponse.examples = examples;
|
|
41
43
|
GetContentByObisResponse.hasParameters = true;
|
|
42
44
|
export default GetContentByObisResponse;
|
|
43
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=GetContentByObisResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetContentByObisResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetContentByObisResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,UAAU;SACtB;QACD,GAAG,EAAE,EAAC,MAAM,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GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AAmCzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetContentByShortNameResponseParameters extends ICommandParameters {
|
|
4
|
+
content: number;
|
|
5
|
+
}
|
|
6
|
+
declare class GetContentByShortNameResponse extends Command {
|
|
7
|
+
parameters: IGetContentByShortNameResponseParameters;
|
|
8
|
+
constructor(parameters: IGetContentByShortNameResponseParameters);
|
|
9
|
+
static readonly id = 24;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetContentByShortNameResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetContentByShortNameResponse;
|
|
@@ -2,18 +2,18 @@ import roundNumber from '../../../utils/roundNumber.js';
|
|
|
2
2
|
import Command from '../../Command.js';
|
|
3
3
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
4
4
|
import { UPLINK } from '../../constants/directions.js';
|
|
5
|
-
const COMMAND_ID =
|
|
5
|
+
const COMMAND_ID = 0x18;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
|
-
name: 'response
|
|
8
|
+
name: 'simple response',
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 121,
|
|
11
11
|
content: 344.23
|
|
12
12
|
},
|
|
13
|
-
hex: { header: '
|
|
13
|
+
hex: { header: '18', body: '79 43 ac 1d 71' }
|
|
14
14
|
}
|
|
15
15
|
];
|
|
16
|
-
class
|
|
16
|
+
class GetContentByShortNameResponse extends Command {
|
|
17
17
|
constructor(parameters) {
|
|
18
18
|
super();
|
|
19
19
|
this.parameters = parameters;
|
|
@@ -23,7 +23,7 @@ class GetObisContentByIdResponse extends Command {
|
|
|
23
23
|
const buffer = new CommandBinaryBuffer(data);
|
|
24
24
|
const requestId = buffer.getUint8();
|
|
25
25
|
const content = roundNumber(buffer.getFloat32());
|
|
26
|
-
return new
|
|
26
|
+
return new GetContentByShortNameResponse({ requestId, content });
|
|
27
27
|
}
|
|
28
28
|
toBytes() {
|
|
29
29
|
if (typeof this.size !== 'number') {
|
|
@@ -36,9 +36,9 @@ class GetObisContentByIdResponse extends Command {
|
|
|
36
36
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export default
|
|
44
|
-
//# sourceMappingURL=
|
|
39
|
+
GetContentByShortNameResponse.id = COMMAND_ID;
|
|
40
|
+
GetContentByShortNameResponse.directionType = UPLINK;
|
|
41
|
+
GetContentByShortNameResponse.examples = examples;
|
|
42
|
+
GetContentByShortNameResponse.hasParameters = true;
|
|
43
|
+
export default GetContentByShortNameResponse;
|
|
44
|
+
//# sourceMappingURL=GetContentByShortNameResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetContentByShortNameResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetContentByShortNameResponse.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAA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C;AAEpB,2CAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetContentByShortNameStringResponseParameters extends ICommandParameters {
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
declare class GetContentByShortNameStringResponse extends Command {
|
|
7
|
+
parameters: IGetContentByShortNameStringResponseParameters;
|
|
8
|
+
constructor(parameters: IGetContentByShortNameStringResponseParameters);
|
|
9
|
+
static readonly id = 25;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetContentByShortNameStringResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetContentByShortNameStringResponse;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x19;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: 'response
|
|
7
|
+
name: 'simple response',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 121,
|
|
10
10
|
content: 'Total energy'
|
|
11
11
|
},
|
|
12
|
-
hex: { header: '
|
|
12
|
+
hex: { header: '19', body: '0e 79 0c 54 6f 74 61 6c 20 65 6e 65 72 67 79' }
|
|
13
13
|
}
|
|
14
14
|
];
|
|
15
|
-
class
|
|
15
|
+
class GetContentByShortNameStringResponse extends Command {
|
|
16
16
|
constructor(parameters) {
|
|
17
17
|
super();
|
|
18
18
|
this.parameters = parameters;
|
|
19
|
-
this.size = REQUEST_ID_SIZE + this.parameters.content.length + 1;
|
|
19
|
+
this.size = REQUEST_ID_SIZE + 1 + this.parameters.content.length + 1;
|
|
20
20
|
}
|
|
21
21
|
static fromBytes(data) {
|
|
22
22
|
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
buffer.seek(buffer.offset + 1);
|
|
23
24
|
const requestId = buffer.getUint8();
|
|
24
25
|
const content = buffer.getString();
|
|
25
|
-
return new
|
|
26
|
+
return new GetContentByShortNameStringResponse({ requestId, content });
|
|
26
27
|
}
|
|
27
28
|
toBytes() {
|
|
28
29
|
if (typeof this.size !== 'number') {
|
|
@@ -30,14 +31,15 @@ class GetObisContentByIdStringResponse extends Command {
|
|
|
30
31
|
}
|
|
31
32
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
32
33
|
const { requestId, content } = this.parameters;
|
|
34
|
+
buffer.setUint8(this.size - 1);
|
|
33
35
|
buffer.setUint8(requestId);
|
|
34
36
|
buffer.setString(content);
|
|
35
37
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
export default
|
|
43
|
-
//# sourceMappingURL=
|
|
40
|
+
GetContentByShortNameStringResponse.id = COMMAND_ID;
|
|
41
|
+
GetContentByShortNameStringResponse.directionType = UPLINK;
|
|
42
|
+
GetContentByShortNameStringResponse.examples = examples;
|
|
43
|
+
GetContentByShortNameStringResponse.hasParameters = true;
|
|
44
|
+
export default GetContentByShortNameStringResponse;
|
|
45
|
+
//# sourceMappingURL=GetContentByShortNameStringResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetContentByShortNameStringResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetContentByShortNameStringResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OA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AC,UAAU,CAAC;QAG7C,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,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AArCe,sCAAE,GAAG,UAAU,CAAC;AAEhB,iDAAa,GAAG,MAAM,CAAC;AAEvB,4CAAQ,GAAG,QAAQ,CAAC;AAEpB,iDAAa,GAAG,IAAI,CAAC;AAmCzC,eAAe,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
4
|
+
interface IGetDateResponseParameters extends ICommandParameters {
|
|
5
|
+
time2000: TTime2000;
|
|
6
|
+
uptime: number;
|
|
7
|
+
}
|
|
8
|
+
declare class GetDateResponse extends Command {
|
|
9
|
+
parameters: IGetDateResponseParameters;
|
|
10
|
+
constructor(parameters: IGetDateResponseParameters);
|
|
11
|
+
static readonly id = 35;
|
|
12
|
+
static readonly directionType = 2;
|
|
13
|
+
static readonly examples: TCommandExampleList;
|
|
14
|
+
static readonly hasParameters = true;
|
|
15
|
+
static fromBytes(data: Uint8Array): GetDateResponse;
|
|
16
|
+
toBytes(): Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
export default GetDateResponse;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x23;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: '
|
|
7
|
+
name: 'current date and time info',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 7,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
time2000: 741280502,
|
|
11
|
+
uptime: 4016
|
|
12
12
|
},
|
|
13
|
-
hex: { header: '
|
|
13
|
+
hex: { header: '23', body: '07 2c 2f 0a f6 00 00 0f b0' }
|
|
14
14
|
}
|
|
15
15
|
];
|
|
16
|
-
class
|
|
16
|
+
class GetDateResponse extends Command {
|
|
17
17
|
constructor(parameters) {
|
|
18
18
|
super();
|
|
19
19
|
this.parameters = parameters;
|
|
20
|
-
this.size = REQUEST_ID_SIZE +
|
|
20
|
+
this.size = REQUEST_ID_SIZE + DATE_TIME_SIZE + 4;
|
|
21
21
|
}
|
|
22
22
|
static fromBytes(data) {
|
|
23
23
|
const buffer = new CommandBinaryBuffer(data);
|
|
24
|
-
return new
|
|
24
|
+
return new GetDateResponse({
|
|
25
25
|
requestId: buffer.getUint8(),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
time2000: buffer.getUint32(),
|
|
27
|
+
uptime: buffer.getUint32()
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
toBytes() {
|
|
@@ -32,16 +32,16 @@ class GetMeterDateResponse extends Command {
|
|
|
32
32
|
throw new Error('unknown or invalid size');
|
|
33
33
|
}
|
|
34
34
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
35
|
-
const { requestId,
|
|
35
|
+
const { requestId, time2000, uptime } = this.parameters;
|
|
36
36
|
buffer.setUint8(requestId);
|
|
37
|
-
buffer.setUint8(meterId);
|
|
38
37
|
buffer.setUint32(time2000);
|
|
38
|
+
buffer.setUint32(uptime);
|
|
39
39
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export default
|
|
47
|
-
//# sourceMappingURL=
|
|
42
|
+
GetDateResponse.id = COMMAND_ID;
|
|
43
|
+
GetDateResponse.directionType = UPLINK;
|
|
44
|
+
GetDateResponse.examples = examples;
|
|
45
|
+
GetDateResponse.hasParameters = true;
|
|
46
|
+
export default GetDateResponse;
|
|
47
|
+
//# sourceMappingURL=GetDateResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDateResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetDateResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAsB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAYrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,IAAI;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,4BAA4B,EAAC;KAC1D;CACJ,CAAC;AA0BF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAAsC;QACvD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA4B;QAGvD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,cAAc,GAAG,CAAC,CAAC;IACrD,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,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE;YAC5B,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE;SAC7B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEtD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAlCe,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,MAAM,CAAC;AAEvB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAgCzC,eAAe,eAAe,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters, IVersion } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
interface
|
|
3
|
+
interface IGetDeviceInfoResponseParameters extends ICommandParameters {
|
|
4
4
|
softwareVersion: IVersion;
|
|
5
5
|
hardwareVersion: IVersion;
|
|
6
6
|
deviceName: string;
|
|
7
7
|
}
|
|
8
|
-
declare class
|
|
9
|
-
parameters:
|
|
10
|
-
constructor(parameters:
|
|
11
|
-
static readonly id =
|
|
8
|
+
declare class GetDeviceInfoResponse extends Command {
|
|
9
|
+
parameters: IGetDeviceInfoResponseParameters;
|
|
10
|
+
constructor(parameters: IGetDeviceInfoResponseParameters);
|
|
11
|
+
static readonly id = 33;
|
|
12
12
|
static readonly directionType = 2;
|
|
13
13
|
static readonly examples: TCommandExampleList;
|
|
14
14
|
static readonly hasParameters = true;
|
|
15
|
-
static fromBytes(data: Uint8Array):
|
|
15
|
+
static fromBytes(data: Uint8Array): GetDeviceInfoResponse;
|
|
16
16
|
toBytes(): Uint8Array;
|
|
17
17
|
}
|
|
18
|
-
export default
|
|
18
|
+
export default GetDeviceInfoResponse;
|
package/dist/obis-observer/commands/uplink/{GetObserverInfoResponse.js → GetDeviceInfoResponse.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
-
const COMMAND_ID =
|
|
4
|
+
const COMMAND_ID = 0x21;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
7
|
-
name: 'response
|
|
7
|
+
name: 'response from device "Jooby Electra RM LoraWan 1D485 EU"',
|
|
8
8
|
parameters: {
|
|
9
9
|
requestId: 7,
|
|
10
10
|
softwareVersion: {
|
|
@@ -18,24 +18,25 @@ const examples = [
|
|
|
18
18
|
deviceName: 'Jooby Electra RM LoraWan 1D485 EU'
|
|
19
19
|
},
|
|
20
20
|
hex: {
|
|
21
|
-
header: '
|
|
22
|
-
body: '07 00 01 01 01 21 4a 6f 6f 62 79 20 45 6c 65 63 74 72 61 20 52 4d 20 4c 6f 72 61 57 61 6e 20 31 44 34 38 35 20 45 55'
|
|
21
|
+
header: '21',
|
|
22
|
+
body: '27 07 00 01 01 01 21 4a 6f 6f 62 79 20 45 6c 65 63 74 72 61 20 52 4d 20 4c 6f 72 61 57 61 6e 20 31 44 34 38 35 20 45 55'
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
|
-
class
|
|
26
|
+
class GetDeviceInfoResponse extends Command {
|
|
27
27
|
constructor(parameters) {
|
|
28
28
|
super();
|
|
29
29
|
this.parameters = parameters;
|
|
30
|
-
this.size = REQUEST_ID_SIZE + 2 + 2 + 1 + parameters.deviceName.length;
|
|
30
|
+
this.size = 1 + REQUEST_ID_SIZE + 2 + 2 + 1 + parameters.deviceName.length;
|
|
31
31
|
}
|
|
32
32
|
static fromBytes(data) {
|
|
33
33
|
const buffer = new CommandBinaryBuffer(data);
|
|
34
|
+
buffer.seek(buffer.offset + 1);
|
|
34
35
|
const requestId = buffer.getUint8();
|
|
35
36
|
const softwareVersion = buffer.getVersion();
|
|
36
37
|
const hardwareVersion = buffer.getVersion();
|
|
37
38
|
const deviceName = buffer.getString();
|
|
38
|
-
return new
|
|
39
|
+
return new GetDeviceInfoResponse({ requestId, softwareVersion, hardwareVersion, deviceName });
|
|
39
40
|
}
|
|
40
41
|
toBytes() {
|
|
41
42
|
if (typeof this.size !== 'number') {
|
|
@@ -43,6 +44,7 @@ class GetObserverInfoResponse extends Command {
|
|
|
43
44
|
}
|
|
44
45
|
const buffer = new CommandBinaryBuffer(this.size);
|
|
45
46
|
const { requestId, softwareVersion, hardwareVersion, deviceName } = this.parameters;
|
|
47
|
+
buffer.setUint8(this.size - 1);
|
|
46
48
|
buffer.setUint8(requestId);
|
|
47
49
|
buffer.setVersion(softwareVersion);
|
|
48
50
|
buffer.setVersion(hardwareVersion);
|
|
@@ -50,9 +52,9 @@ class GetObserverInfoResponse extends Command {
|
|
|
50
52
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export default
|
|
58
|
-
//# sourceMappingURL=
|
|
55
|
+
GetDeviceInfoResponse.id = COMMAND_ID;
|
|
56
|
+
GetDeviceInfoResponse.directionType = UPLINK;
|
|
57
|
+
GetDeviceInfoResponse.examples = examples;
|
|
58
|
+
GetDeviceInfoResponse.hasParameters = true;
|
|
59
|
+
export default GetDeviceInfoResponse;
|
|
60
|
+
//# sourceMappingURL=GetDeviceInfoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDeviceInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetDeviceInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA+B,MAAM,8BAA8B,CAAC;AAChH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,0DAA0D;QAChE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,eAAe,EAAE;gBACb,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACX;YACD,UAAU,EAAE,mCAAmC;SAClD;QACD,GAAG,EAAE;YACD,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yHAAyH;SAClI;KACJ;CACJ,CAAC;AAqCF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAI7D,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,eAAe,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC;IAC/E,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAG7C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAE/B,MAAM,SAAS,GAAG,MAAM,CA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10
10
|
parameters: IGetLorawanInfoResponseParameters;
|
|
11
11
|
constructor(parameters: IGetLorawanInfoResponseParameters);
|
|
12
|
-
static readonly id =
|
|
12
|
+
static readonly id = 31;
|
|
13
13
|
static readonly directionType = 2;
|
|
14
14
|
static readonly examples: TCommandExampleList;
|
|
15
15
|
static readonly hasParameters = true;
|
|
@@ -2,10 +2,10 @@ import Command from '../../Command.js';
|
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE, EUI_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
4
|
import * as deviceClasses from '../../constants/deviceClasses.js';
|
|
5
|
-
const COMMAND_ID =
|
|
5
|
+
const COMMAND_ID = 0x1f;
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
|
-
name: 'response
|
|
8
|
+
name: 'response from device "001a798816aa5561"',
|
|
9
9
|
parameters: {
|
|
10
10
|
requestId: 8,
|
|
11
11
|
deviceEUI: '00 1a 79 88 16 aa 55 61',
|
|
@@ -13,7 +13,7 @@ const examples = [
|
|
|
13
13
|
deviceClass: deviceClasses.C,
|
|
14
14
|
activationMethod: 1
|
|
15
15
|
},
|
|
16
|
-
hex: { header: '
|
|
16
|
+
hex: { header: '1f', body: '08 00 1a 79 88 16 aa 55 61 00 11 22 33 44 55 66 77 02 01' }
|
|
17
17
|
}
|
|
18
18
|
];
|
|
19
19
|
class GetLorawanInfoResponse extends Command {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetLorawanInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,QAAQ,EAAqB,MAAM,8BAA8B,CAAC;AAChH,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,KAAK,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ters: IGetLorawanStateResponseParameters;
|
|
14
14
|
constructor(parameters: IGetLorawanStateResponseParameters);
|
|
15
|
-
static readonly id =
|
|
15
|
+
static readonly id = 37;
|
|
16
16
|
static readonly directionType = 2;
|
|
17
17
|
static readonly examples: TCommandExampleList;
|
|
18
18
|
static readonly hasParameters = true;
|