jooby-codec 1.15.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog/Command.d.ts +29 -0
- package/dist/analog/Command.js +34 -0
- package/dist/analog/Command.js.map +1 -0
- package/dist/{CommandBinaryBuffer.d.ts → analog/CommandBinaryBuffer.d.ts} +2 -211
- package/dist/{CommandBinaryBuffer.js → analog/CommandBinaryBuffer.js} +6 -80
- package/dist/analog/CommandBinaryBuffer.js.map +1 -0
- package/dist/{UnknownCommand.d.ts → analog/UnknownCommand.d.ts} +0 -8
- package/dist/{UnknownCommand.js → analog/UnknownCommand.js} +0 -5
- package/dist/analog/UnknownCommand.js.map +1 -0
- package/dist/analog/commands/downlink/CorrectTime2000.d.ts +16 -0
- package/dist/{commands → analog/commands}/downlink/CorrectTime2000.js +3 -23
- package/dist/analog/commands/downlink/CorrectTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveDaysMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveDaysMC.js +3 -27
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveEvents.d.ts +17 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveEvents.js +0 -19
- package/dist/analog/commands/downlink/GetArchiveEvents.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveHoursMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveHoursMC.js +3 -22
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetCurrentMC.d.ts +10 -0
- package/dist/analog/commands/downlink/GetCurrentMC.js +23 -0
- package/dist/analog/commands/downlink/GetCurrentMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsArchiveDaysMC.js +3 -24
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsArchiveHoursMC.js +3 -23
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.d.ts +11 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsCurrentMC.js +0 -20
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetLmicInfo.d.ts +10 -0
- package/dist/analog/commands/downlink/GetLmicInfo.js +23 -0
- package/dist/analog/commands/downlink/GetLmicInfo.js.map +1 -0
- package/dist/analog/commands/downlink/GetParameter.d.ts +15 -0
- package/dist/{commands → analog/commands}/downlink/GetParameter.js +0 -20
- package/dist/analog/commands/downlink/GetParameter.js.map +1 -0
- package/dist/analog/commands/downlink/GetStatus.d.ts +11 -0
- package/dist/{commands → analog/commands}/downlink/GetStatus.js +0 -19
- package/dist/analog/commands/downlink/GetStatus.js.map +1 -0
- package/dist/analog/commands/downlink/SetParameter.d.ts +13 -0
- package/dist/{commands → analog/commands}/downlink/SetParameter.js +0 -19
- package/dist/analog/commands/downlink/SetParameter.js.map +1 -0
- package/dist/analog/commands/downlink/SetTime2000.d.ts +16 -0
- package/dist/{commands → analog/commands}/downlink/SetTime2000.js +3 -22
- package/dist/analog/commands/downlink/SetTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/SoftRestart.d.ts +10 -0
- package/dist/analog/commands/downlink/SoftRestart.js +23 -0
- package/dist/analog/commands/downlink/SoftRestart.js.map +1 -0
- package/dist/{commands → analog/commands}/downlink/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/downlink/index.js +0 -5
- package/dist/analog/commands/downlink/index.js.map +1 -0
- package/dist/{commands → analog/commands}/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/index.js +0 -5
- package/dist/analog/commands/index.js.map +1 -0
- package/dist/analog/commands/uplink/CorrectTime2000Response.d.ts +15 -0
- package/dist/{commands → analog/commands}/uplink/CorrectTime2000Response.js +3 -23
- package/dist/analog/commands/uplink/CorrectTime2000Response.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/CurrentMC.d.ts +0 -24
- package/dist/{commands → analog/commands}/uplink/CurrentMC.js +0 -24
- package/dist/analog/commands/uplink/CurrentMC.js.map +1 -0
- package/dist/analog/commands/uplink/DayMC.d.ts +17 -0
- package/dist/{commands → analog/commands}/uplink/DayMC.js +1 -33
- package/dist/analog/commands/uplink/DayMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsCurrentMC.d.ts +16 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsCurrentMC.js +0 -29
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsDayMC.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsDayMC.js +1 -31
- package/dist/analog/commands/uplink/ExAbsDayMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsHourMC.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsHourMC.js +1 -36
- package/dist/analog/commands/uplink/ExAbsHourMC.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveDaysMCResponse.js +1 -33
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveEventsResponse.js +0 -26
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveHoursMCResponse.js +0 -33
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetExAbsArchiveDaysMCResponse.js +1 -33
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/GetExAbsArchiveHoursMCResponse.d.ts +1 -26
- package/dist/{commands → analog/commands}/uplink/GetExAbsArchiveHoursMCResponse.js +1 -31
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetLmicInfoResponse.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/GetLmicInfoResponse.js +4 -29
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetParameterResponse.d.ts +13 -0
- package/dist/{commands → analog/commands}/uplink/GetParameterResponse.js +0 -24
- package/dist/analog/commands/uplink/GetParameterResponse.js.map +1 -0
- package/dist/analog/commands/uplink/HourMC.d.ts +20 -0
- package/dist/{commands → analog/commands}/uplink/HourMC.js +1 -35
- package/dist/analog/commands/uplink/HourMC.js.map +1 -0
- package/dist/analog/commands/uplink/LastEvent.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/LastEvent.js +22 -48
- package/dist/analog/commands/uplink/LastEvent.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/NewEvent.d.ts +1 -42
- package/dist/{commands → analog/commands}/uplink/NewEvent.js +2 -32
- package/dist/analog/commands/uplink/NewEvent.js.map +1 -0
- package/dist/analog/commands/uplink/SetTime2000Response.d.ts +15 -0
- package/dist/{commands → analog/commands}/uplink/SetTime2000Response.js +3 -22
- package/dist/analog/commands/uplink/SetTime2000Response.js.map +1 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.d.ts +10 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.js +23 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.js.map +1 -0
- package/dist/analog/commands/uplink/Status.d.ts +23 -0
- package/dist/{commands → analog/commands}/uplink/Status.js +1 -33
- package/dist/analog/commands/uplink/Status.js.map +1 -0
- package/dist/analog/commands/uplink/Time2000.d.ts +17 -0
- package/dist/{commands → analog/commands}/uplink/Time2000.js +2 -22
- package/dist/analog/commands/uplink/Time2000.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/uplink/index.js +0 -5
- package/dist/analog/commands/uplink/index.js.map +1 -0
- package/dist/analog/constants/deviceParameters.d.ts +18 -0
- package/dist/analog/constants/deviceParameters.js +19 -0
- package/dist/analog/constants/deviceParameters.js.map +1 -0
- package/dist/analog/constants/directions.js.map +1 -0
- package/dist/analog/constants/events.d.ts +21 -0
- package/dist/analog/constants/events.js +22 -0
- package/dist/analog/constants/events.js.map +1 -0
- package/dist/analog/constants/hardwareTypes.d.ts +13 -0
- package/dist/analog/constants/hardwareTypes.js +14 -0
- package/dist/analog/constants/hardwareTypes.js.map +1 -0
- package/dist/analog/constants/index.js.map +1 -0
- package/dist/{constants → analog/constants}/rx2SpreadFactors.d.ts +0 -5
- package/dist/{constants → analog/constants}/rx2SpreadFactors.js +0 -5
- package/dist/analog/constants/rx2SpreadFactors.js.map +1 -0
- package/dist/{utils → analog}/header.d.ts +1 -1
- package/dist/{utils → analog}/header.js +2 -4
- package/dist/analog/header.js.map +1 -0
- package/dist/analog/index.d.ts +3 -0
- package/dist/analog/index.js +4 -0
- package/dist/analog/index.js.map +1 -0
- package/dist/{utils → analog}/message.d.ts +8 -13
- package/dist/{utils → analog}/message.js +13 -32
- package/dist/analog/message.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{Command.d.ts → obis-observer/Command.d.ts} +2 -27
- package/dist/obis-observer/Command.js +33 -0
- package/dist/obis-observer/Command.js.map +1 -0
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +56 -0
- package/dist/obis-observer/CommandBinaryBuffer.js +138 -0
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -0
- package/dist/obis-observer/UnknownCommand.d.ts +12 -0
- package/dist/obis-observer/UnknownCommand.js +17 -0
- package/dist/obis-observer/UnknownCommand.js.map +1 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +55 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.d.ts +13 -0
- 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/GetContentByObis.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetContentByObis.js +48 -0
- 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/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/GetShortNames.js +48 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +58 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/Reboot.js +39 -0
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -0
- 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 +19 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +61 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetShortName.js +51 -0
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/index.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/index.js +14 -0
- package/dist/obis-observer/commands/downlink/index.js.map +1 -0
- package/dist/obis-observer/commands/index.d.ts +2 -0
- package/dist/obis-observer/commands/index.js +3 -0
- package/dist/obis-observer/commands/index.js.map +1 -0
- 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/GetArchiveProfileResponse.d.ts +17 -0
- 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/GetContentByObisResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js +45 -0
- 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/GetContentByShortNameStringResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +74 -0
- 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/GetShortNameProfileResponse.js +54 -0
- 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 +17 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.js +57 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +62 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +17 -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 +13 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.js +36 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -0
- 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 +16 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -0
- 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/index.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/index.js +17 -0
- package/dist/obis-observer/commands/uplink/index.js.map +1 -0
- package/dist/obis-observer/constants/archiveTypes.d.ts +3 -0
- package/dist/obis-observer/constants/archiveTypes.js +4 -0
- package/dist/obis-observer/constants/archiveTypes.js.map +1 -0
- package/dist/obis-observer/constants/contentTypes.d.ts +3 -0
- package/dist/obis-observer/constants/contentTypes.js +4 -0
- package/dist/obis-observer/constants/contentTypes.js.map +1 -0
- package/dist/obis-observer/constants/directions.d.ts +2 -0
- package/dist/obis-observer/constants/directions.js +3 -0
- package/dist/obis-observer/constants/directions.js.map +1 -0
- package/dist/obis-observer/constants/index.d.ts +5 -0
- package/dist/obis-observer/constants/index.js +6 -0
- package/dist/obis-observer/constants/index.js.map +1 -0
- package/dist/obis-observer/constants/parityTypes.d.ts +3 -0
- package/dist/obis-observer/constants/parityTypes.js +4 -0
- package/dist/obis-observer/constants/parityTypes.js.map +1 -0
- package/dist/obis-observer/constants/resultCodes.d.ts +6 -0
- package/dist/obis-observer/constants/resultCodes.js +7 -0
- package/dist/obis-observer/constants/resultCodes.js.map +1 -0
- package/dist/obis-observer/index.d.ts +3 -0
- package/dist/obis-observer/index.js +4 -0
- package/dist/obis-observer/index.js.map +1 -0
- package/dist/obis-observer/message.d.ts +18 -0
- package/dist/obis-observer/message.js +58 -0
- package/dist/obis-observer/message.js.map +1 -0
- package/dist/{BinaryBuffer.d.ts → utils/BinaryBuffer.d.ts} +3 -17
- package/dist/{BinaryBuffer.js → utils/BinaryBuffer.js} +17 -19
- package/dist/utils/BinaryBuffer.js.map +1 -0
- package/dist/utils/bitSet.d.ts +2 -36
- package/dist/utils/bitSet.js +10 -36
- package/dist/utils/bitSet.js.map +1 -1
- package/dist/utils/getBytesFromHex.d.ts +0 -9
- package/dist/utils/getBytesFromHex.js +0 -10
- package/dist/utils/getBytesFromHex.js.map +1 -1
- package/dist/utils/getHexFromBytes.d.ts +1 -25
- package/dist/utils/getHexFromBytes.js +2 -16
- package/dist/utils/getHexFromBytes.js.map +1 -1
- package/dist/utils/getHexFromNumber.d.ts +3 -0
- package/dist/utils/getHexFromNumber.js +20 -0
- package/dist/utils/getHexFromNumber.js.map +1 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/time.d.ts +0 -24
- package/dist/utils/time.js +0 -12
- package/dist/utils/time.js.map +1 -1
- package/package.json +13 -9
- package/readme.md +19 -12
- package/dist/BinaryBuffer.js.map +0 -1
- package/dist/Command.js +0 -89
- package/dist/Command.js.map +0 -1
- package/dist/CommandBinaryBuffer.js.map +0 -1
- package/dist/UnknownCommand.js.map +0 -1
- package/dist/commands/downlink/CorrectTime2000.d.ts +0 -46
- package/dist/commands/downlink/CorrectTime2000.js.map +0 -1
- package/dist/commands/downlink/GetArchiveDaysMC.d.ts +0 -45
- package/dist/commands/downlink/GetArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/GetArchiveEvents.d.ts +0 -40
- package/dist/commands/downlink/GetArchiveEvents.js.map +0 -1
- package/dist/commands/downlink/GetArchiveHoursMC.d.ts +0 -40
- package/dist/commands/downlink/GetArchiveHoursMC.js.map +0 -1
- package/dist/commands/downlink/GetCurrentMC.d.ts +0 -26
- package/dist/commands/downlink/GetCurrentMC.js +0 -42
- package/dist/commands/downlink/GetCurrentMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.d.ts +0 -41
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.d.ts +0 -40
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsCurrentMC.d.ts +0 -27
- package/dist/commands/downlink/GetExAbsCurrentMC.js.map +0 -1
- package/dist/commands/downlink/GetLmicInfo.d.ts +0 -26
- package/dist/commands/downlink/GetLmicInfo.js +0 -42
- package/dist/commands/downlink/GetLmicInfo.js.map +0 -1
- package/dist/commands/downlink/GetParameter.d.ts +0 -38
- package/dist/commands/downlink/GetParameter.js.map +0 -1
- package/dist/commands/downlink/GetStatus.d.ts +0 -27
- package/dist/commands/downlink/GetStatus.js.map +0 -1
- package/dist/commands/downlink/SetParameter.d.ts +0 -30
- package/dist/commands/downlink/SetParameter.js.map +0 -1
- package/dist/commands/downlink/SetTime2000.d.ts +0 -42
- package/dist/commands/downlink/SetTime2000.js.map +0 -1
- package/dist/commands/downlink/SoftRestart.d.ts +0 -26
- package/dist/commands/downlink/SoftRestart.js +0 -42
- package/dist/commands/downlink/SoftRestart.js.map +0 -1
- package/dist/commands/downlink/index.js.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/uplink/CorrectTime2000Response.d.ts +0 -39
- package/dist/commands/uplink/CorrectTime2000Response.js.map +0 -1
- package/dist/commands/uplink/CurrentMC.js.map +0 -1
- package/dist/commands/uplink/DayMC.d.ts +0 -47
- package/dist/commands/uplink/DayMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsCurrentMC.d.ts +0 -41
- package/dist/commands/uplink/ExAbsCurrentMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsDayMC.d.ts +0 -45
- package/dist/commands/uplink/ExAbsDayMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsHourMC.d.ts +0 -69
- package/dist/commands/uplink/ExAbsHourMC.js.map +0 -1
- package/dist/commands/uplink/GetArchiveDaysMCResponse.d.ts +0 -58
- package/dist/commands/uplink/GetArchiveDaysMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetArchiveEventsResponse.d.ts +0 -54
- package/dist/commands/uplink/GetArchiveEventsResponse.js.map +0 -1
- package/dist/commands/uplink/GetArchiveHoursMCResponse.d.ts +0 -50
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +0 -47
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetLmicInfoResponse.d.ts +0 -52
- package/dist/commands/uplink/GetLmicInfoResponse.js.map +0 -1
- package/dist/commands/uplink/GetParameterResponse.d.ts +0 -35
- package/dist/commands/uplink/GetParameterResponse.js.map +0 -1
- package/dist/commands/uplink/HourMC.d.ts +0 -48
- package/dist/commands/uplink/HourMC.js.map +0 -1
- package/dist/commands/uplink/LastEvent.d.ts +0 -54
- package/dist/commands/uplink/LastEvent.js.map +0 -1
- package/dist/commands/uplink/NewEvent.js.map +0 -1
- package/dist/commands/uplink/SetTime2000Response.d.ts +0 -38
- package/dist/commands/uplink/SetTime2000Response.js.map +0 -1
- package/dist/commands/uplink/SoftRestartResponse.d.ts +0 -28
- package/dist/commands/uplink/SoftRestartResponse.js +0 -44
- package/dist/commands/uplink/SoftRestartResponse.js.map +0 -1
- package/dist/commands/uplink/Status.d.ts +0 -55
- package/dist/commands/uplink/Status.js.map +0 -1
- package/dist/commands/uplink/Time2000.d.ts +0 -43
- package/dist/commands/uplink/Time2000.js.map +0 -1
- package/dist/commands/uplink/index.js.map +0 -1
- package/dist/constants/deviceParameters.d.ts +0 -53
- package/dist/constants/deviceParameters.js +0 -54
- package/dist/constants/deviceParameters.js.map +0 -1
- package/dist/constants/directions.js.map +0 -1
- package/dist/constants/events.d.ts +0 -42
- package/dist/constants/events.js +0 -43
- package/dist/constants/events.js.map +0 -1
- package/dist/constants/hardwareTypes.d.ts +0 -108
- package/dist/constants/hardwareTypes.js +0 -109
- package/dist/constants/hardwareTypes.js.map +0 -1
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/rx2SpreadFactors.js.map +0 -1
- package/dist/utils/header.js.map +0 -1
- package/dist/utils/message.js.map +0 -1
- /package/dist/{constants → analog/constants}/directions.d.ts +0 -0
- /package/dist/{constants → analog/constants}/directions.js +0 -0
- /package/dist/{constants → analog/constants}/index.d.ts +0 -0
- /package/dist/{constants → analog/constants}/index.js +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, OBIS_PROFILE_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { archiveTypes, contentTypes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x0c;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'short name info with obis code 0.9.1 and obis profile',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 3,
|
|
11
|
+
obis: {
|
|
12
|
+
c: 0,
|
|
13
|
+
d: 9,
|
|
14
|
+
e: 1
|
|
15
|
+
},
|
|
16
|
+
obisProfile: {
|
|
17
|
+
capturePeriod: 344,
|
|
18
|
+
sendingPeriod: 532,
|
|
19
|
+
sendingCounter: 61,
|
|
20
|
+
flags: {
|
|
21
|
+
contentType: contentTypes.STRING,
|
|
22
|
+
sendOnlyOnChange: 0,
|
|
23
|
+
archiveType: archiveTypes.DETAILED
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
hex: { header: '0c', body: '0b 03 02 00 09 01 01 58 02 14 3d 0a' }
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
class GetShortNameInfoResponse extends Command {
|
|
31
|
+
constructor(parameters) {
|
|
32
|
+
super();
|
|
33
|
+
this.parameters = parameters;
|
|
34
|
+
let size = 1 + REQUEST_ID_SIZE;
|
|
35
|
+
if (parameters.obis) {
|
|
36
|
+
size += CommandBinaryBuffer.getObisSize(parameters.obis) + OBIS_PROFILE_SIZE;
|
|
37
|
+
}
|
|
38
|
+
this.size = size;
|
|
39
|
+
}
|
|
40
|
+
static fromBytes(data) {
|
|
41
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
42
|
+
const size = buffer.getUint8();
|
|
43
|
+
const requestId = buffer.getUint8();
|
|
44
|
+
let obis;
|
|
45
|
+
let obisProfile;
|
|
46
|
+
if (size > REQUEST_ID_SIZE) {
|
|
47
|
+
obis = buffer.getObis();
|
|
48
|
+
obisProfile = buffer.getObisProfile();
|
|
49
|
+
}
|
|
50
|
+
return new GetShortNameInfoResponse({ requestId, obis, obisProfile });
|
|
51
|
+
}
|
|
52
|
+
toBytes() {
|
|
53
|
+
if (typeof this.size !== 'number') {
|
|
54
|
+
throw new Error('unknown or invalid size');
|
|
55
|
+
}
|
|
56
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
57
|
+
const { requestId, obis, obisProfile } = this.parameters;
|
|
58
|
+
buffer.setUint8(this.size - 1);
|
|
59
|
+
buffer.setUint8(requestId);
|
|
60
|
+
if (obis) {
|
|
61
|
+
buffer.setObis(obis);
|
|
62
|
+
}
|
|
63
|
+
if (obisProfile) {
|
|
64
|
+
buffer.setObisProfile(obisProfile);
|
|
65
|
+
}
|
|
66
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
GetShortNameInfoResponse.id = COMMAND_ID;
|
|
70
|
+
GetShortNameInfoResponse.directionType = UPLINK;
|
|
71
|
+
GetShortNameInfoResponse.examples = examples;
|
|
72
|
+
GetShortNameInfoResponse.hasParameters = true;
|
|
73
|
+
export default GetShortNameInfoResponse;
|
|
74
|
+
//# sourceMappingURL=GetShortNameInfoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetShortNameInfoResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetShortNameInfoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAA0C,MAAM,8BAA8B,CAAC;AAC9I,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAWpE,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uDAAuD;QAC7D,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;YACD,WAAW,EAAE;gBACT,aAAa,EAAE,GAAG;gBAClB,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,EAAE;gBAClB,KAAK,EAAE;oBACH,WAAW,EAAE,YAAY,CAAC,MAAM;oBAChC,gBAAgB,EAAE,CAAC;oBACnB,WAAW,EAAE,YAAY,CAAC,QAAQ;iBACrC;aACJ;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAA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AG,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE3B,IAAK,IAAI,EAAG;YACR,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACxB;QAED,IAAK,WAAW,EAAG;YACf,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;SACtC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AAjDe,2BAAE,GAAG,UAAU,CAAC;AAEhB,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,IAAI,CAAC;AA+CzC,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters, IObisProfile } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetShortNameProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
obisProfile: IObisProfile;
|
|
5
|
+
}
|
|
6
|
+
declare class GetShortNameProfileResponse extends Command {
|
|
7
|
+
parameters: IGetShortNameProfileResponseParameters;
|
|
8
|
+
constructor(parameters: IGetShortNameProfileResponseParameters);
|
|
9
|
+
static readonly id = 10;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetShortNameProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetShortNameProfileResponse;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, OBIS_PROFILE_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { archiveTypes, contentTypes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x0a;
|
|
6
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE + OBIS_PROFILE_SIZE;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'profile for short name 121',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 3,
|
|
12
|
+
obisProfile: {
|
|
13
|
+
capturePeriod: 344,
|
|
14
|
+
sendingPeriod: 532,
|
|
15
|
+
sendingCounter: 61,
|
|
16
|
+
flags: {
|
|
17
|
+
contentType: contentTypes.STRING,
|
|
18
|
+
sendOnlyOnChange: 0,
|
|
19
|
+
archiveType: archiveTypes.DETAILED
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
hex: { header: '0a', body: '03 01 58 02 14 3d 0a' }
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
class GetShortNameProfileResponse extends Command {
|
|
27
|
+
constructor(parameters) {
|
|
28
|
+
super();
|
|
29
|
+
this.parameters = parameters;
|
|
30
|
+
this.size = COMMAND_SIZE;
|
|
31
|
+
}
|
|
32
|
+
static fromBytes(data) {
|
|
33
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
34
|
+
const requestId = buffer.getUint8();
|
|
35
|
+
const obisProfile = buffer.getObisProfile();
|
|
36
|
+
return new GetShortNameProfileResponse({ requestId, obisProfile });
|
|
37
|
+
}
|
|
38
|
+
toBytes() {
|
|
39
|
+
if (typeof this.size !== 'number') {
|
|
40
|
+
throw new Error('unknown or invalid size');
|
|
41
|
+
}
|
|
42
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
43
|
+
const { requestId, obisProfile } = this.parameters;
|
|
44
|
+
buffer.setUint8(requestId);
|
|
45
|
+
buffer.setObisProfile(obisProfile);
|
|
46
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
GetShortNameProfileResponse.id = COMMAND_ID;
|
|
50
|
+
GetShortNameProfileResponse.directionType = UPLINK;
|
|
51
|
+
GetShortNameProfileResponse.examples = examples;
|
|
52
|
+
GetShortNameProfileResponse.hasParameters = true;
|
|
53
|
+
export default GetShortNameProfileResponse;
|
|
54
|
+
//# sourceMappingURL=GetShortNameProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetShortNameProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAE,iBAAiB,EAAmC,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAUpE,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAEzD,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE;gBACT,aAAa,EAAE,GAAG;gBAClB,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,EAAE;gBAClB,KAAK,EAAE;oBACH,WAAW,EAAE,YAAY,CAAC,MAAM;oBAChC,gBAAgB,EAAE,CAAC;oBACnB,WAAW,EAAE,YAAY,CAAC,QAAQ;iBACrC;aACJ;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAC;KACpD;CACJ,CAAC;AAgCF,MAAM,2BAA4B,SAAQ,OAAO;IAC7C,YAAqB,UAAkD;QACnE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAwC;QAGnE,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,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;QAE5C,OAAO,IAAI,2BAA2B,CAAC,EAAC,SAAS,EAAE,WAAW,EAAC,CAAC,CAAC;IACrE,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,WAAW,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEjD,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;;AAhCe,8BAAE,GAAG,UAAU,CAAC;AAEhB,yCAAa,GAAG,MAAM,CAAC;AAEvB,oCAAQ,GAAG,QAAQ,CAAC;AAEpB,yCAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IGetShortNamesResponseParameters extends ICommandParameters {
|
|
4
|
+
shortNameList: Array<number>;
|
|
5
|
+
}
|
|
6
|
+
declare class GetShortNamesResponse extends Command {
|
|
7
|
+
parameters: IGetShortNamesResponseParameters;
|
|
8
|
+
constructor(parameters: IGetShortNamesResponseParameters);
|
|
9
|
+
static readonly id = 2;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetShortNamesResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetShortNamesResponse;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x02;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'two short names for OBIS code 0.9.1 - local time',
|
|
8
|
+
parameters: {
|
|
9
|
+
requestId: 3,
|
|
10
|
+
shortNameList: [197, 198]
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '02', body: '03 03 c5 c6' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetShortNamesResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = 1 + REQUEST_ID_SIZE + parameters.shortNameList.length;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
23
|
+
const size = buffer.getUint8();
|
|
24
|
+
const requestId = buffer.getUint8();
|
|
25
|
+
const shortNameList = [...new Array(size - REQUEST_ID_SIZE)].map(() => buffer.getUint8());
|
|
26
|
+
return new GetShortNamesResponse({ requestId, shortNameList });
|
|
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, shortNameList } = this.parameters;
|
|
34
|
+
buffer.setUint8(this.size - 1);
|
|
35
|
+
buffer.setUint8(requestId);
|
|
36
|
+
shortNameList.forEach(shortName => buffer.setUint8(shortName));
|
|
37
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GetShortNamesResponse.id = COMMAND_ID;
|
|
41
|
+
GetShortNamesResponse.directionType = UPLINK;
|
|
42
|
+
GetShortNamesResponse.examples = examples;
|
|
43
|
+
GetShortNamesResponse.hasParameters = true;
|
|
44
|
+
export default GetShortNamesResponse;
|
|
45
|
+
//# sourceMappingURL=GetShortNamesResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetShortNamesResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/GetShortNamesResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kDAAkD;QACxD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;SAC5B;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAC;KAC3C;CACJ,CAAC;AAuBF,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,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { IShortNameFloat } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IObservationReportParameters {
|
|
4
|
+
time: number;
|
|
5
|
+
shortNameList: Array<IShortNameFloat>;
|
|
6
|
+
}
|
|
7
|
+
declare class ObservationReport extends Command {
|
|
8
|
+
parameters: IObservationReportParameters;
|
|
9
|
+
constructor(parameters: IObservationReportParameters);
|
|
10
|
+
static readonly id = 26;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): ObservationReport;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default ObservationReport;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x1a;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get observation report from 2023.12.23 00:00:00 GMT',
|
|
8
|
+
parameters: {
|
|
9
|
+
time: 756604800,
|
|
10
|
+
shortNameList: [
|
|
11
|
+
{ code: 50, content: 34.33 },
|
|
12
|
+
{ code: 56, content: 45.33 }
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
hex: { header: '1a', body: '0e 2d 18 df 80 32 42 09 51 ec 38 42 35 51 ec' }
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
class ObservationReport extends Command {
|
|
19
|
+
constructor(parameters) {
|
|
20
|
+
super();
|
|
21
|
+
this.parameters = parameters;
|
|
22
|
+
let size = 1 + DATE_TIME_SIZE;
|
|
23
|
+
this.parameters.shortNameList.forEach(shortName => {
|
|
24
|
+
size += CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
25
|
+
});
|
|
26
|
+
this.size = size;
|
|
27
|
+
}
|
|
28
|
+
static fromBytes(data) {
|
|
29
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
30
|
+
let size = buffer.getUint8() - DATE_TIME_SIZE;
|
|
31
|
+
const time = buffer.getUint32();
|
|
32
|
+
const shortNameList = [];
|
|
33
|
+
while (size > 0) {
|
|
34
|
+
const shortName = buffer.getShortNameFloat();
|
|
35
|
+
size -= CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
36
|
+
shortNameList.push(shortName);
|
|
37
|
+
}
|
|
38
|
+
return new ObservationReport({ time, shortNameList });
|
|
39
|
+
}
|
|
40
|
+
toBytes() {
|
|
41
|
+
if (typeof this.size !== 'number') {
|
|
42
|
+
throw new Error('unknown or invalid size');
|
|
43
|
+
}
|
|
44
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
45
|
+
const { time, shortNameList } = this.parameters;
|
|
46
|
+
buffer.setUint8(this.size - 1);
|
|
47
|
+
buffer.setUint32(time);
|
|
48
|
+
shortNameList.forEach(shortName => buffer.setShortNameFloat(shortName));
|
|
49
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
ObservationReport.id = COMMAND_ID;
|
|
53
|
+
ObservationReport.directionType = UPLINK;
|
|
54
|
+
ObservationReport.examples = examples;
|
|
55
|
+
ObservationReport.hasParameters = true;
|
|
56
|
+
export default ObservationReport;
|
|
57
|
+
//# sourceMappingURL=ObservationReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationReport.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReport.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,cAAc,EAAkB,MAAM,8BAA8B,CAAC;AAClG,OAA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,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,iBAAiB,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC,CAAC,CAAC;IACxD,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,IAAI,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAG9C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACvB,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;QAExE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA1Ce,oBAAE,GAAG,UAAU,CAAC;AAEhB,+BAAa,GAAG,MAAM,CAAC;AAEvB,0BAAQ,GAAG,QAAQ,CAAC;AAEpB,+BAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { IShortNameString } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IObservationReportStringParameters {
|
|
4
|
+
time: number;
|
|
5
|
+
shortNameList: Array<IShortNameString>;
|
|
6
|
+
}
|
|
7
|
+
declare class ObservationReportString extends Command {
|
|
8
|
+
parameters: IObservationReportStringParameters;
|
|
9
|
+
constructor(parameters: IObservationReportStringParameters);
|
|
10
|
+
static readonly id = 27;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): ObservationReportString;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default ObservationReportString;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x1b;
|
|
5
|
+
const examples = [
|
|
6
|
+
{
|
|
7
|
+
name: 'get observation report from 2023.12.23 00:00:00 GMT',
|
|
8
|
+
parameters: {
|
|
9
|
+
time: 756604800,
|
|
10
|
+
shortNameList: [
|
|
11
|
+
{ code: 50, content: 'reactive power QI, average' },
|
|
12
|
+
{ code: 56, content: 'reactive power QI, total' }
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
hex: {
|
|
16
|
+
header: '1b',
|
|
17
|
+
body: '3a 2d 18 df 80 32 1a 72 65 61 63 74 69 76 65 20 70 6f 77 65'
|
|
18
|
+
+ ' 72 20 51 49 2c 20 61 76 65 72 61 67 65 38 18 72 65 61 63 74 69 76'
|
|
19
|
+
+ ' 65 20 70 6f 77 65 72 20 51 49 2c 20 74 6f 74 61 6c'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
class ObservationReportString extends Command {
|
|
24
|
+
constructor(parameters) {
|
|
25
|
+
super();
|
|
26
|
+
this.parameters = parameters;
|
|
27
|
+
let size = 1 + DATE_TIME_SIZE;
|
|
28
|
+
this.parameters.shortNameList.forEach(shortName => {
|
|
29
|
+
size += CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
30
|
+
});
|
|
31
|
+
this.size = size;
|
|
32
|
+
}
|
|
33
|
+
static fromBytes(data) {
|
|
34
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
35
|
+
let size = buffer.getUint8() - DATE_TIME_SIZE;
|
|
36
|
+
const time = buffer.getUint32();
|
|
37
|
+
const shortNameList = [];
|
|
38
|
+
while (size > 0) {
|
|
39
|
+
const shortName = buffer.getShortNameString();
|
|
40
|
+
size -= CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
41
|
+
shortNameList.push(shortName);
|
|
42
|
+
}
|
|
43
|
+
return new ObservationReportString({ time, shortNameList });
|
|
44
|
+
}
|
|
45
|
+
toBytes() {
|
|
46
|
+
if (typeof this.size !== 'number') {
|
|
47
|
+
throw new Error('unknown or invalid size');
|
|
48
|
+
}
|
|
49
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
50
|
+
const { time, shortNameList } = this.parameters;
|
|
51
|
+
buffer.setUint8(this.size - 1);
|
|
52
|
+
buffer.setUint32(time);
|
|
53
|
+
shortNameList.forEach(shortName => buffer.setShortNameString(shortName));
|
|
54
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
ObservationReportString.id = COMMAND_ID;
|
|
58
|
+
ObservationReportString.directionType = UPLINK;
|
|
59
|
+
ObservationReportString.examples = examples;
|
|
60
|
+
ObservationReportString.hasParameters = true;
|
|
61
|
+
export default ObservationReportString;
|
|
62
|
+
//# sourceMappingURL=ObservationReportString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationReportString.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ObservationReportString.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAmB,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAarD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,q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aAAa,EAAC,CAAC,CAAC;IAC9D,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,IAAI,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAG9C,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACvB,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;QAEzE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA1Ce,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAwCzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters, IShortNameFloat } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IReadArchiveResponseParameters extends ICommandParameters {
|
|
4
|
+
time: number;
|
|
5
|
+
shortNameList: Array<IShortNameFloat>;
|
|
6
|
+
}
|
|
7
|
+
declare class ReadArchiveResponse extends Command {
|
|
8
|
+
parameters: IReadArchiveResponseParameters;
|
|
9
|
+
constructor(parameters: IReadArchiveResponseParameters);
|
|
10
|
+
static readonly id = 18;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): ReadArchiveResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default ReadArchiveResponse;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE, DATE_TIME_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x12;
|
|
5
|
+
const COMMAND_HEADER_SIZE = REQUEST_ID_SIZE + DATE_TIME_SIZE;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'summary archive from 2023-12-23 04:00:00 GMT',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 34,
|
|
11
|
+
time: 756619200,
|
|
12
|
+
shortNameList: [
|
|
13
|
+
{ code: 50, content: 22.27 },
|
|
14
|
+
{ code: 56, content: 89.33 }
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
hex: { header: '12', body: '0f 22 2d 19 17 c0 32 41 b2 28 f6 38 42 b2 a8 f6' }
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
class ReadArchiveResponse extends Command {
|
|
21
|
+
constructor(parameters) {
|
|
22
|
+
super();
|
|
23
|
+
this.parameters = parameters;
|
|
24
|
+
let size = 1 + COMMAND_HEADER_SIZE;
|
|
25
|
+
this.parameters.shortNameList.forEach(shortName => {
|
|
26
|
+
size += CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
27
|
+
});
|
|
28
|
+
this.size = size;
|
|
29
|
+
}
|
|
30
|
+
static fromBytes(data) {
|
|
31
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
32
|
+
let size = buffer.getUint8() - COMMAND_HEADER_SIZE;
|
|
33
|
+
const requestId = buffer.getUint8();
|
|
34
|
+
const time = buffer.getUint32();
|
|
35
|
+
const shortNameList = [];
|
|
36
|
+
while (size) {
|
|
37
|
+
const shortName = buffer.getShortNameFloat();
|
|
38
|
+
size -= CommandBinaryBuffer.getShortNameContentSize(shortName);
|
|
39
|
+
shortNameList.push(shortName);
|
|
40
|
+
}
|
|
41
|
+
return new ReadArchiveResponse({ requestId, time, shortNameList });
|
|
42
|
+
}
|
|
43
|
+
toBytes() {
|
|
44
|
+
if (typeof this.size !== 'number') {
|
|
45
|
+
throw new Error('unknown or invalid size');
|
|
46
|
+
}
|
|
47
|
+
const buffer = new CommandBinaryBuffer(this.size);
|
|
48
|
+
const { requestId, time, shortNameList } = this.parameters;
|
|
49
|
+
buffer.setUint8(this.size - 1);
|
|
50
|
+
buffer.setUint8(requestId);
|
|
51
|
+
buffer.setUint32(time);
|
|
52
|
+
shortNameList.forEach(shortName => buffer.setShortNameFloat(shortName));
|
|
53
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
ReadArchiveResponse.id = COMMAND_ID;
|
|
57
|
+
ReadArchiveResponse.directionType = UPLINK;
|
|
58
|
+
ReadArchiveResponse.examples = examples;
|
|
59
|
+
ReadArchiveResponse.hasParameters = true;
|
|
60
|
+
export default ReadArchiveResponse;
|
|
61
|
+
//# sourceMappingURL=ReadArchiveResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadArchiveResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/ReadArchiveResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAuC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AACvI,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,mBAAmB,GAAG,eAAe,GAAG,cAAc,CAAC;AAE7D,MAAM,QA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AS,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,mBAAmB,CAAC,EAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC,CAAC;IACrE,CAAC;IAGD,OAAO;QACH,IAAK,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAG;YACjC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,EAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAGzD,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,IAAI,CAAC,CAAC;QACvB,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;QAExE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Ce,sBAAE,GAAG,UAAU,CAAC;AAEhB,iCAAa,GAAG,MAAM,CAAC;AAEvB,4BAAQ,GAAG,QAAQ,CAAC;AAEpB,iCAAa,GAAG,IAAI,CAAC;AA0CzC,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
declare class RebootResponse extends Command {
|
|
4
|
+
parameters: ICommandParameters;
|
|
5
|
+
constructor(parameters: ICommandParameters);
|
|
6
|
+
static readonly id = 29;
|
|
7
|
+
static readonly directionType = 2;
|
|
8
|
+
static readonly examples: TCommandExampleList;
|
|
9
|
+
static readonly hasParameters = true;
|
|
10
|
+
static fromBytes(data: Uint8Array): RebootResponse;
|
|
11
|
+
toBytes(): Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export default RebootResponse;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x1d;
|
|
5
|
+
const COMMAND_SIZE = REQUEST_ID_SIZE;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
parameters: {
|
|
10
|
+
requestId: 7
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '1d', body: '07' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class RebootResponse 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 RebootResponse({ requestId: buffer.getUint8() });
|
|
24
|
+
}
|
|
25
|
+
toBytes() {
|
|
26
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
27
|
+
buffer.setUint8(this.parameters.requestId);
|
|
28
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
RebootResponse.id = COMMAND_ID;
|
|
32
|
+
RebootResponse.directionType = UPLINK;
|
|
33
|
+
RebootResponse.examples = examples;
|
|
34
|
+
RebootResponse.hasParameters = true;
|
|
35
|
+
export default RebootResponse;
|
|
36
|
+
//# sourceMappingURL=RebootResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RebootResponse.js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I,CAAC;AAqBzC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface IRemoveShortNameProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class RemoveShortNameProfileResponse extends Command {
|
|
7
|
+
parameters: IRemoveShortNameProfileResponseParameters;
|
|
8
|
+
constructor(parameters: IRemoveShortNameProfileResponseParameters);
|
|
9
|
+
static readonly id = 8;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): RemoveShortNameProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default RemoveShortNameProfileResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
import { resultCodes } from '../../constants/index.js';
|
|
5
|
+
const COMMAND_ID = 0x08;
|
|
6
|
+
const COMMAND_SIZE = 1 + REQUEST_ID_SIZE;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'remove short name profile - not found',
|
|
10
|
+
parameters: {
|
|
11
|
+
requestId: 5,
|
|
12
|
+
resultCode: resultCodes.PROFILE_NOT_FOUND
|
|
13
|
+
},
|
|
14
|
+
hex: { header: '08', body: '05 05' }
|
|
15
|
+
}
|
|
16
|
+
];
|
|
17
|
+
class RemoveShortNameProfileResponse extends Command {
|
|
18
|
+
constructor(parameters) {
|
|
19
|
+
super();
|
|
20
|
+
this.parameters = parameters;
|
|
21
|
+
this.size = COMMAND_SIZE;
|
|
22
|
+
}
|
|
23
|
+
static fromBytes(data) {
|
|
24
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
25
|
+
return new RemoveShortNameProfileResponse({
|
|
26
|
+
requestId: buffer.getUint8(),
|
|
27
|
+
resultCode: buffer.getUint8()
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
toBytes() {
|
|
31
|
+
const buffer = new CommandBinaryBuffer(COMMAND_SIZE);
|
|
32
|
+
const { requestId, resultCode } = this.parameters;
|
|
33
|
+
buffer.setUint8(requestId);
|
|
34
|
+
buffer.setUint8(resultCode);
|
|
35
|
+
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
RemoveShortNameProfileResponse.id = COMMAND_ID;
|
|
39
|
+
RemoveShortNameProfileResponse.directionType = UPLINK;
|
|
40
|
+
RemoveShortNameProfileResponse.examples = examples;
|
|
41
|
+
RemoveShortNameProfileResponse.hasParameters = true;
|
|
42
|
+
export default RemoveShortNameProfileResponse;
|
|
43
|
+
//# sourceMappingURL=RemoveShortNameProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveShortNameProfileResponse.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/uplink/RemoveShortNameProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAWrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,GAAG,eAAe,CAAC;AAEzC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,UAAU,EAAE,WAAW,CAAC,iBAAiB;SAC5C;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC;KACrC;CACJ,CAAC;AAuBF,MAAM,8BAA+B,SAAQ,OAAO;IAChD,YAAqB,UAAqD;QACtE,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2C;QAGtE,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,8BAA8B,CAAC;YACtC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;SAChC,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,EAAC,SAAS,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEhD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAE5B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,iCAAE,GAAG,UAAU,CAAC;AAEhB,4CAAa,GAAG,MAAM,CAAC;AAEvB,uCAAQ,GAAG,QAAQ,CAAC;AAEpB,4CAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
|
+
interface ISetArchiveProfileResponseParameters extends ICommandParameters {
|
|
4
|
+
resultCode: number;
|
|
5
|
+
}
|
|
6
|
+
declare class SetArchiveProfileResponse extends Command {
|
|
7
|
+
parameters: ISetArchiveProfileResponseParameters;
|
|
8
|
+
constructor(parameters: ISetArchiveProfileResponseParameters);
|
|
9
|
+
static readonly id = 16;
|
|
10
|
+
static readonly directionType = 2;
|
|
11
|
+
static readonly examples: TCommandExampleList;
|
|
12
|
+
static readonly hasParameters = true;
|
|
13
|
+
static fromBytes(data: Uint8Array): SetArchiveProfileResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default SetArchiveProfileResponse;
|