jooby-codec 7.3.0 → 7.5.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/commands/downlink/correctTime2000.js +2 -3
- package/dist/analog/commands/downlink/correctTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/getArchiveDays.js +2 -3
- package/dist/analog/commands/downlink/getArchiveDays.js.map +1 -1
- package/dist/analog/commands/downlink/getArchiveDaysMc.js +2 -3
- package/dist/analog/commands/downlink/getArchiveDaysMc.js.map +1 -1
- package/dist/analog/commands/downlink/getArchiveEvents.js +2 -3
- package/dist/analog/commands/downlink/getArchiveEvents.js.map +1 -1
- package/dist/analog/commands/downlink/getArchiveHours.js +2 -3
- package/dist/analog/commands/downlink/getArchiveHours.js.map +1 -1
- package/dist/analog/commands/downlink/getArchiveHoursMc.js +2 -3
- package/dist/analog/commands/downlink/getArchiveHoursMc.js.map +1 -1
- package/dist/analog/commands/downlink/getBatteryStatus.js +2 -3
- package/dist/analog/commands/downlink/getBatteryStatus.js.map +1 -1
- package/dist/analog/commands/downlink/getChannelsTypes.js +2 -3
- package/dist/analog/commands/downlink/getChannelsTypes.js.map +1 -1
- package/dist/analog/commands/downlink/getCurrent.js +2 -3
- package/dist/analog/commands/downlink/getCurrent.js.map +1 -1
- package/dist/analog/commands/downlink/getCurrentMc.js +2 -3
- package/dist/analog/commands/downlink/getCurrentMc.js.map +1 -1
- package/dist/analog/commands/downlink/getExAbsArchiveDaysMc.js +2 -3
- package/dist/analog/commands/downlink/getExAbsArchiveDaysMc.js.map +1 -1
- package/dist/analog/commands/downlink/getExAbsCurrentMc.js +2 -3
- package/dist/analog/commands/downlink/getExAbsCurrentMc.js.map +1 -1
- package/dist/analog/commands/downlink/getLmicInfo.js +2 -3
- package/dist/analog/commands/downlink/getLmicInfo.js.map +1 -1
- package/dist/analog/commands/downlink/getSignalQuality.js +2 -3
- package/dist/analog/commands/downlink/getSignalQuality.js.map +1 -1
- package/dist/analog/commands/downlink/getStatus.js +2 -3
- package/dist/analog/commands/downlink/getStatus.js.map +1 -1
- package/dist/analog/commands/downlink/getTime2000.js +2 -3
- package/dist/analog/commands/downlink/getTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/setTime2000.js +2 -3
- package/dist/analog/commands/downlink/setTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/softRestart.js +2 -3
- package/dist/analog/commands/downlink/softRestart.js.map +1 -1
- package/dist/analog/commands/downlink/updateRun.js +2 -3
- package/dist/analog/commands/downlink/updateRun.js.map +1 -1
- package/dist/analog/commands/downlink/usWaterMeterCommand.d.ts +2 -0
- package/dist/analog/commands/downlink/usWaterMeterCommand.js +5 -0
- package/dist/analog/commands/downlink/usWaterMeterCommand.js.map +1 -1
- package/dist/analog/commands/downlink/verifyImage.js +2 -3
- package/dist/analog/commands/downlink/verifyImage.js.map +1 -1
- package/dist/analog/commands/downlink/writeImage.d.ts +2 -1
- package/dist/analog/commands/downlink/writeImage.js +5 -1
- package/dist/analog/commands/downlink/writeImage.js.map +1 -1
- package/dist/analog/commands/uplink/correctTime2000.js +2 -3
- package/dist/analog/commands/uplink/correctTime2000.js.map +1 -1
- package/dist/analog/commands/uplink/getBatteryStatus.js +2 -0
- package/dist/analog/commands/uplink/getBatteryStatus.js.map +1 -1
- package/dist/analog/commands/uplink/getLmicInfo.js +2 -3
- package/dist/analog/commands/uplink/getLmicInfo.js.map +1 -1
- package/dist/analog/commands/uplink/setTime2000.js +2 -3
- package/dist/analog/commands/uplink/setTime2000.js.map +1 -1
- package/dist/analog/commands/uplink/signalQuality.js +3 -4
- package/dist/analog/commands/uplink/signalQuality.js.map +1 -1
- package/dist/analog/commands/uplink/softRestart.js +2 -3
- package/dist/analog/commands/uplink/softRestart.js.map +1 -1
- package/dist/analog/commands/uplink/status.js.map +1 -1
- package/dist/analog/commands/uplink/time2000.d.ts +1 -1
- package/dist/analog/commands/uplink/time2000.js +3 -4
- package/dist/analog/commands/uplink/time2000.js.map +1 -1
- package/dist/analog/commands/uplink/updateRun.js +2 -3
- package/dist/analog/commands/uplink/updateRun.js.map +1 -1
- package/dist/analog/commands/uplink/usWaterMeterBatteryStatus.js +2 -0
- package/dist/analog/commands/uplink/usWaterMeterBatteryStatus.js.map +1 -1
- package/dist/analog/commands/uplink/usWaterMeterCommand.d.ts +3 -1
- package/dist/analog/commands/uplink/usWaterMeterCommand.js +6 -1
- package/dist/analog/commands/uplink/usWaterMeterCommand.js.map +1 -1
- package/dist/analog/commands/uplink/verifyImage.js +3 -4
- package/dist/analog/commands/uplink/verifyImage.js.map +1 -1
- package/dist/analog/commands/uplink/writeImage.d.ts +1 -1
- package/dist/analog/commands/uplink/writeImage.js +1 -1
- package/dist/analog/commands/uplink/writeImage.js.map +1 -1
- package/dist/mtx1/commands/downlink/activateRatePlan.js +2 -0
- package/dist/mtx1/commands/downlink/activateRatePlan.js.map +1 -1
- package/dist/mtx1/commands/downlink/getBv.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getBv.js +2 -3
- package/dist/mtx1/commands/downlink/getBv.js.map +1 -1
- package/dist/mtx1/commands/downlink/getCorrectTime.js +2 -3
- package/dist/mtx1/commands/downlink/getCorrectTime.js.map +1 -1
- package/dist/mtx1/commands/downlink/getCriticalEvent.js +2 -3
- package/dist/mtx1/commands/downlink/getCriticalEvent.js.map +1 -1
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.js +2 -3
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.js.map +1 -1
- package/dist/mtx1/commands/downlink/getCurrentValues.js +2 -3
- package/dist/mtx1/commands/downlink/getCurrentValues.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDateTime.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDateTime.js +2 -3
- package/dist/mtx1/commands/downlink/getDateTime.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDayMaxDemand.js +2 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemand.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDayMaxDemandExport.js +2 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandExport.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.js +2 -3
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDayProfile.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDayProfile.js +1 -1
- package/dist/mtx1/commands/downlink/getDayProfile.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDemand.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDemand.js +1 -1
- package/dist/mtx1/commands/downlink/getDemand.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDemandParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDemandParameters.js +1 -1
- package/dist/mtx1/commands/downlink/getDemandParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDeviceId.js +2 -3
- package/dist/mtx1/commands/downlink/getDeviceId.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDeviceType.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDeviceType.js +2 -3
- package/dist/mtx1/commands/downlink/getDeviceType.js.map +1 -1
- package/dist/mtx1/commands/downlink/getDisplayParam.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getDisplayParam.js +1 -1
- package/dist/mtx1/commands/downlink/getDisplayParam.js.map +1 -1
- package/dist/mtx1/commands/downlink/getEventStatus.js +2 -3
- package/dist/mtx1/commands/downlink/getEventStatus.js.map +1 -1
- package/dist/mtx1/commands/downlink/getEvents.js +2 -3
- package/dist/mtx1/commands/downlink/getEvents.js.map +1 -1
- package/dist/mtx1/commands/downlink/getEventsCounters.js +2 -3
- package/dist/mtx1/commands/downlink/getEventsCounters.js.map +1 -1
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues.js +2 -3
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues.js.map +1 -1
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.js +2 -3
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.js.map +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourDemand.js +2 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemand.js.map +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourDemandExport.js +2 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandExport.js.map +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.js +2 -3
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.js.map +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.js +1 -1
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.js +2 -3
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMeterInfo.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getMeterInfo.js +2 -3
- package/dist/mtx1/commands/downlink/getMeterInfo.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMonthDemand.js +2 -0
- package/dist/mtx1/commands/downlink/getMonthDemand.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMonthDemandExport.js +2 -0
- package/dist/mtx1/commands/downlink/getMonthDemandExport.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMonthMaxDemand.js +2 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemand.js.map +1 -1
- package/dist/mtx1/commands/downlink/getMonthMaxDemandExport.js +2 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemandExport.js.map +1 -1
- package/dist/mtx1/commands/downlink/getOperatorParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getOperatorParameters.js +2 -3
- package/dist/mtx1/commands/downlink/getOperatorParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.js +2 -3
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.js.map +1 -1
- package/dist/mtx1/commands/downlink/getQuality.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getQuality.js +35 -0
- package/dist/mtx1/commands/downlink/getQuality.js.map +1 -0
- package/dist/mtx1/commands/downlink/getRatePlanInfo.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getRatePlanInfo.js +5 -1
- package/dist/mtx1/commands/downlink/getRatePlanInfo.js.map +1 -1
- package/dist/mtx1/commands/downlink/getSaldo.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getSaldo.js +2 -3
- package/dist/mtx1/commands/downlink/getSaldo.js.map +1 -1
- package/dist/mtx1/commands/downlink/getSaldoParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/getSaldoParameters.js +2 -3
- package/dist/mtx1/commands/downlink/getSaldoParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/getSeasonProfile.d.ts +2 -2
- package/dist/mtx1/commands/downlink/getSeasonProfile.js +11 -2
- package/dist/mtx1/commands/downlink/getSeasonProfile.js.map +1 -1
- package/dist/mtx1/commands/downlink/getSpecialDay.d.ts +2 -2
- package/dist/mtx1/commands/downlink/getSpecialDay.js +11 -2
- package/dist/mtx1/commands/downlink/getSpecialDay.js.map +1 -1
- package/dist/mtx1/commands/downlink/getVersion.js +2 -3
- package/dist/mtx1/commands/downlink/getVersion.js.map +1 -1
- package/dist/mtx1/commands/downlink/index.d.ts +1 -0
- package/dist/mtx1/commands/downlink/index.js +1 -0
- package/dist/mtx1/commands/downlink/index.js.map +1 -1
- package/dist/mtx1/commands/downlink/prepareRatePlan.d.ts +1 -1
- package/dist/mtx1/commands/downlink/prepareRatePlan.js +3 -1
- package/dist/mtx1/commands/downlink/prepareRatePlan.js.map +1 -1
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.d.ts +1 -1
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.js +2 -3
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.js.map +1 -1
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.d.ts +1 -1
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.js +2 -3
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.js.map +1 -1
- package/dist/mtx1/commands/downlink/runTariffPlan.d.ts +1 -1
- package/dist/mtx1/commands/downlink/runTariffPlan.js.map +1 -1
- package/dist/mtx1/commands/downlink/setAccessKey.js +2 -0
- package/dist/mtx1/commands/downlink/setAccessKey.js.map +1 -1
- package/dist/mtx1/commands/downlink/setCorrectDateTime.js +3 -4
- package/dist/mtx1/commands/downlink/setCorrectDateTime.js.map +1 -1
- package/dist/mtx1/commands/downlink/setCorrectTime.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setCorrectTime.js +3 -4
- package/dist/mtx1/commands/downlink/setCorrectTime.js.map +1 -1
- package/dist/mtx1/commands/downlink/setDateTime.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setDateTime.js +3 -1
- package/dist/mtx1/commands/downlink/setDateTime.js.map +1 -1
- package/dist/mtx1/commands/downlink/setDayProfile.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setDayProfile.js +1 -1
- package/dist/mtx1/commands/downlink/setDayProfile.js.map +1 -1
- package/dist/mtx1/commands/downlink/setDemandParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setDemandParameters.js +3 -3
- package/dist/mtx1/commands/downlink/setDemandParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/setDisplayParam.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setDisplayParam.js.map +1 -1
- package/dist/mtx1/commands/downlink/setOperatorParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setOperatorParameters.js +5 -6
- package/dist/mtx1/commands/downlink/setOperatorParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.js +3 -1
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.js.map +1 -1
- package/dist/mtx1/commands/downlink/setSaldo.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setSaldo.js +2 -0
- package/dist/mtx1/commands/downlink/setSaldo.js.map +1 -1
- package/dist/mtx1/commands/downlink/setSaldoParameters.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setSaldoParameters.js +3 -1
- package/dist/mtx1/commands/downlink/setSaldoParameters.js.map +1 -1
- package/dist/mtx1/commands/downlink/setSeasonProfile.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setSeasonProfile.js +4 -2
- package/dist/mtx1/commands/downlink/setSeasonProfile.js.map +1 -1
- package/dist/mtx1/commands/downlink/setSpecialDay.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setSpecialDay.js +3 -1
- package/dist/mtx1/commands/downlink/setSpecialDay.js.map +1 -1
- package/dist/mtx1/commands/downlink/setSpecialOperation.d.ts +1 -1
- package/dist/mtx1/commands/downlink/setSpecialOperation.js +2 -0
- package/dist/mtx1/commands/downlink/setSpecialOperation.js.map +1 -1
- package/dist/mtx1/commands/downlink/turnRelayOff.d.ts +1 -1
- package/dist/mtx1/commands/downlink/turnRelayOff.js +2 -3
- package/dist/mtx1/commands/downlink/turnRelayOff.js.map +1 -1
- package/dist/mtx1/commands/downlink/turnRelayOn.d.ts +1 -1
- package/dist/mtx1/commands/downlink/turnRelayOn.js +2 -3
- package/dist/mtx1/commands/downlink/turnRelayOn.js.map +1 -1
- package/dist/mtx1/commands/uplink/activateRatePlan.js +2 -3
- package/dist/mtx1/commands/uplink/activateRatePlan.js.map +1 -1
- package/dist/mtx1/commands/uplink/errorDataFrameResponse.js +3 -4
- package/dist/mtx1/commands/uplink/errorDataFrameResponse.js.map +1 -1
- package/dist/mtx1/commands/uplink/errorResponse.js +2 -0
- package/dist/mtx1/commands/uplink/errorResponse.js.map +1 -1
- package/dist/mtx1/commands/uplink/getBv.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getBv.js +2 -3
- package/dist/mtx1/commands/uplink/getBv.js.map +1 -1
- package/dist/mtx1/commands/uplink/getCorrectTime.js +2 -0
- package/dist/mtx1/commands/uplink/getCorrectTime.js.map +1 -1
- package/dist/mtx1/commands/uplink/getCriticalEvent.js +2 -3
- package/dist/mtx1/commands/uplink/getCriticalEvent.js.map +1 -1
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.js +4 -2
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.js.map +1 -1
- package/dist/mtx1/commands/uplink/getCurrentValues.js +3 -1
- package/dist/mtx1/commands/uplink/getCurrentValues.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDateTime.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDateTime.js +3 -1
- package/dist/mtx1/commands/uplink/getDateTime.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayDemand.js +2 -2
- package/dist/mtx1/commands/uplink/getDayDemand.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayDemandExport.js +1 -1
- package/dist/mtx1/commands/uplink/getDayDemandExport.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayEnergies.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDayEnergies.js +1 -1
- package/dist/mtx1/commands/uplink/getDayEnergies.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxDemand.js +2 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemand.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxDemandExport.js +3 -1
- package/dist/mtx1/commands/uplink/getDayMaxDemandExport.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxDemandPrevious.js +3 -1
- package/dist/mtx1/commands/uplink/getDayMaxDemandPrevious.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxPower.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxPower.js +1 -1
- package/dist/mtx1/commands/uplink/getDayMaxPower.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDayProfile.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDayProfile.js +2 -2
- package/dist/mtx1/commands/uplink/getDayProfile.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDemand.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDemand.js +2 -2
- package/dist/mtx1/commands/uplink/getDemand.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDemandParameters.js +2 -2
- package/dist/mtx1/commands/uplink/getDemandParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDeviceId.js +3 -1
- package/dist/mtx1/commands/uplink/getDeviceId.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDeviceType.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDeviceType.js +3 -1
- package/dist/mtx1/commands/uplink/getDeviceType.js.map +1 -1
- package/dist/mtx1/commands/uplink/getDisplayParam.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getDisplayParam.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEnergy.js +1 -1
- package/dist/mtx1/commands/uplink/getEnergy.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEnergyDayPrevious.js +1 -1
- package/dist/mtx1/commands/uplink/getEnergyDayPrevious.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEnergyExport.js +1 -1
- package/dist/mtx1/commands/uplink/getEnergyExport.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEnergyExportDayPrevious.js +1 -1
- package/dist/mtx1/commands/uplink/getEnergyExportDayPrevious.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEventStatus.js +3 -1
- package/dist/mtx1/commands/uplink/getEventStatus.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEvents.d.ts +6 -5
- package/dist/mtx1/commands/uplink/getEvents.js +3 -3
- package/dist/mtx1/commands/uplink/getEvents.js.map +1 -1
- package/dist/mtx1/commands/uplink/getEventsCounters.js +1 -1
- package/dist/mtx1/commands/uplink/getEventsCounters.js.map +1 -1
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.js +3 -1
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.js.map +1 -1
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues2.js +2 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues2.js.map +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.js +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.js.map +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.js +1 -1
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.js +3 -1
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMeterInfo.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getMeterInfo.js +5 -1
- package/dist/mtx1/commands/uplink/getMeterInfo.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMonthDemand.js +3 -1
- package/dist/mtx1/commands/uplink/getMonthDemand.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMonthDemandExport.js +3 -1
- package/dist/mtx1/commands/uplink/getMonthDemandExport.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMonthMaxDemand.js +3 -1
- package/dist/mtx1/commands/uplink/getMonthMaxDemand.js.map +1 -1
- package/dist/mtx1/commands/uplink/getMonthMaxDemandExport.js +3 -1
- package/dist/mtx1/commands/uplink/getMonthMaxDemandExport.js.map +1 -1
- package/dist/mtx1/commands/uplink/getOperatorParameters.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getOperatorParameters.js +5 -3
- package/dist/mtx1/commands/uplink/getOperatorParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/getOperatorParametersExtended3.js +3 -1
- package/dist/mtx1/commands/uplink/getOperatorParametersExtended3.js.map +1 -1
- package/dist/mtx1/commands/uplink/getQuality.d.ts +21 -0
- package/dist/mtx1/commands/uplink/getQuality.js +64 -0
- package/dist/mtx1/commands/uplink/getQuality.js.map +1 -0
- package/dist/mtx1/commands/uplink/getRatePlanInfo.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getRatePlanInfo.js +4 -5
- package/dist/mtx1/commands/uplink/getRatePlanInfo.js.map +1 -1
- package/dist/mtx1/commands/uplink/getSaldo.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getSaldo.js +3 -4
- package/dist/mtx1/commands/uplink/getSaldo.js.map +1 -1
- package/dist/mtx1/commands/uplink/getSaldoParameters.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getSaldoParameters.js +4 -5
- package/dist/mtx1/commands/uplink/getSaldoParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/getSeasonProfile.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getSeasonProfile.js +4 -2
- package/dist/mtx1/commands/uplink/getSeasonProfile.js.map +1 -1
- package/dist/mtx1/commands/uplink/getSpecialDay.d.ts +1 -1
- package/dist/mtx1/commands/uplink/getSpecialDay.js +4 -2
- package/dist/mtx1/commands/uplink/getSpecialDay.js.map +1 -1
- package/dist/mtx1/commands/uplink/getVersion.js +5 -1
- package/dist/mtx1/commands/uplink/getVersion.js.map +1 -1
- package/dist/mtx1/commands/uplink/index.d.ts +1 -0
- package/dist/mtx1/commands/uplink/index.js +1 -0
- package/dist/mtx1/commands/uplink/index.js.map +1 -1
- package/dist/mtx1/commands/uplink/prepareRatePlan.d.ts +1 -1
- package/dist/mtx1/commands/uplink/prepareRatePlan.js +2 -3
- package/dist/mtx1/commands/uplink/prepareRatePlan.js.map +1 -1
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.d.ts +1 -1
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.js +2 -3
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.js.map +1 -1
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.d.ts +1 -1
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.js +2 -3
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.js.map +1 -1
- package/dist/mtx1/commands/uplink/runTariffPlan.d.ts +1 -1
- package/dist/mtx1/commands/uplink/runTariffPlan.js +2 -3
- package/dist/mtx1/commands/uplink/runTariffPlan.js.map +1 -1
- package/dist/mtx1/commands/uplink/setAccessKey.js +2 -3
- package/dist/mtx1/commands/uplink/setAccessKey.js.map +1 -1
- package/dist/mtx1/commands/uplink/setCorrectDateTime.js +2 -3
- package/dist/mtx1/commands/uplink/setCorrectDateTime.js.map +1 -1
- package/dist/mtx1/commands/uplink/setCorrectTime.js +2 -3
- package/dist/mtx1/commands/uplink/setCorrectTime.js.map +1 -1
- package/dist/mtx1/commands/uplink/setDateTime.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setDateTime.js +2 -3
- package/dist/mtx1/commands/uplink/setDateTime.js.map +1 -1
- package/dist/mtx1/commands/uplink/setDayProfile.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setDayProfile.js +2 -3
- package/dist/mtx1/commands/uplink/setDayProfile.js.map +1 -1
- package/dist/mtx1/commands/uplink/setDemandParameters.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setDemandParameters.js +1 -1
- package/dist/mtx1/commands/uplink/setDemandParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/setDisplayParam.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setDisplayParam.js +2 -3
- package/dist/mtx1/commands/uplink/setDisplayParam.js.map +1 -1
- package/dist/mtx1/commands/uplink/setOperatorParameters.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setOperatorParameters.js +2 -3
- package/dist/mtx1/commands/uplink/setOperatorParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.js +2 -3
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.js.map +1 -1
- package/dist/mtx1/commands/uplink/setSaldo.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setSaldo.js +2 -3
- package/dist/mtx1/commands/uplink/setSaldo.js.map +1 -1
- package/dist/mtx1/commands/uplink/setSaldoParameters.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setSaldoParameters.js +2 -3
- package/dist/mtx1/commands/uplink/setSaldoParameters.js.map +1 -1
- package/dist/mtx1/commands/uplink/setSeasonProfile.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setSeasonProfile.js +2 -3
- package/dist/mtx1/commands/uplink/setSeasonProfile.js.map +1 -1
- package/dist/mtx1/commands/uplink/setSpecialDay.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setSpecialDay.js +2 -3
- package/dist/mtx1/commands/uplink/setSpecialDay.js.map +1 -1
- package/dist/mtx1/commands/uplink/setSpecialOperation.d.ts +1 -1
- package/dist/mtx1/commands/uplink/setSpecialOperation.js +4 -6
- package/dist/mtx1/commands/uplink/setSpecialOperation.js.map +1 -1
- package/dist/mtx1/commands/uplink/turnRelayOff.d.ts +1 -1
- package/dist/mtx1/commands/uplink/turnRelayOff.js +2 -3
- package/dist/mtx1/commands/uplink/turnRelayOff.js.map +1 -1
- package/dist/mtx1/commands/uplink/turnRelayOn.d.ts +1 -1
- package/dist/mtx1/commands/uplink/turnRelayOn.js +2 -3
- package/dist/mtx1/commands/uplink/turnRelayOn.js.map +1 -1
- package/dist/mtx1/constants/downlinkIds.d.ts +1 -0
- package/dist/mtx1/constants/downlinkIds.js +1 -0
- package/dist/mtx1/constants/downlinkIds.js.map +1 -1
- package/dist/mtx1/constants/events.d.ts +2 -5
- package/dist/mtx1/constants/events.js +6 -9
- package/dist/mtx1/constants/events.js.map +1 -1
- package/dist/mtx1/message/downlink.js +2 -0
- package/dist/mtx1/message/downlink.js.map +1 -1
- package/dist/mtx1/message/uplink.js +2 -0
- package/dist/mtx1/message/uplink.js.map +1 -1
- package/dist/mtx1/utils/CommandBinaryBuffer.d.ts +2 -2
- package/dist/mtx1/utils/CommandBinaryBuffer.js +8 -6
- package/dist/mtx1/utils/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx3/commands/downlink/getCriticalEvent.js +2 -3
- package/dist/mtx3/commands/downlink/getCriticalEvent.js.map +1 -1
- package/dist/mtx3/commands/downlink/getDayDemand.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getDayDemand.js +1 -1
- package/dist/mtx3/commands/downlink/getDayDemand.js.map +1 -1
- package/dist/mtx3/commands/downlink/getDayDemandExport.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getDayDemandExport.js +3 -1
- package/dist/mtx3/commands/downlink/getDayDemandExport.js.map +1 -1
- package/dist/mtx3/commands/downlink/getDemand.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getDemand.js +3 -1
- package/dist/mtx3/commands/downlink/getDemand.js.map +1 -1
- package/dist/mtx3/commands/downlink/getDisplayParam.d.ts +2 -2
- package/dist/mtx3/commands/downlink/getDisplayParam.js +6 -2
- package/dist/mtx3/commands/downlink/getDisplayParam.js.map +1 -1
- package/dist/mtx3/commands/downlink/getEnergy.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getEnergy.js +2 -3
- package/dist/mtx3/commands/downlink/getEnergy.js.map +1 -1
- package/dist/mtx3/commands/downlink/getEnergyDayPrevious.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getEnergyDayPrevious.js.map +1 -1
- package/dist/mtx3/commands/downlink/getEnergyExport.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getEnergyExport.js +2 -3
- package/dist/mtx3/commands/downlink/getEnergyExport.js.map +1 -1
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.js +2 -3
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.js.map +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.js +3 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.js.map +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.js +3 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.js.map +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.js +3 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.js.map +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.js +3 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.js.map +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.js +3 -1
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.js.map +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.js +2 -3
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.js.map +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.js +2 -3
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.js.map +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.d.ts +1 -1
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.js +2 -3
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.js.map +1 -1
- package/dist/mtx3/commands/downlink/index.d.ts +1 -0
- package/dist/mtx3/commands/downlink/index.js +1 -0
- package/dist/mtx3/commands/downlink/index.js.map +1 -1
- package/dist/mtx3/commands/downlink/setDisplayParam.d.ts +1 -1
- package/dist/mtx3/commands/downlink/setDisplayParam.js.map +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParameters.d.ts +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParameters.js +5 -6
- package/dist/mtx3/commands/downlink/setOperatorParameters.js.map +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.d.ts +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.js +3 -4
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.js.map +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.d.ts +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.js +3 -4
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.js.map +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.d.ts +1 -1
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.js +3 -4
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.js.map +1 -1
- package/dist/mtx3/commands/uplink/getCriticalEvent.js +2 -3
- package/dist/mtx3/commands/uplink/getCriticalEvent.js.map +1 -1
- package/dist/mtx3/commands/uplink/getCurrentStatusMeter.js +2 -0
- package/dist/mtx3/commands/uplink/getCurrentStatusMeter.js.map +1 -1
- package/dist/mtx3/commands/uplink/getCurrentValues.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getCurrentValues.js +2 -0
- package/dist/mtx3/commands/uplink/getCurrentValues.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDayDemand.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getDayDemand.js +3 -3
- package/dist/mtx3/commands/uplink/getDayDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDayDemandExport.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getDayDemandExport.js +3 -3
- package/dist/mtx3/commands/uplink/getDayDemandExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDayMaxDemand.js +3 -1
- package/dist/mtx3/commands/uplink/getDayMaxDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDayMaxDemandExport.js +3 -1
- package/dist/mtx3/commands/uplink/getDayMaxDemandExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDemand.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getDemand.js +2 -2
- package/dist/mtx3/commands/uplink/getDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getDisplayParam.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getDisplayParam.js.map +1 -1
- package/dist/mtx3/commands/uplink/getEnergy.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getEnergy.js +5 -3
- package/dist/mtx3/commands/uplink/getEnergy.js.map +1 -1
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.js +3 -3
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.js.map +1 -1
- package/dist/mtx3/commands/uplink/getEnergyExport.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getEnergyExport.js +5 -3
- package/dist/mtx3/commands/uplink/getEnergyExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.js +5 -3
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.js.map +1 -1
- package/dist/mtx3/commands/uplink/getEvents.d.ts +8 -0
- package/dist/mtx3/commands/uplink/getEvents.js +56 -0
- package/dist/mtx3/commands/uplink/getEvents.js.map +1 -0
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.js +3 -1
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemand.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemand.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.js +2 -2
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.js +1 -1
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.js.map +1 -1
- package/dist/mtx3/commands/uplink/getMonthDemand.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getMonthDemand.js +5 -3
- package/dist/mtx3/commands/uplink/getMonthDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getMonthDemandExport.d.ts +2 -2
- package/dist/mtx3/commands/uplink/getMonthDemandExport.js +5 -3
- package/dist/mtx3/commands/uplink/getMonthDemandExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getMonthMaxDemand.js +3 -1
- package/dist/mtx3/commands/uplink/getMonthMaxDemand.js.map +1 -1
- package/dist/mtx3/commands/uplink/getMonthMaxDemandExport.js +2 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemandExport.js.map +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParameters.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParameters.js +6 -4
- package/dist/mtx3/commands/uplink/getOperatorParameters.js.map +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.js +4 -2
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.js.map +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.js +4 -2
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.js.map +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.d.ts +1 -1
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.js +4 -2
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.js.map +1 -1
- package/dist/mtx3/commands/uplink/getQuality.d.ts +23 -0
- package/dist/mtx3/commands/uplink/getQuality.js +72 -0
- package/dist/mtx3/commands/uplink/getQuality.js.map +1 -0
- package/dist/mtx3/commands/uplink/index.d.ts +2 -1
- package/dist/mtx3/commands/uplink/index.js +2 -1
- package/dist/mtx3/commands/uplink/index.js.map +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.d.ts +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.js +2 -3
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.js.map +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.d.ts +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.js +2 -3
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.js.map +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.d.ts +1 -1
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.js +2 -3
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.js.map +1 -1
- package/dist/mtx3/constants/downlinkIds.d.ts +1 -0
- package/dist/mtx3/constants/downlinkIds.js +1 -0
- package/dist/mtx3/constants/downlinkIds.js.map +1 -1
- package/dist/mtx3/constants/events.d.ts +1 -0
- package/dist/mtx3/constants/events.js +36 -35
- package/dist/mtx3/constants/events.js.map +1 -1
- package/dist/mtx3/message/downlink.js +2 -0
- package/dist/mtx3/message/downlink.js.map +1 -1
- package/dist/mtx3/message/uplink.js +4 -2
- package/dist/mtx3/message/uplink.js.map +1 -1
- package/dist/mtx3/utils/CommandBinaryBuffer.d.ts +2 -2
- package/dist/mtx3/utils/CommandBinaryBuffer.js +6 -6
- package/dist/mtx3/utils/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/updateImageWrite.d.ts +2 -0
- package/dist/obis-observer/commands/downlink/updateImageWrite.js +5 -0
- package/dist/obis-observer/commands/downlink/updateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/uplink/getSettingsMemory.d.ts +2 -0
- package/dist/obis-observer/commands/uplink/getSettingsMemory.js +5 -0
- package/dist/obis-observer/commands/uplink/getSettingsMemory.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentValues.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getCurrentValues.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCurrentValues.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getCurrentValues.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAC3E,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAuE1D,MAAM,CAAC,MAAM,EAAE,GAAqB,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,IAAI,GAAuB,YAAY,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAuB,SAAS,CAAC;AACzD,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,CAAC,MAAM,QAAQ,GAA6B;IAC9C,iBAAiB,EAAE;QACf,EAAE;QACF,IAAI;QACJ,OAAO;QACP,UAAU;QACV,WAAW;QACX,UAAU,EAAE;YACR,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,I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C,IAAI,CAAC;IAElC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IPackedEnergiesWithType } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
interface IGetDayDemandResponseParameters extends IPackedEnergiesWithType {
|
|
6
6
|
date: types.IDate;
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getPackedEnergiesWithDateSize, PACKED_ENERGY_TYPE_SIZE, getPackedEnergyWithType, setPackedEnergyWithType, getEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
7
5
|
import { getDate, setDate } from '../../../mtx1/utils/CommandBinaryBuffer.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
8
8
|
import { A_PLUS_R_PLUS_R_MINUS, A_MINUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
9
9
|
import { getDayDemand as commandId } from '../../constants/uplinkIds.js';
|
|
10
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDayDemand.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayDemand.ts"],"names":[],"mappings":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CAAC,6BAA6B,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC;IAGjG,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAE,UAA2C,EAAE,UAA6B,IAAI,CAAC,kBAAkB,EAAG,EAAE;IAC1H,IAAK,CAAC,OAAO,CAAC,IAAI,EAAG,CAAC;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,EAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAC,GAAG,UAAU,CAAC;IAEhD,OAAO,IAAI,CAAC,SAAS,CAAC;QAClB,IAAI;QACJ,GAAG,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,UAAU,IAAI,qBAAqB,CAAC;KAC5F,CAAC,CAAC;AACP,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
interface IGetDayDemandExportResponseParameters {
|
|
6
6
|
date: types.IDate;
|
|
7
7
|
energies: IEnergies;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getEnergies, setEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
7
5
|
import { getDate, setDate } from '../../../mtx1/utils/CommandBinaryBuffer.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
8
8
|
import { A_MINUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
9
9
|
import { getDayDemandExport as commandId } from '../../constants/uplinkIds.js';
|
|
10
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDayDemandExport.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayDemandExport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDayDemandExport.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayDemandExport.ts"],"names":[],"mappings":"AA0CA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAE1D,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAEH,WAAW,EACX,WAAW,EACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAC,sBAAsB,EAAC,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAC,kBAAkB,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAC7E,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAS1D,MAAM,OAAO,GAAG,IAAI,CAAC;AAGrB,MAAM,CAAC,MAAM,EAAE,GAAqB,S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C"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
2
2
|
import * as command from '../../../mtx1/utils/command.js';
|
|
3
|
-
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
4
3
|
import { getDayMaxDemandResponse, setDayMaxDemandResponse } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
5
5
|
import { getDayMaxDemand as commandId } from '../../constants/uplinkIds.js';
|
|
6
6
|
import commandNames from '../../constants/uplinkNames.js';
|
|
7
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
7
8
|
export const id = commandId;
|
|
8
9
|
export const name = commandNames[commandId];
|
|
9
10
|
export const headerSize = 2;
|
|
@@ -81,6 +82,7 @@ export const examples = {
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
export const fromBytes = (bytes) => {
|
|
85
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
84
86
|
const buffer = new BinaryBuffer(bytes, false);
|
|
85
87
|
return getDayMaxDemandResponse(buffer);
|
|
86
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDayMaxDemand.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayMaxDemand.ts"],"names":[],"mappings":"AAoFA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"getDayMaxDemand.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayMaxDemand.ts"],"names":[],"mappings":"AAoFA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAEH,uBAAuB,EACvB,uBAAuB,EAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAA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I,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;SAC7G;KACJ;CACJ,CAAC;AASF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAE,KAAmB,EAAuC,EAAE;IACnF,sBAAsB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAE7C,MAAM,MAAM,GAAkB,IAAI,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAE7D,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAE,UAA8C,EAAiB,EAAE;IACtF,MAAM,MAAM,GAAkB,IAAI,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
2
2
|
import * as command from '../../../mtx1/utils/command.js';
|
|
3
|
-
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
4
3
|
import { getDayMaxDemandResponse, setDayMaxDemandResponse } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
5
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
5
6
|
import { getDayMaxDemandExport as commandId } from '../../constants/uplinkIds.js';
|
|
6
7
|
import commandNames from '../../constants/uplinkNames.js';
|
|
7
8
|
export const id = commandId;
|
|
@@ -81,6 +82,7 @@ export const examples = {
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
export const fromBytes = (bytes) => {
|
|
85
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
84
86
|
const buffer = new BinaryBuffer(bytes, false);
|
|
85
87
|
return getDayMaxDemandResponse(buffer);
|
|
86
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDayMaxDemandExport.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayMaxDemandExport.ts"],"names":[],"mappings":"AAoFA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"getDayMaxDemandExport.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDayMaxDemandExport.ts"],"names":[],"mappings":"AAoFA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAEH,uBAAuB,EACvB,uBAAuB,EAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAC,qBAAqB,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAG1D,MAAM,CAAC,MAAM,EAAE,GAAqB,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,IAAI,GAAuB,YAAY,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAuB,SAAS,CAAC;AACzD,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,CAAC,MAAM,QAAQ,GAA6B;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IAAI,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAI5C,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
3
|
import { IGetDemandResponseParameters } from '../../utils/CommandBinaryBuffer.js';
|
|
4
4
|
export declare const id: types.TCommandId;
|
|
5
5
|
export declare const name: types.TCommandName;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
3
|
import { getDemand, setDemand } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
-
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
5
4
|
import * as getDemandCommand from '../downlink/getDemand.js';
|
|
5
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
6
6
|
import { getDemand as commandId } from '../../constants/uplinkIds.js';
|
|
7
7
|
import commandNames from '../../constants/uplinkNames.js';
|
|
8
8
|
import * as demandTypes from '../../constants/demandTypes.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDemand.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDemand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDemand.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDemand.ts"],"names":[],"mappings":"AAsCA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D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CAAC,GAAG,EAAE;QACN,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAEjC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEP,OAAO;QACH,GAAG,UAAU;QACb,OAAO;KACV,CAAC;AACN,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAE,UAAwC,EAAiB,EAAE;IAChF,MAAM,MAAM,GAAkB,IAAI,YAAY,CAAC,gBAAgB,CAAC,OAAO,GAAG,UAAU,CAAC,KAAK,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;IAEvG,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE9B,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAEzF,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
3
|
interface IGetDisplayParamResponseParameters {
|
|
4
4
|
displayMode: types.TUint8;
|
|
5
5
|
order: Array<types.TUint8>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDisplayParam.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDisplayParam.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDisplayParam.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getDisplayParam.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,OA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C,GAAG,KAAK,CAAC;IAEtC,OAAO,EAAC,WAAW,EAAE,KAAK,EAAC,CAAC;AAChC,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAE,UAA8C,EAAiB,EAAE,CAAC,CACvF,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CACrE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
export declare const id: types.TCommandId;
|
|
6
6
|
export declare const name: types.TCommandName;
|
|
7
7
|
export declare const headerSize = 2;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getEnergies, setEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
5
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
7
8
|
import { A_PLUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
8
9
|
import { getEnergy as commandId } from '../../constants/uplinkIds.js';
|
|
9
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -35,6 +36,7 @@ export const examples = {
|
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
export const fromBytes = (bytes) => {
|
|
39
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
38
40
|
const buffer = new BinaryBuffer(bytes, false);
|
|
39
41
|
return getEnergies(buffer);
|
|
40
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEnergy.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getEnergy.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergy.ts"],"names":[],"mappings":"AAkCA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAEH,WAAW,EACX,WAAW,EACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,SAAS,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACpE,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAG1D,MAAM,CAAC,MAAM,EAAE,GAAqB,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,IAAI,GAAuB,YAAY,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAuB,SAAS,CAAC;AACzD,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAC1B,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,CAAC,MAAM,QAAQ,GAA6B;IAC9C,iB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AAO,GAAG,CAAE,UAAqB,EAAiB,EAAE;IAC7D,MAAM,MAAM,GAAkB,IAAI,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAE,UAAqB,EAAE,UAA6B,IAAI,CAAC,kBAAkB,EAAG,EAAE,CAAC,CACrG,OAAO,CAAC,IAAI;IACR,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;IAC5F,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CACnC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IPackedEnergiesWithType } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
interface IGetEnergyDayPreviousResponseParameters extends IPackedEnergiesWithType {
|
|
6
6
|
date: types.IDate;
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getPackedEnergiesWithDateSize, PACKED_ENERGY_TYPE_SIZE, getPackedEnergyWithType, setPackedEnergyWithType, getEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
7
5
|
import { getDate, setDate } from '../../../mtx1/utils/CommandBinaryBuffer.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
8
8
|
import { A_PLUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
9
9
|
import { getEnergyDayPrevious as commandId } from '../../constants/uplinkIds.js';
|
|
10
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEnergyDayPrevious.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergyDayPrevious.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getEnergyDayPrevious.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergyDayPrevious.ts"],"names":[],"mappings":"AA0CA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EACH,6BAA6B,EAE7B,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,oBAAoB,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAC/E,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAS1D,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,gBAAgB,GAAG,YAAY,GAAG,uBAAuB,CAA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
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
export declare const id: types.TCommandId;
|
|
6
6
|
export declare const name: types.TCommandName;
|
|
7
7
|
export declare const headerSize = 2;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getEnergies, setEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
5
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
7
8
|
import { A_MINUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
8
9
|
import { getEnergyExport as commandId } from '../../constants/uplinkIds.js';
|
|
9
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -36,6 +37,7 @@ export const examples = {
|
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
export const fromBytes = (bytes) => {
|
|
40
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
39
41
|
const buffer = new BinaryBuffer(bytes, false);
|
|
40
42
|
return getEnergies(buffer);
|
|
41
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEnergyExport.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergyExport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":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GF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAE,UAAqB,EAAE,UAA6B,IAAI,CAAC,kBAAkB,EAAG,EAAE;IACpG,IAAK,CAAC,OAAO,CAAC,IAAI,EAAG,CAAC;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
3
|
-
import * as
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
4
3
|
import { IEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
import * as dlms from '../../constants/dlms.js';
|
|
5
5
|
export declare const id: types.TCommandId;
|
|
6
6
|
export declare const name: types.TCommandName;
|
|
7
7
|
export declare const headerSize = 2;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
-
import
|
|
4
|
-
import * as dlms from '../../constants/dlms.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
5
3
|
import mapEnergiesToObisCodes from '../../utils/mapEnergiesToObisCodes.js';
|
|
6
4
|
import { getEnergies, setEnergies } from '../../utils/CommandBinaryBuffer.js';
|
|
5
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
6
|
+
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
7
|
+
import * as dlms from '../../constants/dlms.js';
|
|
7
8
|
import { A_MINUS_R_PLUS_R_MINUS } from '../../constants/energyTypes.js';
|
|
8
9
|
import { getEnergyExportDayPrevious as commandId } from '../../constants/uplinkIds.js';
|
|
9
10
|
import commandNames from '../../constants/uplinkNames.js';
|
|
@@ -36,6 +37,7 @@ export const examples = {
|
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
export const fromBytes = (bytes) => {
|
|
40
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
39
41
|
const buffer = new BinaryBuffer(bytes, false);
|
|
40
42
|
return getEnergies(buffer);
|
|
41
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEnergyExportDayPrevious.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergyExportDayPrevious.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getEnergyExportDayPrevious.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEnergyExportDayPrevious.ts"],"names":[],"mappings":"AAmCA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAEH,WAAW,EACX,WAAW,EACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAC,sBAAsB,EAAC,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAC,0BAA0B,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACrF,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAG1D,MAAM,OAAO,GAAG,IAAI,CAAC;AAGrB,MAAM,CAAC,MAAM,EAAE,GAAqB,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,IAAI,GAAuB,YAAY,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAC1B,MA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kB,IAAI,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAE7D,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAE,UAAqB,EAAiB,EAAE;IAC7D,MAAM,MAAM,GAAkB,IAAI,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/D,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAEhC,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAE,UAAqB,EAAE,UAA6B,IAAI,CAAC,kBAAkB,EAAG,EAAE;IACpG,IAAK,CAAC,OAAO,CAAC,IAAI,EAAG,CAAC;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
2
|
+
import * as mtx1 from '../../../mtx1/commands/uplink/getEvents.js';
|
|
3
|
+
export interface IGetEventResponseParameters extends mtx1.IGetEventResponseParameters {
|
|
4
|
+
}
|
|
5
|
+
export declare const id: import("../../types.js").TCommandId, name: import("../../types.js").TCommandName, headerSize: number, accessLevel: import("../../types.js").TAccessLevel, maxSize: number, isLoraOnly: boolean;
|
|
6
|
+
export declare const examples: command.TCommandExamples;
|
|
7
|
+
export declare const fromBytes: (bytes: import("../../types.js").TBytes) => mtx1.IGetEventResponseParameters;
|
|
8
|
+
export declare const toBytes: (parameters: mtx1.IGetEventResponseParameters) => import("../../types.js").TBytes;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as mtx1 from '../../../mtx1/commands/uplink/getEvents.js';
|
|
2
|
+
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
3
|
+
import { getEvent as getMtx3Event, setEvent as setMtx3Event } from '../../utils/CommandBinaryBuffer.js';
|
|
4
|
+
export const { id, name, headerSize, accessLevel, maxSize, isLoraOnly } = mtx1;
|
|
5
|
+
export const examples = {
|
|
6
|
+
'simple response': {
|
|
7
|
+
id,
|
|
8
|
+
name,
|
|
9
|
+
headerSize,
|
|
10
|
+
accessLevel,
|
|
11
|
+
maxSize,
|
|
12
|
+
parameters: {
|
|
13
|
+
date: {
|
|
14
|
+
year: 23,
|
|
15
|
+
month: 3,
|
|
16
|
+
date: 12
|
|
17
|
+
},
|
|
18
|
+
eventsNumber: 2,
|
|
19
|
+
events: [
|
|
20
|
+
{
|
|
21
|
+
hours: 1,
|
|
22
|
+
minutes: 12,
|
|
23
|
+
seconds: 33,
|
|
24
|
+
event: 157,
|
|
25
|
+
eventName: 'POWER_OVER_RELAY_OFF',
|
|
26
|
+
power: [22, 25, 12, 143]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
hours: 1,
|
|
30
|
+
minutes: 12,
|
|
31
|
+
seconds: 33,
|
|
32
|
+
event: 142,
|
|
33
|
+
eventName: 'TIME_CORRECT',
|
|
34
|
+
newDate: {
|
|
35
|
+
isSummerTime: false,
|
|
36
|
+
seconds: 10,
|
|
37
|
+
minutes: 22,
|
|
38
|
+
hours: 3,
|
|
39
|
+
day: 4,
|
|
40
|
+
date: 12,
|
|
41
|
+
month: 7,
|
|
42
|
+
year: 24
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
bytes: [
|
|
48
|
+
0x33, 0x18,
|
|
49
|
+
0x17, 0x03, 0x0c, 0x02, 0x01, 0x0c, 0x21, 0x9d, 0x16, 0x19, 0x0c, 0x8f,
|
|
50
|
+
0x01, 0x0c, 0x21, 0x8e, 0x00, 0x0a, 0x16, 0x03, 0x04, 0x0c, 0x07, 0x18
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export const fromBytes = mtx1.getFromBytes(BinaryBuffer, getMtx3Event);
|
|
55
|
+
export const toBytes = mtx1.getToBytes(BinaryBuffer, setMtx3Event);
|
|
56
|
+
//# sourceMappingURL=getEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEvents.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getEvents.ts"],"names":[],"mappings":"AAiEA,OAAO,KAAK,IAAI,MAAM,4CAA4C,CAAC;AACnE,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACH,QAAQ,IAAI,YAAY,EACxB,QAAQ,IAAI,YAAY,EAC3B,MAAM,oCAAoC,CAAC;AAK5C,MAAM,CAAC,MAAM,EACT,EAAE,EACF,IAAI,EACJ,UAAU,EACV,WAAW,EACX,OAAO,EACP,UAAU,EACb,GAAG,IAAI,CAAC;AAET,MAAM,CAAC,MAAM,QAAQ,GAA6B;IAC9C,iBAAiB,EAAE;QACf,EAAE;QACF,IAAI;QACJ,UAAU;QACV,WAAW;QACX,OAAO;QACP,UAAU,EAAE;YACR,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;gBACR,KAAK,EAAE,CAAC;gBACR,IAAI,EAAE,EAAE;aACX;YACD,YAAY,EAAE,CAAC;YACf,MAAM,EAAE;gBACJ;oBACI,KAAK,EAAE,CAAC;oBACR,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,EAAE;oBACX,KAAK,EAAE,GAAG;oBACV,SAAS,EAAE,sBAAsB;oBACjC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC;iBAC3B;gBACD;oBACI,KAAK,EAAE,CAAC;oBACR,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,EAAE;oBACX,KAAK,EAAE,GAAG;oBACV,SAAS,EAAE,cAAc;oBACzB,OAAO,EAAE;wBACL,YAAY,EAAE,KAAK;wBACnB,OAAO,EAAE,EAAE;wBACX,OAAO,EAAE,EAAE;wBACX,KAAK,EAAE,CAAC;wBACR,GAAG,EAAE,CAAC;wBACN,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,CAAC;wBACR,IAAI,EAAE,EAAE;qBACX;iBACJ;aACJ;SACJ;QACD,KAAK,EAAE;YACH,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;YACtE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;SACzE;KACJ;CACJ,CAAC;AASF,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AASvE,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
3
|
import * as dlms from '../../constants/dlms.js';
|
|
4
4
|
export interface IGetExtendedCurrentValuesResponseParameters {
|
|
5
5
|
temperature: types.TInt16;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
1
2
|
import * as command from '../../../mtx1/utils/command.js';
|
|
3
|
+
import validateCommandPayload from '../../../utils/validateCommandPayload.js';
|
|
2
4
|
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
3
5
|
import * as dlms from '../../constants/dlms.js';
|
|
4
|
-
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
5
6
|
import { getExtendedCurrentValues as commandId } from '../../constants/uplinkIds.js';
|
|
6
7
|
import commandNames from '../../constants/uplinkNames.js';
|
|
7
8
|
export const id = commandId;
|
|
@@ -51,6 +52,7 @@ export const examples = {
|
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
export const fromBytes = (bytes) => {
|
|
55
|
+
validateCommandPayload(name, bytes, maxSize);
|
|
54
56
|
const buffer = new BinaryBuffer(bytes, false);
|
|
55
57
|
return {
|
|
56
58
|
temperature: buffer.getInt16(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExtendedCurrentValues.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getExtendedCurrentValues.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getExtendedCurrentValues.js","sourceRoot":"","sources":["../../../../src/mtx3/commands/uplink/getExtendedCurrentValues.ts"],"names":[],"mappings":"AA4CA,OAAO,YAA6B,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAC,wBAAwB,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACnF,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAuE1D,MAAM,CAAC,MAAM,EAAE,GAAqB,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,IAAI,GAAuB,YAAY,CAAC,SAAS,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAC1B,MAAM,CAAC,MAAM,WAA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;KAChC,CAAC;IAEF,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import * as types from '../../types.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
3
|
import { IGetHalfHourDemandResponseParameters } from '../../utils/CommandBinaryBuffer.js';
|
|
4
4
|
export declare const id: types.TCommandId;
|
|
5
5
|
export declare const name: types.TCommandName;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as command from '../../../mtx1/utils/command.js';
|
|
2
1
|
import BinaryBuffer from '../../../utils/BinaryBuffer.js';
|
|
2
|
+
import * as command from '../../../mtx1/utils/command.js';
|
|
3
|
+
import { getEnergyPeriods, setEnergyPeriods } from '../../utils/CommandBinaryBuffer.js';
|
|
3
4
|
import { MIN_HALF_HOUR_PERIODS, MAX_HALF_HOUR_PERIODS, MIN_HALF_HOUR_COMMAND_SIZE, MAX_HALF_HOUR_COMMAND_SIZE, getDate, setDate } from '../../../mtx1/utils/CommandBinaryBuffer.js';
|
|
4
5
|
import { READ_ONLY } from '../../../mtx1/constants/accessLevels.js';
|
|
5
|
-
import { getEnergyPeriods, setEnergyPeriods } from '../../utils/CommandBinaryBuffer.js';
|
|
6
6
|
import { getHalfHourDemand as commandId } from '../../constants/uplinkIds.js';
|
|
7
7
|
import commandNames from '../../constants/uplinkNames.js';
|
|
8
8
|
export const id = commandId;
|