jooby-codec 3.15.0 → 7.1.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.d.ts +13 -0
- package/dist/analog/commands/downlink/correctTime2000.js +52 -0
- package/dist/analog/commands/downlink/correctTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/dataSegment.d.ts +11 -0
- package/dist/analog/commands/downlink/dataSegment.js +42 -0
- package/dist/analog/commands/downlink/dataSegment.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveDays.d.ts +14 -0
- package/dist/analog/commands/downlink/getArchiveDays.js +43 -0
- package/dist/analog/commands/downlink/getArchiveDays.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveDaysMc.d.ts +15 -0
- package/dist/analog/commands/downlink/getArchiveDaysMc.js +45 -0
- package/dist/analog/commands/downlink/getArchiveDaysMc.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveEvents.d.ts +14 -0
- package/dist/analog/commands/downlink/getArchiveEvents.js +41 -0
- package/dist/analog/commands/downlink/getArchiveEvents.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveHours.d.ts +14 -0
- package/dist/analog/commands/downlink/getArchiveHours.js +47 -0
- package/dist/analog/commands/downlink/getArchiveHours.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveHoursMc.d.ts +15 -0
- package/dist/analog/commands/downlink/getArchiveHoursMc.js +47 -0
- package/dist/analog/commands/downlink/getArchiveHoursMc.js.map +1 -0
- package/dist/analog/commands/downlink/getArchiveHoursMcEx.d.ts +16 -0
- package/dist/analog/commands/downlink/getArchiveHoursMcEx.js +45 -0
- package/dist/analog/commands/downlink/getArchiveHoursMcEx.js.map +1 -0
- package/dist/analog/commands/downlink/getBatteryStatus.d.ts +8 -0
- package/dist/analog/commands/downlink/getBatteryStatus.js +26 -0
- package/dist/analog/commands/downlink/getBatteryStatus.js.map +1 -0
- package/dist/analog/commands/downlink/getChannelsStatus.d.ts +11 -0
- package/dist/analog/commands/downlink/getChannelsStatus.js +30 -0
- package/dist/analog/commands/downlink/getChannelsStatus.js.map +1 -0
- package/dist/analog/commands/downlink/getChannelsTypes.d.ts +8 -0
- package/dist/analog/commands/downlink/getChannelsTypes.js +26 -0
- package/dist/analog/commands/downlink/getChannelsTypes.js.map +1 -0
- package/dist/analog/commands/downlink/getCurrent.d.ts +8 -0
- package/dist/analog/commands/downlink/getCurrent.js +26 -0
- package/dist/analog/commands/downlink/getCurrent.js.map +1 -0
- package/dist/analog/commands/downlink/getCurrentMc.d.ts +8 -0
- package/dist/analog/commands/downlink/getCurrentMc.js +26 -0
- package/dist/analog/commands/downlink/getCurrentMc.js.map +1 -0
- package/dist/analog/commands/downlink/getExAbsArchiveDaysMc.d.ts +15 -0
- package/dist/analog/commands/downlink/getExAbsArchiveDaysMc.js +44 -0
- package/dist/analog/commands/downlink/getExAbsArchiveDaysMc.js.map +1 -0
- package/dist/analog/commands/downlink/getExAbsArchiveHoursMc.d.ts +15 -0
- package/dist/analog/commands/downlink/getExAbsArchiveHoursMc.js +44 -0
- package/dist/analog/commands/downlink/getExAbsArchiveHoursMc.js.map +1 -0
- package/dist/analog/commands/downlink/getExAbsCurrentMc.d.ts +8 -0
- package/dist/analog/commands/downlink/getExAbsCurrentMc.js +26 -0
- package/dist/analog/commands/downlink/getExAbsCurrentMc.js.map +1 -0
- package/dist/analog/commands/downlink/getLmicInfo.d.ts +8 -0
- package/dist/analog/commands/downlink/getLmicInfo.js +26 -0
- package/dist/analog/commands/downlink/getLmicInfo.js.map +1 -0
- package/dist/analog/commands/downlink/getParameter.d.ts +9 -0
- package/dist/analog/commands/downlink/getParameter.js +118 -0
- package/dist/analog/commands/downlink/getParameter.js.map +1 -0
- package/dist/analog/commands/downlink/getSignalQuality.d.ts +8 -0
- package/dist/analog/commands/downlink/getSignalQuality.js +26 -0
- package/dist/analog/commands/downlink/getSignalQuality.js.map +1 -0
- package/dist/analog/commands/downlink/getStatus.d.ts +8 -0
- package/dist/analog/commands/downlink/getStatus.js +26 -0
- package/dist/analog/commands/downlink/getStatus.js.map +1 -0
- package/dist/analog/commands/downlink/getTime2000.d.ts +8 -0
- package/dist/analog/commands/downlink/getTime2000.js +26 -0
- package/dist/analog/commands/downlink/getTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/index.d.ts +28 -24
- package/dist/analog/commands/downlink/index.js +28 -24
- package/dist/analog/commands/downlink/index.js.map +1 -1
- package/dist/analog/commands/downlink/setParameter.d.ts +9 -0
- package/dist/analog/commands/downlink/setParameter.js +738 -0
- package/dist/analog/commands/downlink/setParameter.js.map +1 -0
- package/dist/analog/commands/downlink/setTime2000.d.ts +22 -0
- package/dist/analog/commands/downlink/setTime2000.js +44 -0
- package/dist/analog/commands/downlink/setTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/softRestart.d.ts +8 -0
- package/dist/analog/commands/downlink/softRestart.js +26 -0
- package/dist/analog/commands/downlink/softRestart.js.map +1 -0
- package/dist/analog/commands/downlink/updateRun.d.ts +8 -0
- package/dist/analog/commands/downlink/updateRun.js +26 -0
- package/dist/analog/commands/downlink/updateRun.js.map +1 -0
- package/dist/analog/commands/downlink/usWaterMeterCommand.d.ts +22 -0
- package/dist/analog/commands/downlink/usWaterMeterCommand.js +34 -0
- package/dist/analog/commands/downlink/usWaterMeterCommand.js.map +1 -0
- package/dist/analog/commands/downlink/verifyImage.d.ts +8 -0
- package/dist/analog/commands/downlink/verifyImage.js +26 -0
- package/dist/analog/commands/downlink/verifyImage.js.map +1 -0
- package/dist/analog/commands/downlink/writeImage.d.ts +13 -0
- package/dist/analog/commands/downlink/writeImage.js +39 -0
- package/dist/analog/commands/downlink/writeImage.js.map +1 -0
- package/dist/analog/commands/index.d.ts +9 -2
- package/dist/analog/commands/index.js +6 -2
- package/dist/analog/commands/index.js.map +1 -1
- package/dist/analog/commands/uplink/correctTime2000.d.ts +12 -0
- package/dist/analog/commands/uplink/correctTime2000.js +50 -0
- package/dist/analog/commands/uplink/correctTime2000.js.map +1 -0
- package/dist/analog/commands/uplink/current.d.ts +9 -0
- package/dist/analog/commands/uplink/current.js +34 -0
- package/dist/analog/commands/uplink/current.js.map +1 -0
- package/dist/analog/commands/uplink/currentMc.d.ts +12 -0
- package/dist/analog/commands/uplink/currentMc.js +95 -0
- package/dist/analog/commands/uplink/currentMc.js.map +1 -0
- package/dist/analog/commands/uplink/dataSegment.d.ts +1 -0
- package/dist/analog/commands/uplink/dataSegment.js +2 -0
- package/dist/analog/commands/uplink/dataSegment.js.map +1 -0
- package/dist/analog/commands/uplink/day.d.ts +15 -0
- package/dist/analog/commands/uplink/day.js +51 -0
- package/dist/analog/commands/uplink/day.js.map +1 -0
- package/dist/analog/commands/uplink/dayMc.d.ts +13 -0
- package/dist/analog/commands/uplink/dayMc.js +54 -0
- package/dist/analog/commands/uplink/dayMc.js.map +1 -0
- package/dist/analog/commands/uplink/exAbsCurrentMc.d.ts +13 -0
- package/dist/analog/commands/uplink/exAbsCurrentMc.js +35 -0
- package/dist/analog/commands/uplink/exAbsCurrentMc.js.map +1 -0
- package/dist/analog/commands/uplink/exAbsDayMc.d.ts +15 -0
- package/dist/analog/commands/uplink/exAbsDayMc.js +44 -0
- package/dist/analog/commands/uplink/exAbsDayMc.js.map +1 -0
- package/dist/analog/commands/uplink/exAbsHourMc.d.ts +15 -0
- package/dist/analog/commands/uplink/exAbsHourMc.js +55 -0
- package/dist/analog/commands/uplink/exAbsHourMc.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveDays.d.ts +15 -0
- package/dist/analog/commands/uplink/getArchiveDays.js +45 -0
- package/dist/analog/commands/uplink/getArchiveDays.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveDaysMc.d.ts +16 -0
- package/dist/analog/commands/uplink/getArchiveDaysMc.js +71 -0
- package/dist/analog/commands/uplink/getArchiveDaysMc.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveEvents.d.ts +19 -0
- package/dist/analog/commands/uplink/getArchiveEvents.js +101 -0
- package/dist/analog/commands/uplink/getArchiveEvents.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveHours.d.ts +9 -0
- package/dist/analog/commands/uplink/getArchiveHours.js +36 -0
- package/dist/analog/commands/uplink/getArchiveHours.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveHoursMc.d.ts +16 -0
- package/dist/analog/commands/uplink/getArchiveHoursMc.js +58 -0
- package/dist/analog/commands/uplink/getArchiveHoursMc.js.map +1 -0
- package/dist/analog/commands/uplink/getArchiveHoursMcEx.d.ts +9 -0
- package/dist/analog/commands/uplink/getArchiveHoursMcEx.js +59 -0
- package/dist/analog/commands/uplink/getArchiveHoursMcEx.js.map +1 -0
- package/dist/analog/commands/uplink/getBatteryStatus.d.ts +17 -0
- package/dist/analog/commands/uplink/getBatteryStatus.js +52 -0
- package/dist/analog/commands/uplink/getBatteryStatus.js.map +1 -0
- package/dist/analog/commands/uplink/getChannelsStatus.d.ts +23 -0
- package/dist/analog/commands/uplink/getChannelsStatus.js +159 -0
- package/dist/analog/commands/uplink/getChannelsStatus.js.map +1 -0
- package/dist/analog/commands/uplink/getChannelsTypes.d.ts +16 -0
- package/dist/analog/commands/uplink/getChannelsTypes.js +30 -0
- package/dist/analog/commands/uplink/getChannelsTypes.js.map +1 -0
- package/dist/analog/commands/uplink/getExAbsArchiveDaysMc.d.ts +16 -0
- package/dist/analog/commands/uplink/getExAbsArchiveDaysMc.js +69 -0
- package/dist/analog/commands/uplink/getExAbsArchiveDaysMc.js.map +1 -0
- package/dist/analog/commands/uplink/getExAbsArchiveHoursMc.d.ts +16 -0
- package/dist/analog/commands/uplink/getExAbsArchiveHoursMc.js +54 -0
- package/dist/analog/commands/uplink/getExAbsArchiveHoursMc.js.map +1 -0
- package/dist/analog/commands/uplink/getLmicInfo.d.ts +18 -0
- package/dist/analog/commands/uplink/getLmicInfo.js +67 -0
- package/dist/analog/commands/uplink/getLmicInfo.js.map +1 -0
- package/dist/analog/commands/uplink/getParameter.d.ts +9 -0
- package/dist/analog/commands/uplink/getParameter.js +175 -0
- package/dist/analog/commands/uplink/getParameter.js.map +1 -0
- package/dist/analog/commands/uplink/hour.d.ts +9 -0
- package/dist/analog/commands/uplink/hour.js +36 -0
- package/dist/analog/commands/uplink/hour.js.map +1 -0
- package/dist/analog/commands/uplink/hourMc.d.ts +15 -0
- package/dist/analog/commands/uplink/hourMc.js +45 -0
- package/dist/analog/commands/uplink/hourMc.js.map +1 -0
- package/dist/analog/commands/uplink/hourMcEx.d.ts +9 -0
- package/dist/analog/commands/uplink/hourMcEx.js +41 -0
- package/dist/analog/commands/uplink/hourMcEx.js.map +1 -0
- package/dist/analog/commands/uplink/index.d.ts +38 -33
- package/dist/analog/commands/uplink/index.js +38 -33
- package/dist/analog/commands/uplink/index.js.map +1 -1
- package/dist/analog/commands/uplink/lastEvent.d.ts +17 -0
- package/dist/analog/commands/uplink/lastEvent.js +158 -0
- package/dist/analog/commands/uplink/lastEvent.js.map +1 -0
- package/dist/analog/commands/uplink/newEvent.d.ts +49 -0
- package/dist/analog/commands/uplink/newEvent.js +276 -0
- package/dist/analog/commands/uplink/newEvent.js.map +1 -0
- package/dist/analog/commands/uplink/setParameter.d.ts +13 -0
- package/dist/analog/commands/uplink/setParameter.js +51 -0
- package/dist/analog/commands/uplink/setParameter.js.map +1 -0
- package/dist/analog/commands/uplink/setTime2000.d.ts +12 -0
- package/dist/analog/commands/uplink/setTime2000.js +40 -0
- package/dist/analog/commands/uplink/setTime2000.js.map +1 -0
- package/dist/analog/commands/uplink/signalQuality.d.ts +16 -0
- package/dist/analog/commands/uplink/signalQuality.js +57 -0
- package/dist/analog/commands/uplink/signalQuality.js.map +1 -0
- package/dist/analog/commands/uplink/softRestart.d.ts +8 -0
- package/dist/analog/commands/uplink/softRestart.js +26 -0
- package/dist/analog/commands/uplink/softRestart.js.map +1 -0
- package/dist/analog/commands/uplink/status.d.ts +20 -0
- package/dist/analog/commands/uplink/status.js +217 -0
- package/dist/analog/commands/uplink/status.js.map +1 -0
- package/dist/analog/commands/uplink/time2000.d.ts +14 -0
- package/dist/analog/commands/uplink/time2000.js +43 -0
- package/dist/analog/commands/uplink/time2000.js.map +1 -0
- package/dist/analog/commands/uplink/updateRun.d.ts +8 -0
- package/dist/analog/commands/uplink/updateRun.js +26 -0
- package/dist/analog/commands/uplink/updateRun.js.map +1 -0
- package/dist/analog/commands/uplink/usWaterMeterBatteryStatus.d.ts +14 -0
- package/dist/analog/commands/uplink/usWaterMeterBatteryStatus.js +44 -0
- package/dist/analog/commands/uplink/usWaterMeterBatteryStatus.js.map +1 -0
- package/dist/analog/commands/uplink/usWaterMeterCommand.d.ts +12 -0
- package/dist/analog/commands/uplink/usWaterMeterCommand.js +35 -0
- package/dist/analog/commands/uplink/usWaterMeterCommand.js.map +1 -0
- package/dist/analog/commands/uplink/verifyImage.d.ts +12 -0
- package/dist/analog/commands/uplink/verifyImage.js +33 -0
- package/dist/analog/commands/uplink/verifyImage.js.map +1 -0
- package/dist/analog/commands/uplink/writeImage.d.ts +12 -0
- package/dist/analog/commands/uplink/writeImage.js +34 -0
- package/dist/analog/commands/uplink/writeImage.js.map +1 -0
- package/dist/analog/constants/archive.d.ts +1 -0
- package/dist/analog/constants/archive.js +2 -0
- package/dist/analog/constants/archive.js.map +1 -0
- package/dist/analog/constants/channelNames.d.ts +2 -0
- package/dist/analog/constants/channelNames.js +4 -0
- package/dist/analog/constants/channelNames.js.map +1 -0
- package/dist/analog/constants/channelTypes.d.ts +5 -0
- package/dist/analog/constants/channelTypes.js +6 -0
- package/dist/analog/constants/channelTypes.js.map +1 -0
- package/dist/analog/constants/deviceParameterNames.d.ts +2 -0
- package/dist/analog/constants/deviceParameterNames.js +4 -0
- package/dist/analog/constants/deviceParameterNames.js.map +1 -0
- package/dist/analog/constants/deviceParameters.d.ts +9 -0
- package/dist/analog/constants/deviceParameters.js +9 -0
- package/dist/analog/constants/deviceParameters.js.map +1 -1
- package/dist/analog/constants/downlinkIds.d.ts +28 -0
- package/dist/analog/constants/downlinkIds.js +29 -0
- package/dist/analog/constants/downlinkIds.js.map +1 -0
- package/dist/analog/constants/downlinkNames.d.ts +2 -0
- package/dist/analog/constants/downlinkNames.js +4 -0
- package/dist/analog/constants/downlinkNames.js.map +1 -0
- package/dist/analog/constants/eventNames.d.ts +2 -0
- package/dist/analog/constants/eventNames.js +4 -0
- package/dist/analog/constants/eventNames.js.map +1 -0
- package/dist/analog/constants/events.d.ts +5 -0
- package/dist/analog/constants/events.js +5 -0
- package/dist/analog/constants/events.js.map +1 -1
- package/dist/analog/constants/hardwareTypes.d.ts +4 -0
- package/dist/analog/constants/hardwareTypes.js +4 -0
- package/dist/analog/constants/hardwareTypes.js.map +1 -1
- package/dist/analog/constants/index.d.ts +10 -0
- package/dist/analog/constants/index.js +10 -0
- package/dist/analog/constants/index.js.map +1 -1
- package/dist/analog/constants/rx2SpreadFactorNames.d.ts +2 -0
- package/dist/analog/constants/rx2SpreadFactorNames.js +4 -0
- package/dist/analog/constants/rx2SpreadFactorNames.js.map +1 -0
- package/dist/analog/constants/uplinkIds.d.ts +38 -0
- package/dist/analog/constants/uplinkIds.js +39 -0
- package/dist/analog/constants/uplinkIds.js.map +1 -0
- package/dist/analog/constants/uplinkNames.d.ts +2 -0
- package/dist/analog/constants/uplinkNames.js +4 -0
- package/dist/analog/constants/uplinkNames.js.map +1 -0
- package/dist/analog/index.d.ts +2 -2
- package/dist/analog/index.js +2 -2
- package/dist/analog/index.js.map +1 -1
- package/dist/analog/message/downlink.d.ts +6 -0
- package/dist/analog/message/downlink.js +66 -0
- package/dist/analog/message/downlink.js.map +1 -0
- package/dist/analog/message/index.d.ts +2 -0
- package/dist/analog/message/index.js +3 -0
- package/dist/analog/message/index.js.map +1 -0
- package/dist/analog/message/types.d.ts +17 -0
- package/dist/analog/message/types.js +2 -0
- package/dist/analog/message/types.js.map +1 -0
- package/dist/analog/message/uplink.d.ts +6 -0
- package/dist/analog/message/uplink.js +86 -0
- package/dist/analog/message/uplink.js.map +1 -0
- package/dist/analog/message/wrappers.d.ts +6 -0
- package/dist/analog/message/wrappers.js +96 -0
- package/dist/analog/message/wrappers.js.map +1 -0
- package/dist/analog/utils/CommandBinaryBuffer.d.ts +380 -0
- package/dist/analog/utils/CommandBinaryBuffer.js +1336 -0
- package/dist/analog/utils/CommandBinaryBuffer.js.map +1 -0
- package/dist/analog/utils/DataSegmentsCollector.d.ts +8 -0
- package/dist/analog/utils/DataSegmentsCollector.js +50 -0
- package/dist/analog/utils/DataSegmentsCollector.js.map +1 -0
- package/dist/analog/utils/command.d.ts +31 -0
- package/dist/analog/utils/command.js +6 -0
- package/dist/analog/utils/command.js.map +1 -0
- package/dist/analog/utils/frame.d.ts +1 -0
- package/dist/analog/utils/frame.js +2 -0
- package/dist/analog/utils/frame.js.map +1 -0
- package/dist/analog/utils/header.d.ts +7 -0
- package/dist/analog/utils/header.js +56 -0
- package/dist/analog/utils/header.js.map +1 -0
- package/dist/analog/utils/index.d.ts +3 -0
- package/dist/analog/utils/index.js +4 -0
- package/dist/analog/utils/index.js.map +1 -0
- package/dist/analog/utils/message.d.ts +3 -0
- package/dist/analog/utils/message.js +10 -0
- package/dist/analog/utils/message.js.map +1 -0
- package/dist/analog/utils/splitBytesToDataSegments.d.ts +6 -0
- package/dist/analog/utils/splitBytesToDataSegments.js +28 -0
- package/dist/analog/utils/splitBytesToDataSegments.js.map +1 -0
- package/dist/analog/utils/time.d.ts +4 -0
- package/dist/analog/utils/time.js.map +1 -0
- package/dist/config.d.ts +3 -0
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.js +0 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mtx1/commands/downlink/activateRatePlan.d.ts +17 -0
- package/dist/mtx1/commands/downlink/activateRatePlan.js +52 -0
- package/dist/mtx1/commands/downlink/activateRatePlan.js.map +1 -0
- package/dist/mtx1/commands/downlink/getBv.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getBv.js +31 -0
- package/dist/mtx1/commands/downlink/getBv.js.map +1 -0
- package/dist/mtx1/commands/downlink/getCorrectTime.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getCorrectTime.js +31 -0
- package/dist/mtx1/commands/downlink/getCorrectTime.js.map +1 -0
- package/dist/mtx1/commands/downlink/getCriticalEvent.d.ts +17 -0
- package/dist/mtx1/commands/downlink/getCriticalEvent.js +58 -0
- package/dist/mtx1/commands/downlink/getCriticalEvent.js.map +1 -0
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.js +31 -0
- package/dist/mtx1/commands/downlink/getCurrentStatusMeter.js.map +1 -0
- package/dist/mtx1/commands/downlink/getCurrentValues.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getCurrentValues.js +31 -0
- package/dist/mtx1/commands/downlink/getCurrentValues.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDateTime.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getDateTime.js +31 -0
- package/dist/mtx1/commands/downlink/getDateTime.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayDemand.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getDayDemand.js +73 -0
- package/dist/mtx1/commands/downlink/getDayDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayDemandExport.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getDayDemandExport.js +73 -0
- package/dist/mtx1/commands/downlink/getDayDemandExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemand.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemand.js +42 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandExport.d.ts +14 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandExport.js +42 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.js +31 -0
- package/dist/mtx1/commands/downlink/getDayMaxDemandPrevious.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDayProfile.d.ts +17 -0
- package/dist/mtx1/commands/downlink/getDayProfile.js +38 -0
- package/dist/mtx1/commands/downlink/getDayProfile.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDemand.d.ts +12 -0
- package/dist/mtx1/commands/downlink/getDemand.js +46 -0
- package/dist/mtx1/commands/downlink/getDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDemandParameters.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getDemandParameters.js +29 -0
- package/dist/mtx1/commands/downlink/getDemandParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDeviceId.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getDeviceId.js +31 -0
- package/dist/mtx1/commands/downlink/getDeviceId.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDeviceType.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getDeviceType.js +31 -0
- package/dist/mtx1/commands/downlink/getDeviceType.js.map +1 -0
- package/dist/mtx1/commands/downlink/getDisplayParam.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getDisplayParam.js +35 -0
- package/dist/mtx1/commands/downlink/getDisplayParam.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEnergy.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getEnergy.js +55 -0
- package/dist/mtx1/commands/downlink/getEnergy.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEnergyDayPrevious.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getEnergyDayPrevious.js +57 -0
- package/dist/mtx1/commands/downlink/getEnergyDayPrevious.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEnergyExport.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getEnergyExport.js +55 -0
- package/dist/mtx1/commands/downlink/getEnergyExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEnergyExportDayPrevious.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getEnergyExportDayPrevious.js +57 -0
- package/dist/mtx1/commands/downlink/getEnergyExportDayPrevious.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEventStatus.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getEventStatus.js +31 -0
- package/dist/mtx1/commands/downlink/getEventStatus.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEvents.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getEvents.js +49 -0
- package/dist/mtx1/commands/downlink/getEvents.js.map +1 -0
- package/dist/mtx1/commands/downlink/getEventsCounters.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getEventsCounters.js +31 -0
- package/dist/mtx1/commands/downlink/getEventsCounters.js.map +1 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues.js +31 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues.js.map +1 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.js +31 -0
- package/dist/mtx1/commands/downlink/getExtendedCurrentValues2.js.map +1 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemand.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemand.js +42 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandExport.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandExport.js +42 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.js +31 -0
- package/dist/mtx1/commands/downlink/getHalfHourDemandPrevious.js.map +1 -0
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.d.ts +19 -0
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.js +59 -0
- package/dist/mtx1/commands/downlink/getHalfHourEnergies.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.js +31 -0
- package/dist/mtx1/commands/downlink/getMagneticFieldThreshold.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMeterInfo.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getMeterInfo.js +31 -0
- package/dist/mtx1/commands/downlink/getMeterInfo.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMonthDemand.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getMonthDemand.js +42 -0
- package/dist/mtx1/commands/downlink/getMonthDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMonthDemandExport.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getMonthDemandExport.js +42 -0
- package/dist/mtx1/commands/downlink/getMonthDemandExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemand.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemand.js +33 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemand.js.map +1 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemandExport.d.ts +16 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemandExport.js +33 -0
- package/dist/mtx1/commands/downlink/getMonthMaxDemandExport.js.map +1 -0
- package/dist/mtx1/commands/downlink/getOperatorParameters.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getOperatorParameters.js +31 -0
- package/dist/mtx1/commands/downlink/getOperatorParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.js +31 -0
- package/dist/mtx1/commands/downlink/getOperatorParametersExtended3.js.map +1 -0
- package/dist/mtx1/commands/downlink/getRatePlanInfo.d.ts +15 -0
- package/dist/mtx1/commands/downlink/getRatePlanInfo.js +29 -0
- package/dist/mtx1/commands/downlink/getRatePlanInfo.js.map +1 -0
- package/dist/mtx1/commands/downlink/getSaldo.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getSaldo.js +31 -0
- package/dist/mtx1/commands/downlink/getSaldo.js.map +1 -0
- package/dist/mtx1/commands/downlink/getSaldoParameters.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getSaldoParameters.js +29 -0
- package/dist/mtx1/commands/downlink/getSaldoParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/getSeasonProfile.d.ts +17 -0
- package/dist/mtx1/commands/downlink/getSeasonProfile.js +38 -0
- package/dist/mtx1/commands/downlink/getSeasonProfile.js.map +1 -0
- package/dist/mtx1/commands/downlink/getSpecialDay.d.ts +17 -0
- package/dist/mtx1/commands/downlink/getSpecialDay.js +38 -0
- package/dist/mtx1/commands/downlink/getSpecialDay.js.map +1 -0
- package/dist/mtx1/commands/downlink/getVersion.d.ts +11 -0
- package/dist/mtx1/commands/downlink/getVersion.js +31 -0
- package/dist/mtx1/commands/downlink/getVersion.js.map +1 -0
- package/dist/mtx1/commands/downlink/index.d.ts +65 -0
- package/dist/mtx1/commands/downlink/index.js +66 -0
- package/dist/mtx1/commands/downlink/index.js.map +1 -0
- package/dist/mtx1/commands/downlink/prepareRatePlan.d.ts +16 -0
- package/dist/mtx1/commands/downlink/prepareRatePlan.js +42 -0
- package/dist/mtx1/commands/downlink/prepareRatePlan.js.map +1 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.d.ts +11 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.js +31 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxDay.js.map +1 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.d.ts +11 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.js +31 -0
- package/dist/mtx1/commands/downlink/resetPowerMaxMonth.js.map +1 -0
- package/dist/mtx1/commands/downlink/runTariffPlan.d.ts +15 -0
- package/dist/mtx1/commands/downlink/runTariffPlan.js +27 -0
- package/dist/mtx1/commands/downlink/runTariffPlan.js.map +1 -0
- package/dist/mtx1/commands/downlink/setAccessKey.d.ts +16 -0
- package/dist/mtx1/commands/downlink/setAccessKey.js +46 -0
- package/dist/mtx1/commands/downlink/setAccessKey.js.map +1 -0
- package/dist/mtx1/commands/downlink/setCorrectDateTime.d.ts +15 -0
- package/dist/mtx1/commands/downlink/setCorrectDateTime.js +49 -0
- package/dist/mtx1/commands/downlink/setCorrectDateTime.js.map +1 -0
- package/dist/mtx1/commands/downlink/setCorrectTime.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setCorrectTime.js +49 -0
- package/dist/mtx1/commands/downlink/setCorrectTime.js.map +1 -0
- package/dist/mtx1/commands/downlink/setDateTime.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setDateTime.js +45 -0
- package/dist/mtx1/commands/downlink/setDateTime.js.map +1 -0
- package/dist/mtx1/commands/downlink/setDayProfile.d.ts +18 -0
- package/dist/mtx1/commands/downlink/setDayProfile.js +105 -0
- package/dist/mtx1/commands/downlink/setDayProfile.js.map +1 -0
- package/dist/mtx1/commands/downlink/setDemandParameters.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setDemandParameters.js +41 -0
- package/dist/mtx1/commands/downlink/setDemandParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/setDisplayParam.d.ts +16 -0
- package/dist/mtx1/commands/downlink/setDisplayParam.js +55 -0
- package/dist/mtx1/commands/downlink/setDisplayParam.js.map +1 -0
- package/dist/mtx1/commands/downlink/setOperatorParameters.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setOperatorParameters.js +187 -0
- package/dist/mtx1/commands/downlink/setOperatorParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.js +51 -0
- package/dist/mtx1/commands/downlink/setOperatorParametersExtended3.js.map +1 -0
- package/dist/mtx1/commands/downlink/setSaldo.d.ts +22 -0
- package/dist/mtx1/commands/downlink/setSaldo.js +58 -0
- package/dist/mtx1/commands/downlink/setSaldo.js.map +1 -0
- package/dist/mtx1/commands/downlink/setSaldoParameters.d.ts +12 -0
- package/dist/mtx1/commands/downlink/setSaldoParameters.js +50 -0
- package/dist/mtx1/commands/downlink/setSaldoParameters.js.map +1 -0
- package/dist/mtx1/commands/downlink/setSeasonProfile.d.ts +17 -0
- package/dist/mtx1/commands/downlink/setSeasonProfile.js +66 -0
- package/dist/mtx1/commands/downlink/setSeasonProfile.js.map +1 -0
- package/dist/mtx1/commands/downlink/setSpecialDay.d.ts +17 -0
- package/dist/mtx1/commands/downlink/setSpecialDay.js +49 -0
- package/dist/mtx1/commands/downlink/setSpecialDay.js.map +1 -0
- package/dist/mtx1/commands/downlink/setSpecialOperation.d.ts +18 -0
- package/dist/mtx1/commands/downlink/setSpecialOperation.js +96 -0
- package/dist/mtx1/commands/downlink/setSpecialOperation.js.map +1 -0
- package/dist/mtx1/commands/downlink/turnRelayOff.d.ts +11 -0
- package/dist/mtx1/commands/downlink/turnRelayOff.js +31 -0
- package/dist/mtx1/commands/downlink/turnRelayOff.js.map +1 -0
- package/dist/mtx1/commands/downlink/turnRelayOn.d.ts +11 -0
- package/dist/mtx1/commands/downlink/turnRelayOn.js +31 -0
- package/dist/mtx1/commands/downlink/turnRelayOn.js.map +1 -0
- package/dist/mtx1/commands/index.d.ts +9 -0
- package/dist/mtx1/commands/index.js +7 -0
- package/dist/mtx1/commands/index.js.map +1 -0
- package/dist/mtx1/commands/uplink/activateRatePlan.d.ts +11 -0
- package/dist/mtx1/commands/uplink/activateRatePlan.js +31 -0
- package/dist/mtx1/commands/uplink/activateRatePlan.js.map +1 -0
- package/dist/mtx1/commands/uplink/errorDataFrameResponse.d.ts +16 -0
- package/dist/mtx1/commands/uplink/errorDataFrameResponse.js +42 -0
- package/dist/mtx1/commands/uplink/errorDataFrameResponse.js.map +1 -0
- package/dist/mtx1/commands/uplink/errorResponse.d.ts +18 -0
- package/dist/mtx1/commands/uplink/errorResponse.js +51 -0
- package/dist/mtx1/commands/uplink/errorResponse.js.map +1 -0
- package/dist/mtx1/commands/uplink/getBv.d.ts +15 -0
- package/dist/mtx1/commands/uplink/getBv.js +39 -0
- package/dist/mtx1/commands/uplink/getBv.js.map +1 -0
- package/dist/mtx1/commands/uplink/getCorrectTime.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getCorrectTime.js +46 -0
- package/dist/mtx1/commands/uplink/getCorrectTime.js.map +1 -0
- package/dist/mtx1/commands/uplink/getCriticalEvent.d.ts +26 -0
- package/dist/mtx1/commands/uplink/getCriticalEvent.js +73 -0
- package/dist/mtx1/commands/uplink/getCriticalEvent.js.map +1 -0
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.d.ts +39 -0
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.js +134 -0
- package/dist/mtx1/commands/uplink/getCurrentStatusMeter.js.map +1 -0
- package/dist/mtx1/commands/uplink/getCurrentValues.d.ts +24 -0
- package/dist/mtx1/commands/uplink/getCurrentValues.js +83 -0
- package/dist/mtx1/commands/uplink/getCurrentValues.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDateTime.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDateTime.js +45 -0
- package/dist/mtx1/commands/uplink/getDateTime.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayDemand.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getDayDemand.js +102 -0
- package/dist/mtx1/commands/uplink/getDayDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayDemandExport.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getDayDemandExport.js +101 -0
- package/dist/mtx1/commands/uplink/getDayDemandExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayEnergies.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getDayEnergies.js +95 -0
- package/dist/mtx1/commands/uplink/getDayEnergies.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemand.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemand.js +68 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandExport.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandExport.js +68 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandPrevious.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandPrevious.js +68 -0
- package/dist/mtx1/commands/uplink/getDayMaxDemandPrevious.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayMaxPower.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getDayMaxPower.js +103 -0
- package/dist/mtx1/commands/uplink/getDayMaxPower.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDayProfile.d.ts +16 -0
- package/dist/mtx1/commands/uplink/getDayProfile.js +78 -0
- package/dist/mtx1/commands/uplink/getDayProfile.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDemand.d.ts +20 -0
- package/dist/mtx1/commands/uplink/getDemand.js +347 -0
- package/dist/mtx1/commands/uplink/getDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDemandParameters.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDemandParameters.js +41 -0
- package/dist/mtx1/commands/uplink/getDemandParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDeviceId.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDeviceId.js +41 -0
- package/dist/mtx1/commands/uplink/getDeviceId.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDeviceType.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getDeviceType.js +66 -0
- package/dist/mtx1/commands/uplink/getDeviceType.js.map +1 -0
- package/dist/mtx1/commands/uplink/getDisplayParam.d.ts +16 -0
- package/dist/mtx1/commands/uplink/getDisplayParam.js +48 -0
- package/dist/mtx1/commands/uplink/getDisplayParam.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEnergy.d.ts +13 -0
- package/dist/mtx1/commands/uplink/getEnergy.js +83 -0
- package/dist/mtx1/commands/uplink/getEnergy.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEnergyDayPrevious.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getEnergyDayPrevious.js +100 -0
- package/dist/mtx1/commands/uplink/getEnergyDayPrevious.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEnergyExport.d.ts +13 -0
- package/dist/mtx1/commands/uplink/getEnergyExport.js +83 -0
- package/dist/mtx1/commands/uplink/getEnergyExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEnergyExportDayPrevious.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getEnergyExportDayPrevious.js +100 -0
- package/dist/mtx1/commands/uplink/getEnergyExportDayPrevious.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEventStatus.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getEventStatus.js +52 -0
- package/dist/mtx1/commands/uplink/getEventStatus.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEvents.d.ts +19 -0
- package/dist/mtx1/commands/uplink/getEvents.js +88 -0
- package/dist/mtx1/commands/uplink/getEvents.js.map +1 -0
- package/dist/mtx1/commands/uplink/getEventsCounters.d.ts +21 -0
- package/dist/mtx1/commands/uplink/getEventsCounters.js +63 -0
- package/dist/mtx1/commands/uplink/getEventsCounters.js.map +1 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.js +52 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues.js.map +1 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues2.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues2.js +78 -0
- package/dist/mtx1/commands/uplink/getExtendedCurrentValues2.js.map +1 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemand.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemand.js +263 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandExport.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandExport.js +263 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.js +263 -0
- package/dist/mtx1/commands/uplink/getHalfHourDemandPrevious.js.map +1 -0
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.d.ts +19 -0
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.js +114 -0
- package/dist/mtx1/commands/uplink/getHalfHourEnergies.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.js +48 -0
- package/dist/mtx1/commands/uplink/getMagneticFieldThreshold.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMeterInfo.d.ts +15 -0
- package/dist/mtx1/commands/uplink/getMeterInfo.js +27 -0
- package/dist/mtx1/commands/uplink/getMeterInfo.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMonthDemand.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getMonthDemand.js +46 -0
- package/dist/mtx1/commands/uplink/getMonthDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMonthDemandExport.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getMonthDemandExport.js +46 -0
- package/dist/mtx1/commands/uplink/getMonthDemandExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemand.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemand.js +75 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemand.js.map +1 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemandExport.d.ts +18 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemandExport.js +75 -0
- package/dist/mtx1/commands/uplink/getMonthMaxDemandExport.js.map +1 -0
- package/dist/mtx1/commands/uplink/getOperatorParameters.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getOperatorParameters.js +183 -0
- package/dist/mtx1/commands/uplink/getOperatorParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/getOperatorParametersExtended3.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getOperatorParametersExtended3.js +51 -0
- package/dist/mtx1/commands/uplink/getOperatorParametersExtended3.js.map +1 -0
- package/dist/mtx1/commands/uplink/getRatePlanInfo.d.ts +17 -0
- package/dist/mtx1/commands/uplink/getRatePlanInfo.js +68 -0
- package/dist/mtx1/commands/uplink/getRatePlanInfo.js.map +1 -0
- package/dist/mtx1/commands/uplink/getSaldo.d.ts +23 -0
- package/dist/mtx1/commands/uplink/getSaldo.js +68 -0
- package/dist/mtx1/commands/uplink/getSaldo.js.map +1 -0
- package/dist/mtx1/commands/uplink/getSaldoParameters.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getSaldoParameters.js +77 -0
- package/dist/mtx1/commands/uplink/getSaldoParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/getSeasonProfile.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getSeasonProfile.js +40 -0
- package/dist/mtx1/commands/uplink/getSeasonProfile.js.map +1 -0
- package/dist/mtx1/commands/uplink/getSpecialDay.d.ts +12 -0
- package/dist/mtx1/commands/uplink/getSpecialDay.js +41 -0
- package/dist/mtx1/commands/uplink/getSpecialDay.js.map +1 -0
- package/dist/mtx1/commands/uplink/getVersion.d.ts +15 -0
- package/dist/mtx1/commands/uplink/getVersion.js +32 -0
- package/dist/mtx1/commands/uplink/getVersion.js.map +1 -0
- package/dist/mtx1/commands/uplink/index.d.ts +69 -0
- package/dist/mtx1/commands/uplink/index.js +70 -0
- package/dist/mtx1/commands/uplink/index.js.map +1 -0
- package/dist/mtx1/commands/uplink/prepareRatePlan.d.ts +11 -0
- package/dist/mtx1/commands/uplink/prepareRatePlan.js +31 -0
- package/dist/mtx1/commands/uplink/prepareRatePlan.js.map +1 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.d.ts +11 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.js +31 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxDay.js.map +1 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.d.ts +11 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.js +31 -0
- package/dist/mtx1/commands/uplink/resetPowerMaxMonth.js.map +1 -0
- package/dist/mtx1/commands/uplink/runTariffPlan.d.ts +11 -0
- package/dist/mtx1/commands/uplink/runTariffPlan.js +31 -0
- package/dist/mtx1/commands/uplink/runTariffPlan.js.map +1 -0
- package/dist/mtx1/commands/uplink/setAccessKey.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setAccessKey.js +31 -0
- package/dist/mtx1/commands/uplink/setAccessKey.js.map +1 -0
- package/dist/mtx1/commands/uplink/setCorrectDateTime.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setCorrectDateTime.js +31 -0
- package/dist/mtx1/commands/uplink/setCorrectDateTime.js.map +1 -0
- package/dist/mtx1/commands/uplink/setCorrectTime.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setCorrectTime.js +31 -0
- package/dist/mtx1/commands/uplink/setCorrectTime.js.map +1 -0
- package/dist/mtx1/commands/uplink/setDateTime.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setDateTime.js +31 -0
- package/dist/mtx1/commands/uplink/setDateTime.js.map +1 -0
- package/dist/mtx1/commands/uplink/setDayProfile.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setDayProfile.js +31 -0
- package/dist/mtx1/commands/uplink/setDayProfile.js.map +1 -0
- package/dist/mtx1/commands/uplink/setDemandParameters.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setDemandParameters.js +30 -0
- package/dist/mtx1/commands/uplink/setDemandParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/setDisplayParam.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setDisplayParam.js +31 -0
- package/dist/mtx1/commands/uplink/setDisplayParam.js.map +1 -0
- package/dist/mtx1/commands/uplink/setOperatorParameters.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setOperatorParameters.js +31 -0
- package/dist/mtx1/commands/uplink/setOperatorParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.js +31 -0
- package/dist/mtx1/commands/uplink/setOperatorParametersExtended3.js.map +1 -0
- package/dist/mtx1/commands/uplink/setSaldo.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setSaldo.js +31 -0
- package/dist/mtx1/commands/uplink/setSaldo.js.map +1 -0
- package/dist/mtx1/commands/uplink/setSaldoParameters.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setSaldoParameters.js +31 -0
- package/dist/mtx1/commands/uplink/setSaldoParameters.js.map +1 -0
- package/dist/mtx1/commands/uplink/setSeasonProfile.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setSeasonProfile.js +31 -0
- package/dist/mtx1/commands/uplink/setSeasonProfile.js.map +1 -0
- package/dist/mtx1/commands/uplink/setSpecialDay.d.ts +11 -0
- package/dist/mtx1/commands/uplink/setSpecialDay.js +31 -0
- package/dist/mtx1/commands/uplink/setSpecialDay.js.map +1 -0
- package/dist/mtx1/commands/uplink/setSpecialOperation.d.ts +16 -0
- package/dist/mtx1/commands/uplink/setSpecialOperation.js +81 -0
- package/dist/mtx1/commands/uplink/setSpecialOperation.js.map +1 -0
- package/dist/mtx1/commands/uplink/turnRelayOff.d.ts +11 -0
- package/dist/mtx1/commands/uplink/turnRelayOff.js +31 -0
- package/dist/mtx1/commands/uplink/turnRelayOff.js.map +1 -0
- package/dist/mtx1/commands/uplink/turnRelayOn.d.ts +11 -0
- package/dist/mtx1/commands/uplink/turnRelayOn.js +31 -0
- package/dist/mtx1/commands/uplink/turnRelayOn.js.map +1 -0
- package/dist/mtx1/constants/accessLevelNames.d.ts +2 -0
- package/dist/mtx1/constants/accessLevelNames.js +4 -0
- package/dist/mtx1/constants/accessLevelNames.js.map +1 -0
- package/dist/mtx1/constants/accessLevels.js.map +1 -0
- package/dist/mtx1/constants/baudRates.d.ts +18 -0
- package/dist/mtx1/constants/baudRates.js +20 -0
- package/dist/mtx1/constants/baudRates.js.map +1 -0
- package/dist/mtx1/constants/criticalEventNames.d.ts +2 -0
- package/dist/mtx1/constants/criticalEventNames.js +4 -0
- package/dist/mtx1/constants/criticalEventNames.js.map +1 -0
- package/dist/mtx1/constants/criticalEvents.d.ts +15 -0
- package/dist/mtx1/constants/criticalEvents.js +16 -0
- package/dist/mtx1/constants/criticalEvents.js.map +1 -0
- package/dist/mtx1/constants/demandTypes.d.ts +4 -0
- package/dist/mtx1/constants/demandTypes.js +5 -0
- package/dist/mtx1/constants/demandTypes.js.map +1 -0
- package/dist/mtx1/constants/displayModes.d.ts +2 -0
- package/dist/mtx1/constants/displayModes.js +3 -0
- package/dist/mtx1/constants/displayModes.js.map +1 -0
- package/dist/mtx1/constants/downlinkIds.d.ts +65 -0
- package/dist/mtx1/constants/downlinkIds.js +66 -0
- package/dist/mtx1/constants/downlinkIds.js.map +1 -0
- package/dist/mtx1/constants/downlinkNames.d.ts +2 -0
- package/dist/mtx1/constants/downlinkNames.js +4 -0
- package/dist/mtx1/constants/downlinkNames.js.map +1 -0
- package/dist/mtx1/constants/energyTypes.d.ts +2 -0
- package/dist/mtx1/constants/energyTypes.js +3 -0
- package/dist/mtx1/constants/energyTypes.js.map +1 -0
- package/dist/mtx1/constants/eventNames.d.ts +2 -0
- package/dist/mtx1/constants/eventNames.js +4 -0
- package/dist/mtx1/constants/eventNames.js.map +1 -0
- package/dist/mtx1/constants/events.d.ts +114 -0
- package/dist/mtx1/constants/events.js +115 -0
- package/dist/mtx1/constants/events.js.map +1 -0
- package/dist/mtx1/constants/frameNames.d.ts +2 -0
- package/dist/mtx1/constants/frameNames.js +4 -0
- package/dist/mtx1/constants/frameNames.js.map +1 -0
- package/dist/mtx1/constants/frameTypes.js.map +1 -0
- package/dist/mtx1/constants/index.d.ts +22 -0
- package/dist/mtx1/constants/index.js +23 -0
- package/dist/mtx1/constants/index.js.map +1 -0
- package/dist/mtx1/constants/resultCodes.js.map +1 -0
- package/dist/mtx1/constants/resultNames.d.ts +2 -0
- package/dist/mtx1/constants/resultNames.js.map +1 -0
- package/dist/mtx1/constants/screenIds.d.ts +29 -0
- package/dist/mtx1/constants/screenIds.js +30 -0
- package/dist/mtx1/constants/screenIds.js.map +1 -0
- package/dist/mtx1/constants/screenNames.d.ts +2 -0
- package/dist/mtx1/constants/screenNames.js.map +1 -0
- package/dist/mtx1/constants/screenSets.js +36 -0
- package/dist/mtx1/constants/screenSets.js.map +1 -0
- package/dist/mtx1/constants/specialOperationTypes.d.ts +1 -0
- package/dist/mtx1/constants/specialOperationTypes.js +2 -0
- package/dist/mtx1/constants/specialOperationTypes.js.map +1 -0
- package/dist/mtx1/constants/uplinkIds.d.ts +5 -0
- package/dist/mtx1/constants/uplinkIds.js +6 -0
- package/dist/mtx1/constants/uplinkIds.js.map +1 -0
- package/dist/mtx1/constants/uplinkNames.d.ts +2 -0
- package/dist/mtx1/constants/uplinkNames.js +4 -0
- package/dist/mtx1/constants/uplinkNames.js.map +1 -0
- package/dist/mtx1/index.d.ts +4 -0
- package/dist/mtx1/index.js +5 -0
- package/dist/mtx1/index.js.map +1 -0
- package/dist/mtx1/message/downlink.d.ts +6 -0
- package/dist/mtx1/message/downlink.js +139 -0
- package/dist/mtx1/message/downlink.js.map +1 -0
- package/dist/mtx1/message/index.d.ts +2 -0
- package/dist/mtx1/message/index.js +3 -0
- package/dist/mtx1/message/index.js.map +1 -0
- package/dist/mtx1/message/readErrorDataFrameResponse.d.ts +4 -0
- package/dist/mtx1/message/readErrorDataFrameResponse.js +45 -0
- package/dist/mtx1/message/readErrorDataFrameResponse.js.map +1 -0
- package/dist/mtx1/message/types.d.ts +19 -0
- package/dist/mtx1/message/types.js +2 -0
- package/dist/mtx1/message/types.js.map +1 -0
- package/dist/mtx1/message/uplink.d.ts +6 -0
- package/dist/mtx1/message/uplink.js +147 -0
- package/dist/mtx1/message/uplink.js.map +1 -0
- package/dist/mtx1/message/wrappers.d.ts +13 -0
- package/dist/mtx1/message/wrappers.js +116 -0
- package/dist/mtx1/message/wrappers.js.map +1 -0
- package/dist/mtx1/types.d.ts +4 -0
- package/dist/mtx1/types.js +2 -0
- package/dist/mtx1/types.js.map +1 -0
- package/dist/mtx1/utils/CommandBinaryBuffer.d.ts +410 -0
- package/dist/mtx1/utils/CommandBinaryBuffer.js +791 -0
- package/dist/mtx1/utils/CommandBinaryBuffer.js.map +1 -0
- package/dist/mtx1/utils/LoraCommandBinaryBuffer.d.ts +53 -0
- package/dist/mtx1/utils/LoraCommandBinaryBuffer.js +286 -0
- package/dist/mtx1/utils/LoraCommandBinaryBuffer.js.map +1 -0
- package/dist/mtx1/utils/command.d.ts +41 -0
- package/dist/mtx1/utils/command.js +7 -0
- package/dist/mtx1/utils/command.js.map +1 -0
- package/dist/mtx1/utils/crypto.d.ts +6 -0
- package/dist/mtx1/utils/crypto.js +38 -0
- package/dist/mtx1/utils/crypto.js.map +1 -0
- package/dist/mtx1/utils/dateTime.d.ts +30 -0
- package/dist/mtx1/utils/dateTime.js.map +1 -0
- package/dist/mtx1/utils/demands.d.ts +12 -0
- package/dist/mtx1/utils/demands.js +68 -0
- package/dist/mtx1/utils/demands.js.map +1 -0
- package/dist/mtx1/utils/deviceType.d.ts +26 -0
- package/dist/mtx1/utils/deviceType.js +264 -0
- package/dist/mtx1/utils/deviceType.js.map +1 -0
- package/dist/mtx1/utils/frame.d.ts +13 -0
- package/dist/mtx1/utils/frame.js +23 -0
- package/dist/mtx1/utils/frame.js.map +1 -0
- package/dist/mtx1/utils/getObisByEnergy.d.ts +2 -0
- package/dist/mtx1/utils/getObisByEnergy.js +6 -0
- package/dist/mtx1/utils/getObisByEnergy.js.map +1 -0
- package/dist/mtx1/utils/index.d.ts +3 -0
- package/dist/mtx1/utils/index.js +4 -0
- package/dist/mtx1/utils/index.js.map +1 -0
- package/dist/mtx1/utils/message.d.ts +4 -0
- package/dist/mtx1/utils/message.js +15 -0
- package/dist/mtx1/utils/message.js.map +1 -0
- package/dist/mtx3/commands/downlink/getCriticalEvent.d.ts +17 -0
- package/dist/mtx3/commands/downlink/getCriticalEvent.js +58 -0
- package/dist/mtx3/commands/downlink/getCriticalEvent.js.map +1 -0
- package/dist/mtx3/commands/downlink/getDayDemand.d.ts +16 -0
- package/dist/mtx3/commands/downlink/getDayDemand.js +73 -0
- package/dist/mtx3/commands/downlink/getDayDemand.js.map +1 -0
- package/dist/mtx3/commands/downlink/getDayDemandExport.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getDayDemandExport.js +42 -0
- package/dist/mtx3/commands/downlink/getDayDemandExport.js.map +1 -0
- package/dist/mtx3/commands/downlink/getDemand.d.ts +12 -0
- package/dist/mtx3/commands/downlink/getDemand.js +50 -0
- package/dist/mtx3/commands/downlink/getDemand.js.map +1 -0
- package/dist/mtx3/commands/downlink/getDisplayParam.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getDisplayParam.js +35 -0
- package/dist/mtx3/commands/downlink/getDisplayParam.js.map +1 -0
- package/dist/mtx3/commands/downlink/getEnergy.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getEnergy.js +31 -0
- package/dist/mtx3/commands/downlink/getEnergy.js.map +1 -0
- package/dist/mtx3/commands/downlink/getEnergyDayPrevious.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getEnergyDayPrevious.js +57 -0
- package/dist/mtx3/commands/downlink/getEnergyDayPrevious.js.map +1 -0
- package/dist/mtx3/commands/downlink/getEnergyExport.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getEnergyExport.js +31 -0
- package/dist/mtx3/commands/downlink/getEnergyExport.js.map +1 -0
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.js +31 -0
- package/dist/mtx3/commands/downlink/getEnergyExportDayPrevious.js.map +1 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.d.ts +18 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.js +52 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandChannel.js.map +1 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.js +42 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVare.js.map +1 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.js +42 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVareExport.js.map +1 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.js +42 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVari.js.map +1 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.d.ts +15 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.js +42 -0
- package/dist/mtx3/commands/downlink/getHalfHourDemandVariExport.js.map +1 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.js +31 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended.js.map +1 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.js +31 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended2.js.map +1 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.d.ts +11 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.js +31 -0
- package/dist/mtx3/commands/downlink/getOperatorParametersExtended4.js.map +1 -0
- package/dist/mtx3/commands/downlink/index.d.ts +71 -0
- package/dist/mtx3/commands/downlink/index.js +72 -0
- package/dist/mtx3/commands/downlink/index.js.map +1 -0
- package/dist/mtx3/commands/downlink/setDisplayParam.d.ts +16 -0
- package/dist/mtx3/commands/downlink/setDisplayParam.js +56 -0
- package/dist/mtx3/commands/downlink/setDisplayParam.js.map +1 -0
- package/dist/mtx3/commands/downlink/setOperatorParameters.d.ts +12 -0
- package/dist/mtx3/commands/downlink/setOperatorParameters.js +251 -0
- package/dist/mtx3/commands/downlink/setOperatorParameters.js.map +1 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.d.ts +12 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.js +55 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended.js.map +1 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.d.ts +12 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.js +204 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended2.js.map +1 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.d.ts +12 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.js +205 -0
- package/dist/mtx3/commands/downlink/setOperatorParametersExtended4.js.map +1 -0
- package/dist/mtx3/commands/index.d.ts +9 -0
- package/dist/mtx3/commands/index.js +7 -0
- package/dist/mtx3/commands/index.js.map +1 -0
- package/dist/mtx3/commands/uplink/errorResponse.d.ts +5 -0
- package/dist/mtx3/commands/uplink/errorResponse.js +25 -0
- package/dist/mtx3/commands/uplink/errorResponse.js.map +1 -0
- package/dist/mtx3/commands/uplink/getCriticalEvent.d.ts +26 -0
- package/dist/mtx3/commands/uplink/getCriticalEvent.js +73 -0
- package/dist/mtx3/commands/uplink/getCriticalEvent.js.map +1 -0
- package/dist/mtx3/commands/uplink/getCurrentStatusMeter.d.ts +33 -0
- package/dist/mtx3/commands/uplink/getCurrentStatusMeter.js +138 -0
- package/dist/mtx3/commands/uplink/getCurrentStatusMeter.js.map +1 -0
- package/dist/mtx3/commands/uplink/getCurrentValues.d.ts +28 -0
- package/dist/mtx3/commands/uplink/getCurrentValues.js +112 -0
- package/dist/mtx3/commands/uplink/getCurrentValues.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDayDemand.d.ts +18 -0
- package/dist/mtx3/commands/uplink/getDayDemand.js +108 -0
- package/dist/mtx3/commands/uplink/getDayDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDayDemandExport.d.ts +19 -0
- package/dist/mtx3/commands/uplink/getDayDemandExport.js +70 -0
- package/dist/mtx3/commands/uplink/getDayDemandExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemand.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemand.js +92 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemandExport.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemandExport.js +92 -0
- package/dist/mtx3/commands/uplink/getDayMaxDemandExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDemand.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getDemand.js +102 -0
- package/dist/mtx3/commands/uplink/getDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getDisplayParam.d.ts +16 -0
- package/dist/mtx3/commands/uplink/getDisplayParam.js +48 -0
- package/dist/mtx3/commands/uplink/getDisplayParam.js.map +1 -0
- package/dist/mtx3/commands/uplink/getEnergy.d.ts +14 -0
- package/dist/mtx3/commands/uplink/getEnergy.js +49 -0
- package/dist/mtx3/commands/uplink/getEnergy.js.map +1 -0
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.d.ts +18 -0
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.js +108 -0
- package/dist/mtx3/commands/uplink/getEnergyDayPrevious.js.map +1 -0
- package/dist/mtx3/commands/uplink/getEnergyExport.d.ts +14 -0
- package/dist/mtx3/commands/uplink/getEnergyExport.js +53 -0
- package/dist/mtx3/commands/uplink/getEnergyExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.d.ts +14 -0
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.js +53 -0
- package/dist/mtx3/commands/uplink/getEnergyExportDayPrevious.js.map +1 -0
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.d.ts +28 -0
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.js +109 -0
- package/dist/mtx3/commands/uplink/getExtendedCurrentValues.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemand.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemand.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.d.ts +17 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.js +126 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandChannel.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVare.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVareExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVari.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.js +105 -0
- package/dist/mtx3/commands/uplink/getHalfHourDemandVariExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.d.ts +14 -0
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.js +57 -0
- package/dist/mtx3/commands/uplink/getHalfHourEnergies.js.map +1 -0
- package/dist/mtx3/commands/uplink/getMonthDemand.d.ts +20 -0
- package/dist/mtx3/commands/uplink/getMonthDemand.js +68 -0
- package/dist/mtx3/commands/uplink/getMonthDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getMonthDemandExport.d.ts +20 -0
- package/dist/mtx3/commands/uplink/getMonthDemandExport.js +69 -0
- package/dist/mtx3/commands/uplink/getMonthDemandExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemand.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemand.js +91 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemand.js.map +1 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemandExport.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemandExport.js +91 -0
- package/dist/mtx3/commands/uplink/getMonthMaxDemandExport.js.map +1 -0
- package/dist/mtx3/commands/uplink/getOperatorParameters.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getOperatorParameters.js +248 -0
- package/dist/mtx3/commands/uplink/getOperatorParameters.js.map +1 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.js +52 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended.js.map +1 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.js +201 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended2.js.map +1 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.d.ts +12 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.js +202 -0
- package/dist/mtx3/commands/uplink/getOperatorParametersExtended4.js.map +1 -0
- package/dist/mtx3/commands/uplink/index.d.ts +74 -0
- package/dist/mtx3/commands/uplink/index.js +75 -0
- package/dist/mtx3/commands/uplink/index.js.map +1 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.d.ts +11 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.js +31 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended.js.map +1 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.d.ts +11 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.js +31 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended2.js.map +1 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.d.ts +11 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.js +31 -0
- package/dist/mtx3/commands/uplink/setOperatorParametersExtended4.js.map +1 -0
- package/dist/mtx3/constants/baudRates.d.ts +18 -0
- package/dist/mtx3/constants/baudRates.js +20 -0
- package/dist/mtx3/constants/baudRates.js.map +1 -0
- package/dist/mtx3/constants/demandTypes.d.ts +45 -0
- package/dist/mtx3/constants/demandTypes.js +46 -0
- package/dist/mtx3/constants/demandTypes.js.map +1 -0
- package/dist/mtx3/constants/displayModes.d.ts +4 -0
- package/dist/mtx3/constants/displayModes.js +5 -0
- package/dist/mtx3/constants/displayModes.js.map +1 -0
- package/dist/mtx3/constants/dlms.d.ts +5 -0
- package/dist/mtx3/constants/dlms.js +6 -0
- package/dist/mtx3/constants/dlms.js.map +1 -0
- package/dist/mtx3/constants/downlinkIds.d.ts +71 -0
- package/dist/mtx3/constants/downlinkIds.js +72 -0
- package/dist/mtx3/constants/downlinkIds.js.map +1 -0
- package/dist/mtx3/constants/downlinkNames.d.ts +2 -0
- package/dist/mtx3/constants/downlinkNames.js +4 -0
- package/dist/mtx3/constants/downlinkNames.js.map +1 -0
- package/dist/mtx3/constants/energyTypes.d.ts +2 -0
- package/dist/mtx3/constants/energyTypes.js +3 -0
- package/dist/mtx3/constants/energyTypes.js.map +1 -0
- package/dist/mtx3/constants/eventNames.d.ts +2 -0
- package/dist/mtx3/constants/eventNames.js +4 -0
- package/dist/mtx3/constants/eventNames.js.map +1 -0
- package/dist/mtx3/constants/events.d.ts +153 -0
- package/dist/mtx3/constants/events.js +154 -0
- package/dist/mtx3/constants/events.js.map +1 -0
- package/dist/mtx3/constants/index.d.ts +14 -0
- package/dist/mtx3/constants/index.js +15 -0
- package/dist/mtx3/constants/index.js.map +1 -0
- package/dist/mtx3/constants/screenIds.d.ts +124 -0
- package/dist/mtx3/constants/screenIds.js +125 -0
- package/dist/mtx3/constants/screenIds.js.map +1 -0
- package/dist/mtx3/constants/screenNames.d.ts +2 -0
- package/dist/mtx3/constants/screenNames.js +4 -0
- package/dist/mtx3/constants/screenNames.js.map +1 -0
- package/dist/mtx3/constants/screenSets.d.ts +2 -0
- package/dist/mtx3/constants/screenSets.js +131 -0
- package/dist/mtx3/constants/screenSets.js.map +1 -0
- package/dist/mtx3/constants/uplinkIds.d.ts +4 -0
- package/dist/mtx3/constants/uplinkIds.js +5 -0
- package/dist/mtx3/constants/uplinkIds.js.map +1 -0
- package/dist/mtx3/constants/uplinkNames.d.ts +2 -0
- package/dist/mtx3/constants/uplinkNames.js +4 -0
- package/dist/mtx3/constants/uplinkNames.js.map +1 -0
- package/dist/mtx3/index.d.ts +4 -0
- package/dist/mtx3/index.js +5 -0
- package/dist/mtx3/index.js.map +1 -0
- package/dist/mtx3/message/downlink.d.ts +6 -0
- package/dist/mtx3/message/downlink.js +152 -0
- package/dist/mtx3/message/downlink.js.map +1 -0
- package/dist/mtx3/message/index.d.ts +2 -0
- package/dist/mtx3/message/index.js +3 -0
- package/dist/mtx3/message/index.js.map +1 -0
- package/dist/mtx3/message/uplink.d.ts +6 -0
- package/dist/mtx3/message/uplink.js +158 -0
- package/dist/mtx3/message/uplink.js.map +1 -0
- package/dist/mtx3/types.d.ts +3 -0
- package/dist/mtx3/types.js +2 -0
- package/dist/mtx3/types.js.map +1 -0
- package/dist/mtx3/utils/CommandBinaryBuffer.d.ts +502 -0
- package/dist/mtx3/utils/CommandBinaryBuffer.js +672 -0
- package/dist/mtx3/utils/CommandBinaryBuffer.js.map +1 -0
- package/dist/mtx3/utils/index.d.ts +1 -0
- package/dist/mtx3/utils/index.js +2 -0
- package/dist/mtx3/utils/index.js.map +1 -0
- package/dist/mtx3/utils/mapEnergiesToObisCodes.d.ts +4 -0
- package/dist/mtx3/utils/mapEnergiesToObisCodes.js +28 -0
- package/dist/mtx3/utils/mapEnergiesToObisCodes.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getArchiveState.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getArchiveState.js +57 -0
- package/dist/obis-observer/commands/downlink/getArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getLorawanInfo.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getLorawanInfo.js +23 -0
- package/dist/obis-observer/commands/downlink/getLorawanInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getLorawanState.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getLorawanState.js +23 -0
- package/dist/obis-observer/commands/downlink/getLorawanState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterDate.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterDate.js +37 -0
- package/dist/obis-observer/commands/downlink/getMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterId.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterId.js +38 -0
- package/dist/obis-observer/commands/downlink/getMeterId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterIdList.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterIdList.js +24 -0
- package/dist/obis-observer/commands/downlink/getMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterInfo.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterInfo.js +37 -0
- package/dist/obis-observer/commands/downlink/getMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterProfile.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterProfile.js +24 -0
- package/dist/obis-observer/commands/downlink/getMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterProfileIdList.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterProfileIdList.js +24 -0
- package/dist/obis-observer/commands/downlink/getMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getMeterReadoutState.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/getMeterReadoutState.js +38 -0
- package/dist/obis-observer/commands/downlink/getMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObisContent.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getObisContent.js +46 -0
- package/dist/obis-observer/commands/downlink/getObisContent.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObisContentById.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getObisContentById.js +42 -0
- package/dist/obis-observer/commands/downlink/getObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObisIdList.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getObisIdList.js +25 -0
- package/dist/obis-observer/commands/downlink/getObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObisInfo.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getObisInfo.js +25 -0
- package/dist/obis-observer/commands/downlink/getObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObserverCapabilities.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getObserverCapabilities.js +23 -0
- package/dist/obis-observer/commands/downlink/getObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObserverInfo.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getObserverInfo.js +23 -0
- package/dist/obis-observer/commands/downlink/getObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObserverSingleMode.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getObserverSingleMode.js +23 -0
- package/dist/obis-observer/commands/downlink/getObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getObserverUptime.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getObserverUptime.js +23 -0
- package/dist/obis-observer/commands/downlink/getObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getSerialPort.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/getSerialPort.js +23 -0
- package/dist/obis-observer/commands/downlink/getSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/downlink/getSettingsMemory.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/getSettingsMemory.js +43 -0
- package/dist/obis-observer/commands/downlink/getSettingsMemory.js.map +1 -0
- package/dist/obis-observer/commands/downlink/index.d.ts +37 -37
- package/dist/obis-observer/commands/downlink/index.js +37 -37
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/downlink/readArchive.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/readArchive.js +43 -0
- package/dist/obis-observer/commands/downlink/readArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/readMeterArchive.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/readMeterArchive.js +51 -0
- package/dist/obis-observer/commands/downlink/readMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/readMeterArchiveWithDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/readMeterArchiveWithDate.js +55 -0
- package/dist/obis-observer/commands/downlink/readMeterArchiveWithDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/reboot.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/reboot.js +23 -0
- package/dist/obis-observer/commands/downlink/reboot.js.map +1 -0
- package/dist/obis-observer/commands/downlink/removeMeter.d.ts +12 -0
- package/dist/obis-observer/commands/downlink/removeMeter.js +40 -0
- package/dist/obis-observer/commands/downlink/removeMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/removeMeterProfile.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/removeMeterProfile.js +30 -0
- package/dist/obis-observer/commands/downlink/removeMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/removeObis.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/removeObis.js +36 -0
- package/dist/obis-observer/commands/downlink/removeObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/resetSettings.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/resetSettings.js +23 -0
- package/dist/obis-observer/commands/downlink/resetSettings.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setLorawanActivationMethod.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/setLorawanActivationMethod.js +30 -0
- package/dist/obis-observer/commands/downlink/setLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setObserverSingleMode.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/setObserverSingleMode.js +41 -0
- package/dist/obis-observer/commands/downlink/setObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setSerialPort.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/setSerialPort.js +59 -0
- package/dist/obis-observer/commands/downlink/setSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setupMeter.d.ts +15 -0
- package/dist/obis-observer/commands/downlink/setupMeter.js +103 -0
- package/dist/obis-observer/commands/downlink/setupMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setupMeterProfile.d.ts +15 -0
- package/dist/obis-observer/commands/downlink/setupMeterProfile.js +52 -0
- package/dist/obis-observer/commands/downlink/setupMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/setupObis.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/setupObis.js +82 -0
- package/dist/obis-observer/commands/downlink/setupObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/updateImageVerify.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/updateImageVerify.js +38 -0
- package/dist/obis-observer/commands/downlink/updateImageVerify.js.map +1 -0
- package/dist/obis-observer/commands/downlink/updateImageWrite.d.ts +14 -0
- package/dist/obis-observer/commands/downlink/updateImageWrite.js +42 -0
- package/dist/obis-observer/commands/downlink/updateImageWrite.js.map +1 -0
- package/dist/obis-observer/commands/downlink/updateRun.d.ts +9 -0
- package/dist/obis-observer/commands/downlink/updateRun.js +28 -0
- package/dist/obis-observer/commands/downlink/updateRun.js.map +1 -0
- package/dist/obis-observer/commands/index.d.ts +9 -2
- package/dist/obis-observer/commands/index.js +6 -2
- package/dist/obis-observer/commands/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/errorResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/errorResponse.js +25 -0
- package/dist/obis-observer/commands/uplink/errorResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getArchiveState.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/getArchiveState.js +88 -0
- package/dist/obis-observer/commands/uplink/getArchiveState.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getLorawanInfo.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/getLorawanInfo.js +49 -0
- package/dist/obis-observer/commands/uplink/getLorawanInfo.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getLorawanState.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/getLorawanState.js +51 -0
- package/dist/obis-observer/commands/uplink/getLorawanState.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterDate.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getMeterDate.js +38 -0
- package/dist/obis-observer/commands/uplink/getMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterId.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getMeterId.js +39 -0
- package/dist/obis-observer/commands/uplink/getMeterId.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterIdList.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getMeterIdList.js +43 -0
- package/dist/obis-observer/commands/uplink/getMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterInfo.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getMeterInfo.js +112 -0
- package/dist/obis-observer/commands/uplink/getMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterProfile.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getMeterProfile.js +40 -0
- package/dist/obis-observer/commands/uplink/getMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterProfileIdList.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getMeterProfileIdList.js +43 -0
- package/dist/obis-observer/commands/uplink/getMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getMeterReadoutState.d.ts +24 -0
- package/dist/obis-observer/commands/uplink/getMeterReadoutState.js +107 -0
- package/dist/obis-observer/commands/uplink/getMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObisContent.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getObisContent.js +38 -0
- package/dist/obis-observer/commands/uplink/getObisContent.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObisContentById.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getObisContentById.js +54 -0
- package/dist/obis-observer/commands/uplink/getObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObisContentByIdString.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getObisContentByIdString.js +38 -0
- package/dist/obis-observer/commands/uplink/getObisContentByIdString.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObisIdList.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getObisIdList.js +57 -0
- package/dist/obis-observer/commands/uplink/getObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObisInfo.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/getObisInfo.js +99 -0
- package/dist/obis-observer/commands/uplink/getObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObserverCapabilities.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/getObserverCapabilities.js +45 -0
- package/dist/obis-observer/commands/uplink/getObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObserverInfo.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/getObserverInfo.js +58 -0
- package/dist/obis-observer/commands/uplink/getObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObserverSingleMode.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getObserverSingleMode.js +24 -0
- package/dist/obis-observer/commands/uplink/getObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getObserverUptime.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/getObserverUptime.js +38 -0
- package/dist/obis-observer/commands/uplink/getObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getSerialPort.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/getSerialPort.js +40 -0
- package/dist/obis-observer/commands/uplink/getSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/uplink/getSettingsMemory.d.ts +15 -0
- package/dist/obis-observer/commands/uplink/getSettingsMemory.js +46 -0
- package/dist/obis-observer/commands/uplink/getSettingsMemory.js.map +1 -0
- package/dist/obis-observer/commands/uplink/index.d.ts +41 -41
- package/dist/obis-observer/commands/uplink/index.js +41 -41
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/observationReport.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/observationReport.js +56 -0
- package/dist/obis-observer/commands/uplink/observationReport.js.map +1 -0
- package/dist/obis-observer/commands/uplink/observationReportString.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/observationReportString.js +57 -0
- package/dist/obis-observer/commands/uplink/observationReportString.js.map +1 -0
- package/dist/obis-observer/commands/uplink/readArchive.d.ts +20 -0
- package/dist/obis-observer/commands/uplink/readArchive.js +108 -0
- package/dist/obis-observer/commands/uplink/readArchive.js.map +1 -0
- package/dist/obis-observer/commands/uplink/readMeterArchive.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/readMeterArchive.js +103 -0
- package/dist/obis-observer/commands/uplink/readMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/uplink/readMeterArchiveWithDate.d.ts +14 -0
- package/dist/obis-observer/commands/uplink/readMeterArchiveWithDate.js +65 -0
- package/dist/obis-observer/commands/uplink/readMeterArchiveWithDate.js.map +1 -0
- package/dist/obis-observer/commands/uplink/reboot.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/reboot.js +30 -0
- package/dist/obis-observer/commands/uplink/reboot.js.map +1 -0
- package/dist/obis-observer/commands/uplink/removeMeter.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/removeMeter.js +30 -0
- package/dist/obis-observer/commands/uplink/removeMeter.js.map +1 -0
- package/dist/obis-observer/commands/uplink/removeMeterProfile.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/removeMeterProfile.js +30 -0
- package/dist/obis-observer/commands/uplink/removeMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/uplink/removeObis.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/removeObis.js +30 -0
- package/dist/obis-observer/commands/uplink/removeObis.js.map +1 -0
- package/dist/obis-observer/commands/uplink/resetSettings.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/resetSettings.js +30 -0
- package/dist/obis-observer/commands/uplink/resetSettings.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setLorawanActivationMethod.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setLorawanActivationMethod.js +30 -0
- package/dist/obis-observer/commands/uplink/setLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setObserverSingleMode.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setObserverSingleMode.js +30 -0
- package/dist/obis-observer/commands/uplink/setObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setSerialPort.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setSerialPort.js +30 -0
- package/dist/obis-observer/commands/uplink/setSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setupMeter.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setupMeter.js +30 -0
- package/dist/obis-observer/commands/uplink/setupMeter.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setupMeterProfile.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setupMeterProfile.js +30 -0
- package/dist/obis-observer/commands/uplink/setupMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/uplink/setupObis.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/setupObis.js +30 -0
- package/dist/obis-observer/commands/uplink/setupObis.js.map +1 -0
- package/dist/obis-observer/commands/uplink/updateImageVerify.d.ts +12 -0
- package/dist/obis-observer/commands/uplink/updateImageVerify.js +33 -0
- package/dist/obis-observer/commands/uplink/updateImageVerify.js.map +1 -0
- package/dist/obis-observer/commands/uplink/updateImageWrite.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/updateImageWrite.js +30 -0
- package/dist/obis-observer/commands/uplink/updateImageWrite.js.map +1 -0
- package/dist/obis-observer/commands/uplink/updateRun.d.ts +9 -0
- package/dist/obis-observer/commands/uplink/updateRun.js +30 -0
- package/dist/obis-observer/commands/uplink/updateRun.js.map +1 -0
- package/dist/obis-observer/constants/downlinkIds.d.ts +37 -0
- package/dist/obis-observer/constants/downlinkIds.js +38 -0
- package/dist/obis-observer/constants/downlinkIds.js.map +1 -0
- package/dist/obis-observer/constants/downlinkNames.d.ts +2 -0
- package/dist/obis-observer/constants/downlinkNames.js +4 -0
- package/dist/obis-observer/constants/downlinkNames.js.map +1 -0
- package/dist/obis-observer/constants/index.d.ts +6 -1
- package/dist/obis-observer/constants/index.js +6 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/uplinkIds.d.ts +41 -0
- package/dist/obis-observer/constants/uplinkIds.js +42 -0
- package/dist/obis-observer/constants/uplinkIds.js.map +1 -0
- package/dist/obis-observer/constants/uplinkNames.d.ts +2 -0
- package/dist/obis-observer/constants/uplinkNames.js +4 -0
- package/dist/obis-observer/constants/uplinkNames.js.map +1 -0
- package/dist/obis-observer/index.d.ts +1 -1
- package/dist/obis-observer/index.js +1 -1
- package/dist/obis-observer/index.js.map +1 -1
- package/dist/obis-observer/message/downlink.d.ts +5 -0
- package/dist/obis-observer/message/downlink.js +83 -0
- package/dist/obis-observer/message/downlink.js.map +1 -0
- package/dist/obis-observer/message/index.d.ts +2 -0
- package/dist/obis-observer/message/index.js +3 -0
- package/dist/obis-observer/message/index.js.map +1 -0
- package/dist/obis-observer/message/types.d.ts +13 -0
- package/dist/obis-observer/message/types.js +2 -0
- package/dist/obis-observer/message/types.js.map +1 -0
- package/dist/obis-observer/message/uplink.d.ts +5 -0
- package/dist/obis-observer/message/uplink.js +91 -0
- package/dist/obis-observer/message/uplink.js.map +1 -0
- package/dist/obis-observer/message/wrappers.d.ts +5 -0
- package/dist/obis-observer/message/wrappers.js +48 -0
- package/dist/obis-observer/message/wrappers.js.map +1 -0
- package/dist/obis-observer/utils/CommandBinaryBuffer.d.ts +63 -0
- package/dist/obis-observer/utils/CommandBinaryBuffer.js +157 -0
- package/dist/obis-observer/utils/CommandBinaryBuffer.js.map +1 -0
- package/dist/obis-observer/utils/command.d.ts +27 -0
- package/dist/obis-observer/utils/command.js +9 -0
- package/dist/obis-observer/utils/command.js.map +1 -0
- package/dist/obis-observer/utils/frame.d.ts +1 -0
- package/dist/obis-observer/utils/frame.js +2 -0
- package/dist/obis-observer/utils/frame.js.map +1 -0
- package/dist/obis-observer/utils/index.d.ts +2 -0
- package/dist/obis-observer/utils/index.js +2 -0
- package/dist/obis-observer/utils/index.js.map +1 -1
- package/dist/obis-observer/utils/message.d.ts +4 -0
- package/dist/obis-observer/utils/message.js +15 -0
- package/dist/obis-observer/utils/message.js.map +1 -0
- package/dist/obis-observer/utils/obis.d.ts +1 -1
- package/dist/obis-observer/utils/obis.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/utils/BinaryBuffer.d.ts +32 -28
- package/dist/utils/BinaryBuffer.js +215 -79
- package/dist/utils/BinaryBuffer.js.map +1 -1
- package/dist/utils/bitSet.js +4 -4
- package/dist/utils/bitSet.js.map +1 -1
- package/dist/utils/bytesConversion.d.ts +3 -2
- package/dist/utils/bytesConversion.js.map +1 -1
- package/dist/utils/calculateCrc16.d.ts +3 -2
- package/dist/utils/calculateCrc16.js.map +1 -1
- package/dist/utils/calculateLrc.d.ts +2 -1
- package/dist/utils/calculateLrc.js.map +1 -1
- package/dist/utils/frame.d.ts +15 -12
- package/dist/utils/frame.js +43 -48
- package/dist/utils/frame.js.map +1 -1
- package/dist/utils/frameCollector.d.ts +3 -4
- package/dist/utils/frameCollector.js +8 -5
- package/dist/utils/frameCollector.js.map +1 -1
- package/dist/utils/getBase64FromBytes.d.ts +2 -1
- package/dist/utils/getBase64FromBytes.js +2 -3
- package/dist/utils/getBase64FromBytes.js.map +1 -1
- package/dist/utils/getBytesFromBase64.d.ts +2 -1
- package/dist/utils/getBytesFromBase64.js +3 -1
- package/dist/utils/getBytesFromBase64.js.map +1 -1
- package/dist/utils/getBytesFromHex.d.ts +2 -1
- package/dist/utils/getBytesFromHex.js +12 -4
- package/dist/utils/getBytesFromHex.js.map +1 -1
- package/dist/utils/getCommandsById.d.ts +4 -0
- package/dist/utils/getCommandsById.js +3 -0
- package/dist/utils/getCommandsById.js.map +1 -0
- package/dist/utils/getHexFromBytes.d.ts +2 -1
- package/dist/utils/getHexFromBytes.js +3 -3
- package/dist/utils/getHexFromBytes.js.map +1 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/invertObject.d.ts +1 -1
- package/dist/utils/invertObject.js +8 -3
- package/dist/utils/invertObject.js.map +1 -1
- package/dist/utils/permutations.js.map +1 -1
- package/dist/utils/roundNumber.js +1 -1
- package/dist/utils/roundNumber.js.map +1 -1
- package/dist/utils/validateCommandPayload.d.ts +3 -0
- package/dist/utils/validateCommandPayload.js +14 -0
- package/dist/utils/validateCommandPayload.js.map +1 -0
- package/package.json +26 -9
- package/readme.md +425 -89
- package/dist/Command.d.ts +0 -32
- package/dist/Command.js +0 -31
- package/dist/Command.js.map +0 -1
- package/dist/analog/Command.d.ts +0 -14
- package/dist/analog/Command.js +0 -28
- package/dist/analog/Command.js.map +0 -1
- package/dist/analog/CommandBinaryBuffer.d.ts +0 -382
- package/dist/analog/CommandBinaryBuffer.js +0 -1627
- package/dist/analog/CommandBinaryBuffer.js.map +0 -1
- package/dist/analog/DataSegmentsCollector.d.ts +0 -7
- package/dist/analog/DataSegmentsCollector.js +0 -61
- package/dist/analog/DataSegmentsCollector.js.map +0 -1
- package/dist/analog/UnknownCommand.d.ts +0 -13
- package/dist/analog/UnknownCommand.js +0 -25
- package/dist/analog/UnknownCommand.js.map +0 -1
- package/dist/analog/commands/DataSegmentBase.d.ts +0 -12
- package/dist/analog/commands/DataSegmentBase.js +0 -49
- package/dist/analog/commands/DataSegmentBase.js.map +0 -1
- package/dist/analog/commands/downlink/CorrectTime2000.d.ts +0 -16
- package/dist/analog/commands/downlink/CorrectTime2000.js +0 -45
- package/dist/analog/commands/downlink/CorrectTime2000.js.map +0 -1
- package/dist/analog/commands/downlink/DataSegment.d.ts +0 -4
- package/dist/analog/commands/downlink/DataSegment.js +0 -7
- package/dist/analog/commands/downlink/DataSegment.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveDays.d.ts +0 -17
- package/dist/analog/commands/downlink/GetArchiveDays.js +0 -45
- package/dist/analog/commands/downlink/GetArchiveDays.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveDaysMC.d.ts +0 -18
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js +0 -48
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveEvents.d.ts +0 -17
- package/dist/analog/commands/downlink/GetArchiveEvents.js +0 -37
- package/dist/analog/commands/downlink/GetArchiveEvents.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveHours.d.ts +0 -17
- package/dist/analog/commands/downlink/GetArchiveHours.js +0 -49
- package/dist/analog/commands/downlink/GetArchiveHours.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveHoursMC.d.ts +0 -18
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js +0 -50
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetArchiveHoursMCEx.d.ts +0 -20
- package/dist/analog/commands/downlink/GetArchiveHoursMCEx.js +0 -51
- package/dist/analog/commands/downlink/GetArchiveHoursMCEx.js.map +0 -1
- package/dist/analog/commands/downlink/GetBatteryStatus.d.ts +0 -11
- package/dist/analog/commands/downlink/GetBatteryStatus.js +0 -26
- package/dist/analog/commands/downlink/GetBatteryStatus.js.map +0 -1
- package/dist/analog/commands/downlink/GetCurrent.d.ts +0 -10
- package/dist/analog/commands/downlink/GetCurrent.js +0 -23
- package/dist/analog/commands/downlink/GetCurrent.js.map +0 -1
- package/dist/analog/commands/downlink/GetCurrentMC.d.ts +0 -10
- package/dist/analog/commands/downlink/GetCurrentMC.js +0 -23
- package/dist/analog/commands/downlink/GetCurrentMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.d.ts +0 -18
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js +0 -48
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.d.ts +0 -18
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js +0 -50
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.d.ts +0 -11
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js +0 -26
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js.map +0 -1
- package/dist/analog/commands/downlink/GetLmicInfo.d.ts +0 -10
- package/dist/analog/commands/downlink/GetLmicInfo.js +0 -23
- package/dist/analog/commands/downlink/GetLmicInfo.js.map +0 -1
- package/dist/analog/commands/downlink/GetParameter.d.ts +0 -13
- package/dist/analog/commands/downlink/GetParameter.js +0 -76
- package/dist/analog/commands/downlink/GetParameter.js.map +0 -1
- package/dist/analog/commands/downlink/GetStatus.d.ts +0 -11
- package/dist/analog/commands/downlink/GetStatus.js +0 -26
- package/dist/analog/commands/downlink/GetStatus.js.map +0 -1
- package/dist/analog/commands/downlink/GetTime2000.d.ts +0 -11
- package/dist/analog/commands/downlink/GetTime2000.js +0 -26
- package/dist/analog/commands/downlink/GetTime2000.js.map +0 -1
- package/dist/analog/commands/downlink/SetParameter.d.ts +0 -13
- package/dist/analog/commands/downlink/SetParameter.js +0 -380
- package/dist/analog/commands/downlink/SetParameter.js.map +0 -1
- package/dist/analog/commands/downlink/SetTime2000.d.ts +0 -16
- package/dist/analog/commands/downlink/SetTime2000.js +0 -45
- package/dist/analog/commands/downlink/SetTime2000.js.map +0 -1
- package/dist/analog/commands/downlink/SoftRestart.d.ts +0 -10
- package/dist/analog/commands/downlink/SoftRestart.js +0 -23
- package/dist/analog/commands/downlink/SoftRestart.js.map +0 -1
- package/dist/analog/commands/downlink/UpdateRun.d.ts +0 -10
- package/dist/analog/commands/downlink/UpdateRun.js +0 -23
- package/dist/analog/commands/downlink/UpdateRun.js.map +0 -1
- package/dist/analog/commands/downlink/VerifyImage.d.ts +0 -10
- package/dist/analog/commands/downlink/VerifyImage.js +0 -23
- package/dist/analog/commands/downlink/VerifyImage.js.map +0 -1
- package/dist/analog/commands/downlink/WriteImage.d.ts +0 -16
- package/dist/analog/commands/downlink/WriteImage.js +0 -45
- package/dist/analog/commands/downlink/WriteImage.js.map +0 -1
- package/dist/analog/commands/uplink/CorrectTime2000Response.d.ts +0 -15
- package/dist/analog/commands/uplink/CorrectTime2000Response.js +0 -43
- package/dist/analog/commands/uplink/CorrectTime2000Response.js.map +0 -1
- package/dist/analog/commands/uplink/Current.d.ts +0 -13
- package/dist/analog/commands/uplink/Current.js +0 -33
- package/dist/analog/commands/uplink/Current.js.map +0 -1
- package/dist/analog/commands/uplink/CurrentMC.d.ts +0 -16
- package/dist/analog/commands/uplink/CurrentMC.js +0 -69
- package/dist/analog/commands/uplink/CurrentMC.js.map +0 -1
- package/dist/analog/commands/uplink/DataSegment.d.ts +0 -4
- package/dist/analog/commands/uplink/DataSegment.js +0 -7
- package/dist/analog/commands/uplink/DataSegment.js.map +0 -1
- package/dist/analog/commands/uplink/Day.d.ts +0 -18
- package/dist/analog/commands/uplink/Day.js +0 -53
- package/dist/analog/commands/uplink/Day.js.map +0 -1
- package/dist/analog/commands/uplink/DayMC.d.ts +0 -17
- package/dist/analog/commands/uplink/DayMC.js +0 -52
- package/dist/analog/commands/uplink/DayMC.js.map +0 -1
- package/dist/analog/commands/uplink/ExAbsCurrentMC.d.ts +0 -16
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js +0 -39
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js.map +0 -1
- package/dist/analog/commands/uplink/ExAbsDayMC.d.ts +0 -19
- package/dist/analog/commands/uplink/ExAbsDayMC.js +0 -44
- package/dist/analog/commands/uplink/ExAbsDayMC.js.map +0 -1
- package/dist/analog/commands/uplink/ExAbsHourMC.d.ts +0 -19
- package/dist/analog/commands/uplink/ExAbsHourMC.js +0 -55
- package/dist/analog/commands/uplink/ExAbsHourMC.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.d.ts +0 -19
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js +0 -78
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.d.ts +0 -18
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.js +0 -47
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.d.ts +0 -21
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js +0 -85
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveHoursMCExResponse.d.ts +0 -21
- package/dist/analog/commands/uplink/GetArchiveHoursMCExResponse.js +0 -55
- package/dist/analog/commands/uplink/GetArchiveHoursMCExResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.d.ts +0 -19
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js +0 -53
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetArchiveHoursResponse.d.ts +0 -13
- package/dist/analog/commands/uplink/GetArchiveHoursResponse.js +0 -38
- package/dist/analog/commands/uplink/GetArchiveHoursResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.d.ts +0 -21
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.js +0 -57
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +0 -19
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js +0 -68
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.d.ts +0 -19
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js +0 -55
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetLmicInfoResponse.d.ts +0 -21
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js +0 -65
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js.map +0 -1
- package/dist/analog/commands/uplink/GetParameterResponse.d.ts +0 -13
- package/dist/analog/commands/uplink/GetParameterResponse.js +0 -260
- package/dist/analog/commands/uplink/GetParameterResponse.js.map +0 -1
- package/dist/analog/commands/uplink/Hour.d.ts +0 -13
- package/dist/analog/commands/uplink/Hour.js +0 -38
- package/dist/analog/commands/uplink/Hour.js.map +0 -1
- package/dist/analog/commands/uplink/HourMC.d.ts +0 -20
- package/dist/analog/commands/uplink/HourMC.js +0 -44
- package/dist/analog/commands/uplink/HourMC.js.map +0 -1
- package/dist/analog/commands/uplink/HourMCEx.d.ts +0 -22
- package/dist/analog/commands/uplink/HourMCEx.js +0 -42
- package/dist/analog/commands/uplink/HourMCEx.js.map +0 -1
- package/dist/analog/commands/uplink/LastEvent.d.ts +0 -21
- package/dist/analog/commands/uplink/LastEvent.js +0 -99
- package/dist/analog/commands/uplink/LastEvent.js.map +0 -1
- package/dist/analog/commands/uplink/NewEvent.d.ts +0 -38
- package/dist/analog/commands/uplink/NewEvent.js +0 -189
- package/dist/analog/commands/uplink/NewEvent.js.map +0 -1
- package/dist/analog/commands/uplink/SetParameterResponse.d.ts +0 -16
- package/dist/analog/commands/uplink/SetParameterResponse.js +0 -57
- package/dist/analog/commands/uplink/SetParameterResponse.js.map +0 -1
- package/dist/analog/commands/uplink/SetTime2000Response.d.ts +0 -15
- package/dist/analog/commands/uplink/SetTime2000Response.js +0 -43
- package/dist/analog/commands/uplink/SetTime2000Response.js.map +0 -1
- package/dist/analog/commands/uplink/SoftRestartResponse.d.ts +0 -10
- package/dist/analog/commands/uplink/SoftRestartResponse.js +0 -23
- package/dist/analog/commands/uplink/SoftRestartResponse.js.map +0 -1
- package/dist/analog/commands/uplink/Status.d.ts +0 -23
- package/dist/analog/commands/uplink/Status.js +0 -176
- package/dist/analog/commands/uplink/Status.js.map +0 -1
- package/dist/analog/commands/uplink/Time2000.d.ts +0 -17
- package/dist/analog/commands/uplink/Time2000.js +0 -45
- package/dist/analog/commands/uplink/Time2000.js.map +0 -1
- package/dist/analog/commands/uplink/UpdateRunResponse.d.ts +0 -10
- package/dist/analog/commands/uplink/UpdateRunResponse.js +0 -23
- package/dist/analog/commands/uplink/UpdateRunResponse.js.map +0 -1
- package/dist/analog/commands/uplink/VerifyImageResponse.d.ts +0 -15
- package/dist/analog/commands/uplink/VerifyImageResponse.js +0 -29
- package/dist/analog/commands/uplink/VerifyImageResponse.js.map +0 -1
- package/dist/analog/commands/uplink/WriteImageResponse.d.ts +0 -16
- package/dist/analog/commands/uplink/WriteImageResponse.js +0 -41
- package/dist/analog/commands/uplink/WriteImageResponse.js.map +0 -1
- package/dist/analog/constants/commandRelations.d.ts +0 -6
- package/dist/analog/constants/commandRelations.js +0 -33
- package/dist/analog/constants/commandRelations.js.map +0 -1
- package/dist/analog/frame.d.ts +0 -14
- package/dist/analog/frame.js +0 -29
- package/dist/analog/frame.js.map +0 -1
- package/dist/analog/header.d.ts +0 -13
- package/dist/analog/header.js +0 -60
- package/dist/analog/header.js.map +0 -1
- package/dist/analog/message.d.ts +0 -28
- package/dist/analog/message.js +0 -119
- package/dist/analog/message.js.map +0 -1
- package/dist/analog/splitBytesToDataSegments.d.ts +0 -6
- package/dist/analog/splitBytesToDataSegments.js +0 -28
- package/dist/analog/splitBytesToDataSegments.js.map +0 -1
- package/dist/constants/directions.d.ts +0 -3
- package/dist/constants/directions.js +0 -4
- package/dist/constants/directions.js.map +0 -1
- package/dist/mtx/Command.d.ts +0 -12
- package/dist/mtx/Command.js +0 -9
- package/dist/mtx/Command.js.map +0 -1
- package/dist/mtx/CommandBinaryBuffer.d.ts +0 -254
- package/dist/mtx/CommandBinaryBuffer.js +0 -569
- package/dist/mtx/CommandBinaryBuffer.js.map +0 -1
- package/dist/mtx/UnknownCommand.d.ts +0 -13
- package/dist/mtx/UnknownCommand.js +0 -26
- package/dist/mtx/UnknownCommand.js.map +0 -1
- package/dist/mtx/commands/downlink/ActivateRatePlan.d.ts +0 -20
- package/dist/mtx/commands/downlink/ActivateRatePlan.js +0 -56
- package/dist/mtx/commands/downlink/ActivateRatePlan.js.map +0 -1
- package/dist/mtx/commands/downlink/GetBuildVersion.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetBuildVersion.js +0 -31
- package/dist/mtx/commands/downlink/GetBuildVersion.js.map +0 -1
- package/dist/mtx/commands/downlink/GetCorrectTime.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetCorrectTime.js +0 -31
- package/dist/mtx/commands/downlink/GetCorrectTime.js.map +0 -1
- package/dist/mtx/commands/downlink/GetCurrentValues.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetCurrentValues.js +0 -31
- package/dist/mtx/commands/downlink/GetCurrentValues.js.map +0 -1
- package/dist/mtx/commands/downlink/GetDateTime.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetDateTime.js +0 -31
- package/dist/mtx/commands/downlink/GetDateTime.js.map +0 -1
- package/dist/mtx/commands/downlink/GetDayProfile.d.ts +0 -20
- package/dist/mtx/commands/downlink/GetDayProfile.js +0 -48
- package/dist/mtx/commands/downlink/GetDayProfile.js.map +0 -1
- package/dist/mtx/commands/downlink/GetDeviceId.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetDeviceId.js +0 -31
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +0 -1
- package/dist/mtx/commands/downlink/GetDeviceType.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetDeviceType.js +0 -31
- package/dist/mtx/commands/downlink/GetDeviceType.js.map +0 -1
- package/dist/mtx/commands/downlink/GetDisplayParam.d.ts +0 -18
- package/dist/mtx/commands/downlink/GetDisplayParam.js +0 -39
- package/dist/mtx/commands/downlink/GetDisplayParam.js.map +0 -1
- package/dist/mtx/commands/downlink/GetEnergyCurrent.d.ts +0 -18
- package/dist/mtx/commands/downlink/GetEnergyCurrent.js +0 -49
- package/dist/mtx/commands/downlink/GetEnergyCurrent.js.map +0 -1
- package/dist/mtx/commands/downlink/GetEnergyDay.d.ts +0 -20
- package/dist/mtx/commands/downlink/GetEnergyDay.js +0 -67
- package/dist/mtx/commands/downlink/GetEnergyDay.js.map +0 -1
- package/dist/mtx/commands/downlink/GetEnergyDayPrevious.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetEnergyDayPrevious.js +0 -31
- package/dist/mtx/commands/downlink/GetEnergyDayPrevious.js.map +0 -1
- package/dist/mtx/commands/downlink/GetExtendedCurrentValues.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetExtendedCurrentValues.js +0 -31
- package/dist/mtx/commands/downlink/GetExtendedCurrentValues.js.map +0 -1
- package/dist/mtx/commands/downlink/GetHalfHours.d.ts +0 -15
- package/dist/mtx/commands/downlink/GetHalfHours.js +0 -44
- package/dist/mtx/commands/downlink/GetHalfHours.js.map +0 -1
- package/dist/mtx/commands/downlink/GetOpParams.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetOpParams.js +0 -31
- package/dist/mtx/commands/downlink/GetOpParams.js.map +0 -1
- package/dist/mtx/commands/downlink/GetRatePlanInfo.d.ts +0 -18
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js +0 -39
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js.map +0 -1
- package/dist/mtx/commands/downlink/GetSaldo.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetSaldo.js +0 -31
- package/dist/mtx/commands/downlink/GetSaldo.js.map +0 -1
- package/dist/mtx/commands/downlink/GetSaldoParameters.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetSaldoParameters.js +0 -31
- package/dist/mtx/commands/downlink/GetSaldoParameters.js.map +0 -1
- package/dist/mtx/commands/downlink/GetSeasonProfile.d.ts +0 -20
- package/dist/mtx/commands/downlink/GetSeasonProfile.js +0 -48
- package/dist/mtx/commands/downlink/GetSeasonProfile.js.map +0 -1
- package/dist/mtx/commands/downlink/GetSpecialDay.d.ts +0 -20
- package/dist/mtx/commands/downlink/GetSpecialDay.js +0 -48
- package/dist/mtx/commands/downlink/GetSpecialDay.js.map +0 -1
- package/dist/mtx/commands/downlink/GetVersion.d.ts +0 -13
- package/dist/mtx/commands/downlink/GetVersion.js +0 -31
- package/dist/mtx/commands/downlink/GetVersion.js.map +0 -1
- package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +0 -19
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +0 -47
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +0 -1
- package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +0 -18
- package/dist/mtx/commands/downlink/RunTariffPlan.js +0 -39
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +0 -1
- package/dist/mtx/commands/downlink/SetAccessKey.d.ts +0 -19
- package/dist/mtx/commands/downlink/SetAccessKey.js +0 -51
- package/dist/mtx/commands/downlink/SetAccessKey.js.map +0 -1
- package/dist/mtx/commands/downlink/SetCorrectDateTime.d.ts +0 -18
- package/dist/mtx/commands/downlink/SetCorrectDateTime.js +0 -51
- package/dist/mtx/commands/downlink/SetCorrectDateTime.js.map +0 -1
- package/dist/mtx/commands/downlink/SetCorrectTime.d.ts +0 -15
- package/dist/mtx/commands/downlink/SetCorrectTime.js +0 -49
- package/dist/mtx/commands/downlink/SetCorrectTime.js.map +0 -1
- package/dist/mtx/commands/downlink/SetDateTime.d.ts +0 -15
- package/dist/mtx/commands/downlink/SetDateTime.js +0 -48
- package/dist/mtx/commands/downlink/SetDateTime.js.map +0 -1
- package/dist/mtx/commands/downlink/SetDayProfile.d.ts +0 -21
- package/dist/mtx/commands/downlink/SetDayProfile.js +0 -92
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +0 -1
- package/dist/mtx/commands/downlink/SetDisplayParam.d.ts +0 -19
- package/dist/mtx/commands/downlink/SetDisplayParam.js +0 -55
- package/dist/mtx/commands/downlink/SetDisplayParam.js.map +0 -1
- package/dist/mtx/commands/downlink/SetOpParams.d.ts +0 -15
- package/dist/mtx/commands/downlink/SetOpParams.js +0 -48
- package/dist/mtx/commands/downlink/SetOpParams.js.map +0 -1
- package/dist/mtx/commands/downlink/SetSaldo.d.ts +0 -25
- package/dist/mtx/commands/downlink/SetSaldo.js +0 -63
- package/dist/mtx/commands/downlink/SetSaldo.js.map +0 -1
- package/dist/mtx/commands/downlink/SetSaldoParameters.d.ts +0 -15
- package/dist/mtx/commands/downlink/SetSaldoParameters.js +0 -53
- package/dist/mtx/commands/downlink/SetSaldoParameters.js.map +0 -1
- package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +0 -20
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +0 -63
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +0 -1
- package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +0 -20
- package/dist/mtx/commands/downlink/SetSpecialDay.js +0 -53
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +0 -1
- package/dist/mtx/commands/downlink/TurnRelayOff.d.ts +0 -13
- package/dist/mtx/commands/downlink/TurnRelayOff.js +0 -31
- package/dist/mtx/commands/downlink/TurnRelayOff.js.map +0 -1
- package/dist/mtx/commands/downlink/TurnRelayOn.d.ts +0 -13
- package/dist/mtx/commands/downlink/TurnRelayOn.js +0 -31
- package/dist/mtx/commands/downlink/TurnRelayOn.js.map +0 -1
- package/dist/mtx/commands/downlink/index.d.ts +0 -36
- package/dist/mtx/commands/downlink/index.js +0 -37
- package/dist/mtx/commands/downlink/index.js.map +0 -1
- package/dist/mtx/commands/index.d.ts +0 -2
- package/dist/mtx/commands/index.js +0 -3
- package/dist/mtx/commands/index.js.map +0 -1
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js +0 -31
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/ErrorResponse.d.ts +0 -19
- package/dist/mtx/commands/uplink/ErrorResponse.js +0 -48
- package/dist/mtx/commands/uplink/ErrorResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.d.ts +0 -19
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.js +0 -57
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.js +0 -49
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetCurrentValuesResponse.d.ts +0 -27
- package/dist/mtx/commands/uplink/GetCurrentValuesResponse.js +0 -88
- package/dist/mtx/commands/uplink/GetCurrentValuesResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetDateTimeResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js +0 -48
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetDayProfileResponse.d.ts +0 -18
- package/dist/mtx/commands/uplink/GetDayProfileResponse.js +0 -72
- package/dist/mtx/commands/uplink/GetDayProfileResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +0 -44
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.js +0 -54
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.d.ts +0 -19
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js +0 -55
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetEnergyCurrentResponse.d.ts +0 -16
- package/dist/mtx/commands/uplink/GetEnergyCurrentResponse.js +0 -83
- package/dist/mtx/commands/uplink/GetEnergyCurrentResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetEnergyDayPreviousResponse.d.ts +0 -21
- package/dist/mtx/commands/uplink/GetEnergyDayPreviousResponse.js +0 -74
- package/dist/mtx/commands/uplink/GetEnergyDayPreviousResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetEnergyDayResponse.d.ts +0 -20
- package/dist/mtx/commands/uplink/GetEnergyDayResponse.js +0 -95
- package/dist/mtx/commands/uplink/GetEnergyDayResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetExtendedCurrentValuesResponse.d.ts +0 -20
- package/dist/mtx/commands/uplink/GetExtendedCurrentValuesResponse.js +0 -58
- package/dist/mtx/commands/uplink/GetExtendedCurrentValuesResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetHalfHoursResponse.d.ts +0 -21
- package/dist/mtx/commands/uplink/GetHalfHoursResponse.js +0 -261
- package/dist/mtx/commands/uplink/GetHalfHoursResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetOpParamsResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js +0 -48
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.d.ts +0 -21
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js +0 -71
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.js +0 -73
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetSaldoResponse.d.ts +0 -27
- package/dist/mtx/commands/uplink/GetSaldoResponse.js +0 -72
- package/dist/mtx/commands/uplink/GetSaldoResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.js +0 -44
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.d.ts +0 -15
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.js +0 -45
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/GetVersionResponse.d.ts +0 -17
- package/dist/mtx/commands/uplink/GetVersionResponse.js +0 -43
- package/dist/mtx/commands/uplink/GetVersionResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +0 -31
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +0 -31
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetDateTimeResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetDateTimeResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetDateTimeResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetOpParamsResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetSaldoResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetSaldoResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetSaldoResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +0 -31
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js +0 -31
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.d.ts +0 -13
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js +0 -31
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js.map +0 -1
- package/dist/mtx/commands/uplink/index.d.ts +0 -37
- package/dist/mtx/commands/uplink/index.js +0 -38
- package/dist/mtx/commands/uplink/index.js.map +0 -1
- package/dist/mtx/constants/accessLevels.js.map +0 -1
- package/dist/mtx/constants/commandRelations.d.ts +0 -6
- package/dist/mtx/constants/commandRelations.js +0 -34
- package/dist/mtx/constants/commandRelations.js.map +0 -1
- package/dist/mtx/constants/frameTypes.js.map +0 -1
- package/dist/mtx/constants/index.d.ts +0 -9
- package/dist/mtx/constants/index.js +0 -10
- package/dist/mtx/constants/index.js.map +0 -1
- package/dist/mtx/constants/meterTypes.d.ts +0 -3
- package/dist/mtx/constants/meterTypes.js +0 -4
- package/dist/mtx/constants/meterTypes.js.map +0 -1
- package/dist/mtx/constants/resultCodes.js.map +0 -1
- package/dist/mtx/constants/resultNames.d.ts +0 -2
- package/dist/mtx/constants/resultNames.js.map +0 -1
- package/dist/mtx/constants/screenIds.d.ts +0 -29
- package/dist/mtx/constants/screenIds.js +0 -30
- package/dist/mtx/constants/screenIds.js.map +0 -1
- package/dist/mtx/constants/screenNames.d.ts +0 -2
- package/dist/mtx/constants/screenNames.js.map +0 -1
- package/dist/mtx/constants/screenSets.js +0 -36
- package/dist/mtx/constants/screenSets.js.map +0 -1
- package/dist/mtx/index.d.ts +0 -4
- package/dist/mtx/index.js +0 -5
- package/dist/mtx/index.js.map +0 -1
- package/dist/mtx/message.d.ts +0 -39
- package/dist/mtx/message.js +0 -149
- package/dist/mtx/message.js.map +0 -1
- package/dist/mtx/utils/crypto.d.ts +0 -8
- package/dist/mtx/utils/crypto.js +0 -96
- package/dist/mtx/utils/crypto.js.map +0 -1
- package/dist/mtx/utils/dateTime.d.ts +0 -30
- package/dist/mtx/utils/dateTime.js.map +0 -1
- package/dist/mtx/utils/deviceType.d.ts +0 -8
- package/dist/mtx/utils/deviceType.js +0 -226
- package/dist/mtx/utils/deviceType.js.map +0 -1
- package/dist/mtx/utils/index.d.ts +0 -1
- package/dist/mtx/utils/index.js +0 -2
- package/dist/mtx/utils/index.js.map +0 -1
- package/dist/mtxLora/Command.d.ts +0 -3
- package/dist/mtxLora/Command.js +0 -4
- package/dist/mtxLora/Command.js.map +0 -1
- package/dist/mtxLora/CommandBinaryBuffer.d.ts +0 -47
- package/dist/mtxLora/CommandBinaryBuffer.js +0 -272
- package/dist/mtxLora/CommandBinaryBuffer.js.map +0 -1
- package/dist/mtxLora/UnknownCommand.d.ts +0 -2
- package/dist/mtxLora/UnknownCommand.js +0 -3
- package/dist/mtxLora/UnknownCommand.js.map +0 -1
- package/dist/mtxLora/commands/downlink/GetHalfhoursEnergies.d.ts +0 -21
- package/dist/mtxLora/commands/downlink/GetHalfhoursEnergies.js +0 -61
- package/dist/mtxLora/commands/downlink/GetHalfhoursEnergies.js.map +0 -1
- package/dist/mtxLora/commands/downlink/index.d.ts +0 -1
- package/dist/mtxLora/commands/downlink/index.js +0 -2
- package/dist/mtxLora/commands/downlink/index.js.map +0 -1
- package/dist/mtxLora/commands/index.d.ts +0 -2
- package/dist/mtxLora/commands/index.js +0 -3
- package/dist/mtxLora/commands/index.js.map +0 -1
- package/dist/mtxLora/commands/uplink/GetDayEnergies.d.ts +0 -20
- package/dist/mtxLora/commands/uplink/GetDayEnergies.js +0 -97
- package/dist/mtxLora/commands/uplink/GetDayEnergies.js.map +0 -1
- package/dist/mtxLora/commands/uplink/GetDayMaxPower.d.ts +0 -20
- package/dist/mtxLora/commands/uplink/GetDayMaxPower.js +0 -105
- package/dist/mtxLora/commands/uplink/GetDayMaxPower.js.map +0 -1
- package/dist/mtxLora/commands/uplink/GetHalfhoursEnergies.d.ts +0 -22
- package/dist/mtxLora/commands/uplink/GetHalfhoursEnergies.js +0 -106
- package/dist/mtxLora/commands/uplink/GetHalfhoursEnergies.js.map +0 -1
- package/dist/mtxLora/commands/uplink/index.d.ts +0 -3
- package/dist/mtxLora/commands/uplink/index.js +0 -4
- package/dist/mtxLora/commands/uplink/index.js.map +0 -1
- package/dist/mtxLora/constants/commandRelations.d.ts +0 -6
- package/dist/mtxLora/constants/commandRelations.js +0 -11
- package/dist/mtxLora/constants/commandRelations.js.map +0 -1
- package/dist/mtxLora/index.d.ts +0 -2
- package/dist/mtxLora/index.js +0 -3
- package/dist/mtxLora/index.js.map +0 -1
- package/dist/mtxLora/message.d.ts +0 -5
- package/dist/mtxLora/message.js +0 -6
- package/dist/mtxLora/message.js.map +0 -1
- package/dist/obis-observer/Command.d.ts +0 -6
- package/dist/obis-observer/Command.js +0 -15
- package/dist/obis-observer/Command.js.map +0 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +0 -70
- package/dist/obis-observer/CommandBinaryBuffer.js +0 -164
- package/dist/obis-observer/CommandBinaryBuffer.js.map +0 -1
- package/dist/obis-observer/UnknownCommand.d.ts +0 -13
- package/dist/obis-observer/UnknownCommand.js +0 -25
- package/dist/obis-observer/UnknownCommand.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +0 -54
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +0 -32
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterId.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +0 -34
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +0 -41
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContent.js +0 -48
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +0 -44
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisIdList.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +0 -35
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +0 -32
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetSerialPort.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/GetSerialPort.js +0 -32
- package/dist/obis-observer/commands/downlink/GetSerialPort.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetSettingsMemory.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetSettingsMemory.js +0 -46
- package/dist/obis-observer/commands/downlink/GetSettingsMemory.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -45
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +0 -48
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +0 -20
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +0 -51
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/Reboot.js +0 -33
- package/dist/obis-observer/commands/downlink/Reboot.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +0 -42
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +0 -35
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/RemoveObis.js +0 -36
- package/dist/obis-observer/commands/downlink/RemoveObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ResetSettings.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/ResetSettings.js +0 -33
- package/dist/obis-observer/commands/downlink/ResetSettings.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +0 -35
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +0 -35
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +0 -54
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeter.js +0 -85
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +0 -48
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetupObis.d.ts +0 -19
- package/dist/obis-observer/commands/downlink/SetupObis.js +0 -85
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +0 -33
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +0 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +0 -46
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +0 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +0 -13
- package/dist/obis-observer/commands/downlink/UpdateRun.js +0 -33
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/ErrorResponse.js +0 -36
- package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +0 -80
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +0 -50
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +0 -22
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +0 -59
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +0 -38
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +0 -42
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +0 -95
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.d.ts +0 -27
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +0 -104
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js +0 -40
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +0 -54
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +0 -92
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +0 -53
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js +0 -61
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +0 -41
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetSerialPortResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/GetSerialPortResponse.js +0 -44
- package/dist/obis-observer/commands/uplink/GetSerialPortResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetSettingsMemoryResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetSettingsMemoryResponse.js +0 -48
- package/dist/obis-observer/commands/uplink/GetSettingsMemoryResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/ObservationReport.js +0 -54
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +0 -19
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +0 -59
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -23
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -107
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +0 -22
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +0 -103
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +0 -69
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/RebootResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ResetSettingsResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/ResetSettingsResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/ResetSettingsResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +0 -35
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +0 -13
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +0 -33
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +0 -1
- package/dist/obis-observer/constants/commandRelations.d.ts +0 -6
- package/dist/obis-observer/constants/commandRelations.js +0 -46
- package/dist/obis-observer/constants/commandRelations.js.map +0 -1
- package/dist/obis-observer/message.d.ts +0 -18
- package/dist/obis-observer/message.js +0 -49
- package/dist/obis-observer/message.js.map +0 -1
- package/dist/utils/calculateCrc32.d.ts +0 -5
- package/dist/utils/calculateCrc32.js +0 -28
- package/dist/utils/calculateCrc32.js.map +0 -1
- package/dist/utils/getHexFromNumber.d.ts +0 -3
- package/dist/utils/getHexFromNumber.js +0 -20
- package/dist/utils/getHexFromNumber.js.map +0 -1
- package/dist/utils/mergeUint8Arrays.d.ts +0 -2
- package/dist/utils/mergeUint8Arrays.js +0 -11
- package/dist/utils/mergeUint8Arrays.js.map +0 -1
- package/dist/utils/time.d.ts +0 -4
- package/dist/utils/time.js.map +0 -1
- /package/dist/{utils → analog/utils}/time.js +0 -0
- /package/dist/{mtx → mtx1}/constants/accessLevels.d.ts +0 -0
- /package/dist/{mtx → mtx1}/constants/accessLevels.js +0 -0
- /package/dist/{mtx → mtx1}/constants/frameTypes.d.ts +0 -0
- /package/dist/{mtx → mtx1}/constants/frameTypes.js +0 -0
- /package/dist/{mtx → mtx1}/constants/resultCodes.d.ts +0 -0
- /package/dist/{mtx → mtx1}/constants/resultCodes.js +0 -0
- /package/dist/{mtx → mtx1}/constants/resultNames.js +0 -0
- /package/dist/{mtx → mtx1}/constants/screenNames.js +0 -0
- /package/dist/{mtx → mtx1}/constants/screenSets.d.ts +0 -0
- /package/dist/{mtx → mtx1}/utils/dateTime.js +0 -0
|
@@ -1,1627 +0,0 @@
|
|
|
1
|
-
import BinaryBuffer from '../utils/BinaryBuffer.js';
|
|
2
|
-
import * as bitSet from '../utils/bitSet.js';
|
|
3
|
-
import { getDateFromTime2000, getTime2000FromDate } from '../utils/time.js';
|
|
4
|
-
import getHexFromBytes from '../utils/getHexFromBytes.js';
|
|
5
|
-
import getBytesFromHex from '../utils/getBytesFromHex.js';
|
|
6
|
-
import roundNumber from '../utils/roundNumber.js';
|
|
7
|
-
import { extractBits, fillBits } from '../utils/bitSet.js';
|
|
8
|
-
import * as hardwareTypes from './constants/hardwareTypes.js';
|
|
9
|
-
import * as deviceParameters from './constants/deviceParameters.js';
|
|
10
|
-
const INITIAL_YEAR = 2000;
|
|
11
|
-
const MONTH_BIT_SIZE = 4;
|
|
12
|
-
const DATE_BIT_SIZE = 5;
|
|
13
|
-
const YEAR_START_INDEX = 1;
|
|
14
|
-
const UNKNOWN_BATTERY_VOLTAGE = 4095;
|
|
15
|
-
const EXTEND_BIT_MASK = 0x80;
|
|
16
|
-
const LAST_BIT_INDEX = 7;
|
|
17
|
-
const DATA_SENDING_INTERVAL_SECONDS_COEFFICIENT = 600;
|
|
18
|
-
const DATA_SENDING_INTERVAL_RESERVED_BYTES = 3;
|
|
19
|
-
const PARAMETER_RX2_FREQUENCY_COEFFICIENT = 100;
|
|
20
|
-
const INT24_BYTE_SIZE = 3;
|
|
21
|
-
const SERIAL_NUMBER_SIZE = 6;
|
|
22
|
-
const MAGNETIC_INFLUENCE_BIT_INDEX = 8;
|
|
23
|
-
const LEGACY_HOUR_COUNTER_SIZE = 2 + 4;
|
|
24
|
-
const LEGACY_HOUR_DIFF_SIZE = 2;
|
|
25
|
-
const GAS_HARDWARE_TYPES = [
|
|
26
|
-
hardwareTypes.GASI2,
|
|
27
|
-
hardwareTypes.GASI3,
|
|
28
|
-
hardwareTypes.GASI1,
|
|
29
|
-
hardwareTypes.GASIC
|
|
30
|
-
];
|
|
31
|
-
const TWO_CHANNELS_HARDWARE_TYPES = [
|
|
32
|
-
hardwareTypes.IMP2AS,
|
|
33
|
-
hardwareTypes.IMP2EU,
|
|
34
|
-
hardwareTypes.IMP2IN,
|
|
35
|
-
hardwareTypes.NOVATOR
|
|
36
|
-
];
|
|
37
|
-
const ELIMP_HARDWARE_TYPES = [
|
|
38
|
-
hardwareTypes.ELIMP
|
|
39
|
-
];
|
|
40
|
-
const FOUR_CHANNELS_HARDWARE_TYPES = [
|
|
41
|
-
hardwareTypes.IMP4EU,
|
|
42
|
-
hardwareTypes.IMP4IN
|
|
43
|
-
];
|
|
44
|
-
const MTX_HARDWARE_TYPES = [
|
|
45
|
-
hardwareTypes.MTXLORA
|
|
46
|
-
];
|
|
47
|
-
const TWO_BYTES_HARDWARE_TYPES = [...FOUR_CHANNELS_HARDWARE_TYPES, ...MTX_HARDWARE_TYPES];
|
|
48
|
-
const gasBitMask = {
|
|
49
|
-
isBatteryLow: 2 ** 0,
|
|
50
|
-
isMagneticInfluence: 2 ** 1,
|
|
51
|
-
isButtonReleased: 2 ** 2,
|
|
52
|
-
isConnectionLost: 2 ** 3
|
|
53
|
-
};
|
|
54
|
-
const twoChannelBitMask = {
|
|
55
|
-
isBatteryLow: 2 ** 0,
|
|
56
|
-
isConnectionLost: 2 ** 3,
|
|
57
|
-
isFirstChannelInactive: 2 ** 4,
|
|
58
|
-
isSecondChannelInactive: 2 ** 5
|
|
59
|
-
};
|
|
60
|
-
const elimpBitMask = {
|
|
61
|
-
isConnectionLost: 2 ** 3
|
|
62
|
-
};
|
|
63
|
-
const fourChannelBitMask = {
|
|
64
|
-
isBatteryLow: 2 ** 0,
|
|
65
|
-
isConnectionLost: 2 ** 3,
|
|
66
|
-
isFirstChannelInactive: 2 ** 4,
|
|
67
|
-
isSecondChannelInactive: 2 ** 5,
|
|
68
|
-
isThirdChannelInactive: 2 ** 6,
|
|
69
|
-
isForthChannelInactive: 2 ** 7
|
|
70
|
-
};
|
|
71
|
-
const mtxBitMask = {
|
|
72
|
-
isMeterCaseOpen: 2 ** 0,
|
|
73
|
-
isMagneticInfluence: 2 ** 1,
|
|
74
|
-
isParametersSetRemotely: 2 ** 2,
|
|
75
|
-
isParametersSetLocally: 2 ** 3,
|
|
76
|
-
isMeterProgramRestarted: 2 ** 4,
|
|
77
|
-
isLockedOut: 2 ** 5,
|
|
78
|
-
isTimeSet: 2 ** 6,
|
|
79
|
-
isTimeCorrected: 2 ** 7,
|
|
80
|
-
isMeterFailure: 2 ** 8,
|
|
81
|
-
isMeterTerminalBoxOpen: 2 ** 9,
|
|
82
|
-
isModuleCompartmentOpen: 2 ** 10,
|
|
83
|
-
isTariffPlanChanged: 2 ** 11,
|
|
84
|
-
isNewTariffPlanReceived: 2 ** 12
|
|
85
|
-
};
|
|
86
|
-
const parametersSizeMap = new Map([
|
|
87
|
-
[deviceParameters.REPORTING_DATA_INTERVAL, 1 + 4],
|
|
88
|
-
[deviceParameters.DAY_CHECKOUT_HOUR, 1 + 1],
|
|
89
|
-
[deviceParameters.REPORTING_DATA_TYPE, 1 + 1],
|
|
90
|
-
[deviceParameters.PRIORITY_DATA_DELIVERY_TYPE, 1 + 1],
|
|
91
|
-
[deviceParameters.ACTIVATION_METHOD, 1 + 1],
|
|
92
|
-
[deviceParameters.BATTERY_DEPASSIVATION_INFO, 1 + 6],
|
|
93
|
-
[deviceParameters.BATTERY_MINIMAL_LOAD_TIME, 1 + 4],
|
|
94
|
-
[deviceParameters.CHANNELS_CONFIG, 1 + 1],
|
|
95
|
-
[deviceParameters.RX2_CONFIG, 1 + 4],
|
|
96
|
-
[deviceParameters.ABSOLUTE_DATA, 1 + 9],
|
|
97
|
-
[deviceParameters.ABSOLUTE_DATA_ENABLE, 1 + 1],
|
|
98
|
-
[deviceParameters.SERIAL_NUMBER, 1 + 6],
|
|
99
|
-
[deviceParameters.GEOLOCATION, 1 + 10],
|
|
100
|
-
[deviceParameters.EXTRA_FRAME_INTERVAL, 1 + 2],
|
|
101
|
-
[deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL, 1 + 10],
|
|
102
|
-
[deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL, 1 + 2],
|
|
103
|
-
[deviceParameters.PULSE_CHANNELS_SCAN_CONFIG, 1 + 3],
|
|
104
|
-
[deviceParameters.PULSE_CHANNELS_SET_CONFIG, 1 + 1],
|
|
105
|
-
[deviceParameters.BATTERY_DEPASSIVATION_CONFIG, 1 + 4],
|
|
106
|
-
[deviceParameters.MQTT_SSL_ENABLE, 1 + 1],
|
|
107
|
-
[deviceParameters.MQTT_DATA_RECEIVE_CONFIG, 1 + 1],
|
|
108
|
-
[deviceParameters.MQTT_DATA_SEND_CONFIG, 1 + 5],
|
|
109
|
-
[deviceParameters.NBIOT_SSL_CONFIG, 1 + 2],
|
|
110
|
-
[deviceParameters.NBIOT_SSL_CACERT_SET, 1 + 4],
|
|
111
|
-
[deviceParameters.NBIOT_SSL_CLIENT_CERT_SET, 1 + 4],
|
|
112
|
-
[deviceParameters.NBIOT_SSL_CLIENT_KEY_SET, 1 + 4],
|
|
113
|
-
[deviceParameters.REPORTING_DATA_CONFIG, 1 + 4],
|
|
114
|
-
[deviceParameters.EVENTS_CONFIG, 1 + 4]
|
|
115
|
-
]);
|
|
116
|
-
const fourChannelsBitMask = {
|
|
117
|
-
channel1: 2 ** 0,
|
|
118
|
-
channel2: 2 ** 1,
|
|
119
|
-
channel3: 2 ** 2,
|
|
120
|
-
channel4: 2 ** 3
|
|
121
|
-
};
|
|
122
|
-
const byteToPulseCoefficientMap = new Map([
|
|
123
|
-
[0x80, 1],
|
|
124
|
-
[0x81, 5],
|
|
125
|
-
[0x82, 10],
|
|
126
|
-
[0x83, 100],
|
|
127
|
-
[0x84, 1000],
|
|
128
|
-
[0x85, 10000],
|
|
129
|
-
[0x86, 100000]
|
|
130
|
-
]);
|
|
131
|
-
const pulseCoefficientToByteMap = new Map([...byteToPulseCoefficientMap.entries()].map(([key, value]) => [value, key]));
|
|
132
|
-
const isMSBSet = (value) => !!(value & 0x80);
|
|
133
|
-
class CommandBinaryBuffer extends BinaryBuffer {
|
|
134
|
-
static getExtendedValueSize(bits) {
|
|
135
|
-
const extBits = Math.ceil(bits / 7);
|
|
136
|
-
const totalBits = bits + extBits;
|
|
137
|
-
const extBytes = Math.ceil(totalBits / 8);
|
|
138
|
-
return extBytes;
|
|
139
|
-
}
|
|
140
|
-
static getParameterSize(parameter) {
|
|
141
|
-
let size;
|
|
142
|
-
let data;
|
|
143
|
-
switch (parameter.id) {
|
|
144
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
145
|
-
if (parameter.data) {
|
|
146
|
-
data = parameter.data;
|
|
147
|
-
size = 1 + 1;
|
|
148
|
-
size += data.clientId.length + 1;
|
|
149
|
-
size += data.username.length + 1;
|
|
150
|
-
size += data.password.length + 1;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
size = 1;
|
|
154
|
-
}
|
|
155
|
-
break;
|
|
156
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
157
|
-
data = parameter.data;
|
|
158
|
-
size = 1 + 2;
|
|
159
|
-
size += data.hostName.length + 1;
|
|
160
|
-
break;
|
|
161
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
162
|
-
data = parameter.data;
|
|
163
|
-
size = 1;
|
|
164
|
-
size += data.topicPrefix.length + 1;
|
|
165
|
-
break;
|
|
166
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
167
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
168
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
169
|
-
if (parameter.data) {
|
|
170
|
-
data = parameter.data;
|
|
171
|
-
size = 1 + 2 + 2;
|
|
172
|
-
size += data.chunk.length;
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
size = 1;
|
|
176
|
-
}
|
|
177
|
-
break;
|
|
178
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
179
|
-
if (parameter.data) {
|
|
180
|
-
data = parameter.data;
|
|
181
|
-
size = 1;
|
|
182
|
-
size += data.softwareImageUrl.length + 1;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
size = 1;
|
|
186
|
-
}
|
|
187
|
-
break;
|
|
188
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
189
|
-
if (parameter.data) {
|
|
190
|
-
data = parameter.data;
|
|
191
|
-
size = 1;
|
|
192
|
-
size += data.moduleFirmwareImageUrl.length + 1;
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
size = 1;
|
|
196
|
-
}
|
|
197
|
-
break;
|
|
198
|
-
case deviceParameters.NBIOT_BANDS:
|
|
199
|
-
if (parameter.data) {
|
|
200
|
-
data = parameter.data;
|
|
201
|
-
size = 1 + 1;
|
|
202
|
-
size += data.bands.length;
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
size = 1;
|
|
206
|
-
}
|
|
207
|
-
break;
|
|
208
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
209
|
-
size = 1;
|
|
210
|
-
break;
|
|
211
|
-
default:
|
|
212
|
-
size = parametersSizeMap.get(parameter.id);
|
|
213
|
-
}
|
|
214
|
-
if (size === undefined) {
|
|
215
|
-
throw new Error('unknown parameter id');
|
|
216
|
-
}
|
|
217
|
-
return size;
|
|
218
|
-
}
|
|
219
|
-
static getRequestParameterSize(parameter) {
|
|
220
|
-
let size;
|
|
221
|
-
switch (parameter.id) {
|
|
222
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
223
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
224
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
225
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
226
|
-
size = 2;
|
|
227
|
-
break;
|
|
228
|
-
default:
|
|
229
|
-
size = 1;
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
return size;
|
|
233
|
-
}
|
|
234
|
-
static getResponseParameterSize(parameter) {
|
|
235
|
-
let size;
|
|
236
|
-
let data;
|
|
237
|
-
switch (parameter.id) {
|
|
238
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
239
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
240
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
241
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
242
|
-
case deviceParameters.NBIOT_SSL_CACERT_SET:
|
|
243
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_SET:
|
|
244
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_SET:
|
|
245
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
246
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
247
|
-
size = 1;
|
|
248
|
-
break;
|
|
249
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
250
|
-
data = parameter.data;
|
|
251
|
-
size = 1 + 2;
|
|
252
|
-
size += data.hostName.length + 1;
|
|
253
|
-
break;
|
|
254
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
255
|
-
data = parameter.data;
|
|
256
|
-
size = 1;
|
|
257
|
-
size += data.topicPrefix.length + 1;
|
|
258
|
-
break;
|
|
259
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
260
|
-
data = parameter.data;
|
|
261
|
-
size = 1;
|
|
262
|
-
size += data.moduleInfo.length + 1;
|
|
263
|
-
break;
|
|
264
|
-
case deviceParameters.NBIOT_BANDS:
|
|
265
|
-
data = parameter.data;
|
|
266
|
-
size = 1 + 1;
|
|
267
|
-
size += data.bands.length;
|
|
268
|
-
break;
|
|
269
|
-
default:
|
|
270
|
-
size = parametersSizeMap.get(parameter.id);
|
|
271
|
-
}
|
|
272
|
-
if (size === undefined) {
|
|
273
|
-
throw new Error('unknown parameter id');
|
|
274
|
-
}
|
|
275
|
-
return size;
|
|
276
|
-
}
|
|
277
|
-
static getMagneticInfluenceBit(byte) {
|
|
278
|
-
return !!extractBits(byte, 1, MAGNETIC_INFLUENCE_BIT_INDEX);
|
|
279
|
-
}
|
|
280
|
-
static setMagneticInfluenceBit(byte, value) {
|
|
281
|
-
return fillBits(byte, 1, MAGNETIC_INFLUENCE_BIT_INDEX, +value);
|
|
282
|
-
}
|
|
283
|
-
static getLegacyHourCounterSize(hourCounter) {
|
|
284
|
-
return LEGACY_HOUR_COUNTER_SIZE + (hourCounter.diff.length * LEGACY_HOUR_DIFF_SIZE);
|
|
285
|
-
}
|
|
286
|
-
getDataSegment() {
|
|
287
|
-
const segmentationSessionId = this.getUint8();
|
|
288
|
-
const flag = this.getUint8();
|
|
289
|
-
return {
|
|
290
|
-
segmentationSessionId,
|
|
291
|
-
segmentIndex: extractBits(flag, 3, 1),
|
|
292
|
-
segmentsNumber: extractBits(flag, 3, 5),
|
|
293
|
-
isLast: Boolean(extractBits(flag, 1, 8)),
|
|
294
|
-
data: this.getBytesLeft()
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
setDataSegment(value) {
|
|
298
|
-
let flag = fillBits(0, 3, 1, value.segmentIndex);
|
|
299
|
-
flag = fillBits(flag, 3, 5, value.segmentsNumber);
|
|
300
|
-
flag = fillBits(flag, 1, 8, +value.isLast);
|
|
301
|
-
this.setUint8(value.segmentationSessionId);
|
|
302
|
-
this.setUint8(flag);
|
|
303
|
-
this.setBytes(value.data);
|
|
304
|
-
}
|
|
305
|
-
setInt24(value, isLittleEndian = this.isLittleEndian) {
|
|
306
|
-
const view = new DataView(this.data, this.offset, INT24_BYTE_SIZE);
|
|
307
|
-
if (isLittleEndian) {
|
|
308
|
-
view.setInt8(2, (value >> 16) & 0xFF);
|
|
309
|
-
view.setUint8(1, (value >> 8) & 0xFF);
|
|
310
|
-
view.setUint8(0, value & 0xFF);
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
view.setInt8(0, (value >> 16) & 0xFF);
|
|
314
|
-
view.setUint8(1, (value >> 8) & 0xFF);
|
|
315
|
-
view.setUint8(2, value & 0xFF);
|
|
316
|
-
}
|
|
317
|
-
this.offset += INT24_BYTE_SIZE;
|
|
318
|
-
}
|
|
319
|
-
getInt24(isLittleEndian = this.isLittleEndian) {
|
|
320
|
-
const view = new DataView(this.data, this.offset, INT24_BYTE_SIZE);
|
|
321
|
-
let byte0;
|
|
322
|
-
let byte1;
|
|
323
|
-
let byte2;
|
|
324
|
-
this.offset += INT24_BYTE_SIZE;
|
|
325
|
-
if (isLittleEndian) {
|
|
326
|
-
byte0 = view.getInt8(2);
|
|
327
|
-
byte1 = view.getUint8(1);
|
|
328
|
-
byte2 = view.getUint8(0);
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
byte0 = view.getInt8(0);
|
|
332
|
-
byte1 = view.getUint8(1);
|
|
333
|
-
byte2 = view.getUint8(2);
|
|
334
|
-
}
|
|
335
|
-
const value = (byte0 << 16) | (byte1 << 8) | byte2;
|
|
336
|
-
if (byte0 & 0x80) {
|
|
337
|
-
return value - (1 << 24);
|
|
338
|
-
}
|
|
339
|
-
return value;
|
|
340
|
-
}
|
|
341
|
-
setUint24(value, isLittleEndian = this.isLittleEndian) {
|
|
342
|
-
const view = new DataView(this.data, this.offset, INT24_BYTE_SIZE);
|
|
343
|
-
if (isLittleEndian) {
|
|
344
|
-
view.setUint8(2, (value >> 16) & 0xFF);
|
|
345
|
-
view.setUint8(1, (value >> 8) & 0xFF);
|
|
346
|
-
view.setUint8(0, value & 0xFF);
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
view.setUint8(0, (value >> 16) & 0xFF);
|
|
350
|
-
view.setUint8(1, (value >> 8) & 0xFF);
|
|
351
|
-
view.setUint8(2, value & 0xFF);
|
|
352
|
-
}
|
|
353
|
-
this.offset += INT24_BYTE_SIZE;
|
|
354
|
-
}
|
|
355
|
-
getUint24(isLittleEndian = this.isLittleEndian) {
|
|
356
|
-
const view = new DataView(this.data, this.offset, INT24_BYTE_SIZE);
|
|
357
|
-
const byte0 = view.getUint8(0);
|
|
358
|
-
const byte1 = view.getUint8(1);
|
|
359
|
-
const byte2 = view.getUint8(2);
|
|
360
|
-
this.offset += INT24_BYTE_SIZE;
|
|
361
|
-
if (isLittleEndian) {
|
|
362
|
-
return byte0 + (byte1 << 8) + (byte2 << 16);
|
|
363
|
-
}
|
|
364
|
-
return (byte0 << 16) + (byte1 << 8) + byte2;
|
|
365
|
-
}
|
|
366
|
-
getExtendedValue() {
|
|
367
|
-
let value = 0;
|
|
368
|
-
let isByteExtended = true;
|
|
369
|
-
let position = 0;
|
|
370
|
-
while (isByteExtended && this.offset <= this.data.byteLength) {
|
|
371
|
-
const byte = this.getUint8();
|
|
372
|
-
isByteExtended = !!(byte & EXTEND_BIT_MASK);
|
|
373
|
-
value += (byte & 0x7f) << (7 * position);
|
|
374
|
-
++position;
|
|
375
|
-
}
|
|
376
|
-
if (value < 0) {
|
|
377
|
-
value = 0;
|
|
378
|
-
}
|
|
379
|
-
return value;
|
|
380
|
-
}
|
|
381
|
-
setExtendedValue(value) {
|
|
382
|
-
if (value === 0) {
|
|
383
|
-
this.setUint8(0);
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
const data = [];
|
|
387
|
-
let encodedValue = value;
|
|
388
|
-
while (encodedValue) {
|
|
389
|
-
data.push(EXTEND_BIT_MASK | (encodedValue & 0x7f));
|
|
390
|
-
encodedValue >>= 7;
|
|
391
|
-
}
|
|
392
|
-
const lastByte = data.pop();
|
|
393
|
-
if (lastByte) {
|
|
394
|
-
data.push(lastByte & 0x7f);
|
|
395
|
-
}
|
|
396
|
-
data.forEach(extendedValue => this.setUint8(extendedValue));
|
|
397
|
-
}
|
|
398
|
-
getChannels() {
|
|
399
|
-
const channelList = [];
|
|
400
|
-
let extended = true;
|
|
401
|
-
let channelIndex = 1;
|
|
402
|
-
while (extended) {
|
|
403
|
-
const byte = this.getUint8();
|
|
404
|
-
const bits = byte.toString(2).padStart(LAST_BIT_INDEX + 1, '0').split('').reverse();
|
|
405
|
-
bits.forEach((bit, index) => {
|
|
406
|
-
const value = Number(bit);
|
|
407
|
-
if (index === LAST_BIT_INDEX) {
|
|
408
|
-
extended = !!value;
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
if (value) {
|
|
412
|
-
channelList.push(channelIndex);
|
|
413
|
-
}
|
|
414
|
-
++channelIndex;
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
return channelList;
|
|
419
|
-
}
|
|
420
|
-
setChannels(channelList) {
|
|
421
|
-
if (channelList.length === 0) {
|
|
422
|
-
this.setUint8(0);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
channelList.sort((a, b) => a.index - b.index);
|
|
426
|
-
const maxChannel = Math.max(...channelList.map(({ index }) => index));
|
|
427
|
-
const size = (maxChannel - (maxChannel % 8)) / 8;
|
|
428
|
-
const data = new Array(size + 1).fill(0);
|
|
429
|
-
let byte = 0;
|
|
430
|
-
data.forEach((_, byteIndex) => {
|
|
431
|
-
let channelIndex = (byteIndex * LAST_BIT_INDEX) + 1;
|
|
432
|
-
const maxChannelIndex = channelIndex + LAST_BIT_INDEX;
|
|
433
|
-
while (channelIndex < maxChannelIndex) {
|
|
434
|
-
const channel = channelList.find((item => item.index === channelIndex));
|
|
435
|
-
if (channel !== undefined) {
|
|
436
|
-
byte |= 1 << ((channel.index - 1) % LAST_BIT_INDEX);
|
|
437
|
-
}
|
|
438
|
-
++channelIndex;
|
|
439
|
-
}
|
|
440
|
-
if (data[byteIndex + 1] !== undefined) {
|
|
441
|
-
byte |= 1 << LAST_BIT_INDEX;
|
|
442
|
-
}
|
|
443
|
-
data[byteIndex] = byte;
|
|
444
|
-
byte = 0;
|
|
445
|
-
});
|
|
446
|
-
data.forEach((value) => this.setUint8(value));
|
|
447
|
-
}
|
|
448
|
-
getDate() {
|
|
449
|
-
const yearMonthByte = this.getUint8();
|
|
450
|
-
const monthDateByte = this.getUint8();
|
|
451
|
-
const year = yearMonthByte >> YEAR_START_INDEX;
|
|
452
|
-
const month = ((yearMonthByte & 0x01) << MONTH_BIT_SIZE - YEAR_START_INDEX) | (monthDateByte >> DATE_BIT_SIZE);
|
|
453
|
-
const monthDay = monthDateByte & 0x1f;
|
|
454
|
-
return new Date(Date.UTC(year + INITIAL_YEAR, month - 1, monthDay, 0, 0, 0, 0));
|
|
455
|
-
}
|
|
456
|
-
setDate(dateOrTime) {
|
|
457
|
-
let date;
|
|
458
|
-
if (dateOrTime instanceof Date) {
|
|
459
|
-
date = dateOrTime;
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
date = getDateFromTime2000(dateOrTime);
|
|
463
|
-
}
|
|
464
|
-
const year = date.getUTCFullYear() - INITIAL_YEAR;
|
|
465
|
-
const month = date.getUTCMonth() + 1;
|
|
466
|
-
const day = date.getUTCDate();
|
|
467
|
-
const yearMonthByte = (year << YEAR_START_INDEX) | (month >> MONTH_BIT_SIZE - YEAR_START_INDEX);
|
|
468
|
-
const monthDateByte = ((month & 0x07) << DATE_BIT_SIZE) | day;
|
|
469
|
-
[yearMonthByte, monthDateByte].forEach(byte => this.setUint8(byte));
|
|
470
|
-
}
|
|
471
|
-
getHours(byte = this.getUint8()) {
|
|
472
|
-
if (byte === 0) {
|
|
473
|
-
return { hours: 0, hour: 0 };
|
|
474
|
-
}
|
|
475
|
-
const hours = ((byte & 0xe0) >> 5) + 1;
|
|
476
|
-
const hour = byte & 0x1f;
|
|
477
|
-
return { hours, hour };
|
|
478
|
-
}
|
|
479
|
-
setHours(hour, hours) {
|
|
480
|
-
if (hour === 0 && hours === 0) {
|
|
481
|
-
this.setUint8(0);
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
this.setUint8((((hours - 1) & 0x07) << 5) | (hour & 0x1f));
|
|
485
|
-
}
|
|
486
|
-
getTime() {
|
|
487
|
-
return this.getUint32(false);
|
|
488
|
-
}
|
|
489
|
-
setTime(value) {
|
|
490
|
-
return this.setUint32(value, false);
|
|
491
|
-
}
|
|
492
|
-
getBatteryVoltage() {
|
|
493
|
-
let underHighLoad;
|
|
494
|
-
let underLowLoad;
|
|
495
|
-
const lowVoltageByte = this.getUint8();
|
|
496
|
-
const lowAndHightVoltageByte = this.getUint8();
|
|
497
|
-
const highVoltageByte = this.getUint8();
|
|
498
|
-
underLowLoad = lowVoltageByte << 4;
|
|
499
|
-
underLowLoad |= (lowAndHightVoltageByte & 0xf0) >> 4;
|
|
500
|
-
underHighLoad = ((lowAndHightVoltageByte & 0x0f) << 8) | highVoltageByte;
|
|
501
|
-
if (underHighLoad === UNKNOWN_BATTERY_VOLTAGE) {
|
|
502
|
-
underHighLoad = undefined;
|
|
503
|
-
}
|
|
504
|
-
if (underLowLoad === UNKNOWN_BATTERY_VOLTAGE) {
|
|
505
|
-
underLowLoad = undefined;
|
|
506
|
-
}
|
|
507
|
-
return { underLowLoad, underHighLoad };
|
|
508
|
-
}
|
|
509
|
-
setBatteryVoltage(batteryVoltage) {
|
|
510
|
-
let { underLowLoad, underHighLoad } = batteryVoltage;
|
|
511
|
-
if (underLowLoad === undefined) {
|
|
512
|
-
underLowLoad = UNKNOWN_BATTERY_VOLTAGE;
|
|
513
|
-
}
|
|
514
|
-
if (underHighLoad === undefined) {
|
|
515
|
-
underHighLoad = UNKNOWN_BATTERY_VOLTAGE;
|
|
516
|
-
}
|
|
517
|
-
const lowVoltageByte = (underLowLoad >> 4) & 0xff;
|
|
518
|
-
const lowAndHighVoltageByte = ((underLowLoad & 0x0f) << 4) | ((underHighLoad >> 8) & 0x0f);
|
|
519
|
-
const highVoltageByte = underHighLoad & 0xff;
|
|
520
|
-
[lowVoltageByte, lowAndHighVoltageByte, highVoltageByte].forEach(byte => this.setUint8(byte));
|
|
521
|
-
}
|
|
522
|
-
getChannelsValuesWithHourDiff() {
|
|
523
|
-
const date = this.getDate();
|
|
524
|
-
const { hour, hours } = this.getHours();
|
|
525
|
-
const channels = this.getChannels();
|
|
526
|
-
const channelList = [];
|
|
527
|
-
date.setUTCHours(hour);
|
|
528
|
-
channels.forEach(channelIndex => {
|
|
529
|
-
const diff = [];
|
|
530
|
-
const value = this.getExtendedValue();
|
|
531
|
-
for (let diffHour = 1; diffHour < hours; ++diffHour) {
|
|
532
|
-
diff.push(this.getExtendedValue());
|
|
533
|
-
}
|
|
534
|
-
channelList.push({
|
|
535
|
-
value,
|
|
536
|
-
diff,
|
|
537
|
-
index: channelIndex
|
|
538
|
-
});
|
|
539
|
-
});
|
|
540
|
-
return { startTime2000: getTime2000FromDate(date), hours, channelList };
|
|
541
|
-
}
|
|
542
|
-
setChannelsValuesWithHourDiff(hours, startTime2000, channelList) {
|
|
543
|
-
const date = getDateFromTime2000(startTime2000);
|
|
544
|
-
const hour = date.getUTCHours();
|
|
545
|
-
this.setDate(date);
|
|
546
|
-
this.setHours(hour, hours);
|
|
547
|
-
this.setChannels(channelList);
|
|
548
|
-
channelList.forEach(({ value, diff }) => {
|
|
549
|
-
this.setExtendedValue(value);
|
|
550
|
-
diff.forEach(diffValue => this.setExtendedValue(diffValue));
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
getChannelsValuesWithHourDiffExtended() {
|
|
554
|
-
const date = this.getDate();
|
|
555
|
-
const hour = this.getUint8();
|
|
556
|
-
const hours = this.getUint8();
|
|
557
|
-
const channels = this.getChannels();
|
|
558
|
-
const channelList = [];
|
|
559
|
-
date.setUTCHours(hour);
|
|
560
|
-
channels.forEach(channelIndex => {
|
|
561
|
-
const diff = [];
|
|
562
|
-
const value = this.getExtendedValue();
|
|
563
|
-
for (let diffHour = 0; diffHour < hours; ++diffHour) {
|
|
564
|
-
diff.push(this.getExtendedValue());
|
|
565
|
-
}
|
|
566
|
-
channelList.push({
|
|
567
|
-
value,
|
|
568
|
-
diff,
|
|
569
|
-
index: channelIndex
|
|
570
|
-
});
|
|
571
|
-
});
|
|
572
|
-
return { startTime2000: getTime2000FromDate(date), hour, hours, channelList };
|
|
573
|
-
}
|
|
574
|
-
setChannelsValuesWithHourDiffExtended(hour, hours, startTime2000, channelList) {
|
|
575
|
-
const date = getDateFromTime2000(startTime2000);
|
|
576
|
-
this.setDate(date);
|
|
577
|
-
this.setUint8(hour);
|
|
578
|
-
this.setUint8(hours);
|
|
579
|
-
this.setChannels(channelList);
|
|
580
|
-
channelList.forEach(({ value, diff }) => {
|
|
581
|
-
this.setExtendedValue(value);
|
|
582
|
-
diff.forEach(diffValue => this.setExtendedValue(diffValue));
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
getChannelsWithAbsoluteValues() {
|
|
586
|
-
const channels = this.getChannels();
|
|
587
|
-
const channelList = [];
|
|
588
|
-
channels.forEach(channelIndex => {
|
|
589
|
-
channelList.push({
|
|
590
|
-
pulseCoefficient: this.getPulseCoefficient(),
|
|
591
|
-
value: this.getExtendedValue(),
|
|
592
|
-
index: channelIndex
|
|
593
|
-
});
|
|
594
|
-
});
|
|
595
|
-
return channelList;
|
|
596
|
-
}
|
|
597
|
-
setChannelsWithAbsoluteValues(channelList) {
|
|
598
|
-
this.setChannels(channelList);
|
|
599
|
-
for (const { value, pulseCoefficient } of channelList) {
|
|
600
|
-
this.setPulseCoefficient(pulseCoefficient);
|
|
601
|
-
this.setExtendedValue(value);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
getChannelsAbsoluteValuesWithHourDiff(hours) {
|
|
605
|
-
const channels = this.getChannels();
|
|
606
|
-
const channelList = [];
|
|
607
|
-
channels.forEach(channelIndex => {
|
|
608
|
-
const pulseCoefficient = this.getPulseCoefficient();
|
|
609
|
-
const value = this.getExtendedValue();
|
|
610
|
-
const diff = [];
|
|
611
|
-
for (let hourIndex = 1; hourIndex < hours; ++hourIndex) {
|
|
612
|
-
diff.push(this.getExtendedValue());
|
|
613
|
-
}
|
|
614
|
-
channelList.push({
|
|
615
|
-
diff,
|
|
616
|
-
value,
|
|
617
|
-
pulseCoefficient,
|
|
618
|
-
index: channelIndex
|
|
619
|
-
});
|
|
620
|
-
});
|
|
621
|
-
return channelList;
|
|
622
|
-
}
|
|
623
|
-
setChannelsAbsoluteValuesWithHourDiff(channelList) {
|
|
624
|
-
this.setChannels(channelList);
|
|
625
|
-
for (const { value, diff, pulseCoefficient } of channelList) {
|
|
626
|
-
this.setPulseCoefficient(pulseCoefficient);
|
|
627
|
-
this.setExtendedValue(value);
|
|
628
|
-
diff.forEach(diffValue => this.setExtendedValue(diffValue));
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
static getEventStatusSize(hardwareType) {
|
|
632
|
-
return TWO_BYTES_HARDWARE_TYPES.includes(hardwareType) ? 2 : 1;
|
|
633
|
-
}
|
|
634
|
-
getEventStatus(hardwareType) {
|
|
635
|
-
let status;
|
|
636
|
-
if (GAS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
637
|
-
status = bitSet.toObject(gasBitMask, this.getUint8());
|
|
638
|
-
}
|
|
639
|
-
else if (TWO_CHANNELS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
640
|
-
status = bitSet.toObject(twoChannelBitMask, this.getUint8());
|
|
641
|
-
}
|
|
642
|
-
else if (ELIMP_HARDWARE_TYPES.includes(hardwareType)) {
|
|
643
|
-
status = bitSet.toObject(elimpBitMask, this.getUint8());
|
|
644
|
-
}
|
|
645
|
-
else if (FOUR_CHANNELS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
646
|
-
status = bitSet.toObject(fourChannelBitMask, this.getExtendedValue());
|
|
647
|
-
}
|
|
648
|
-
else if (MTX_HARDWARE_TYPES.includes(hardwareType)) {
|
|
649
|
-
status = bitSet.toObject(mtxBitMask, this.getUint16());
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
throw new Error('wrong hardwareType');
|
|
653
|
-
}
|
|
654
|
-
return status;
|
|
655
|
-
}
|
|
656
|
-
setEventStatus(hardwareType, status) {
|
|
657
|
-
if (GAS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
658
|
-
this.setUint8(bitSet.fromObject(gasBitMask, status));
|
|
659
|
-
}
|
|
660
|
-
else if (TWO_CHANNELS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
661
|
-
this.setUint8(bitSet.fromObject(twoChannelBitMask, status));
|
|
662
|
-
}
|
|
663
|
-
else if (ELIMP_HARDWARE_TYPES.includes(hardwareType)) {
|
|
664
|
-
this.setUint8(bitSet.fromObject(elimpBitMask, status));
|
|
665
|
-
}
|
|
666
|
-
else if (FOUR_CHANNELS_HARDWARE_TYPES.includes(hardwareType)) {
|
|
667
|
-
this.setExtendedValue(bitSet.fromObject(fourChannelBitMask, status));
|
|
668
|
-
}
|
|
669
|
-
else if (MTX_HARDWARE_TYPES.includes(hardwareType)) {
|
|
670
|
-
this.setUint16(bitSet.fromObject(mtxBitMask, status));
|
|
671
|
-
}
|
|
672
|
-
else {
|
|
673
|
-
throw new Error('wrong hardwareType');
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
getPulseCoefficient() {
|
|
677
|
-
const pulseCoefficient = this.getUint8();
|
|
678
|
-
if (isMSBSet(pulseCoefficient)) {
|
|
679
|
-
const value = byteToPulseCoefficientMap.get(pulseCoefficient);
|
|
680
|
-
if (value) {
|
|
681
|
-
return value;
|
|
682
|
-
}
|
|
683
|
-
throw new Error('pulseCoefficient MSB is set, but value unknown');
|
|
684
|
-
}
|
|
685
|
-
return pulseCoefficient;
|
|
686
|
-
}
|
|
687
|
-
setPulseCoefficient(value) {
|
|
688
|
-
if (pulseCoefficientToByteMap.has(value)) {
|
|
689
|
-
const byte = pulseCoefficientToByteMap.get(value);
|
|
690
|
-
if (byte) {
|
|
691
|
-
this.setUint8(byte);
|
|
692
|
-
}
|
|
693
|
-
else {
|
|
694
|
-
throw new Error('pulseCoefficient MSB is set, but value unknown');
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
else {
|
|
698
|
-
this.setUint8(value);
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
getParameterAbsoluteData() {
|
|
702
|
-
return {
|
|
703
|
-
meterValue: this.getUint32(false),
|
|
704
|
-
pulseCoefficient: this.getPulseCoefficient(),
|
|
705
|
-
value: this.getUint32(false)
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
setParameterAbsoluteData(parameter) {
|
|
709
|
-
this.setUint32(parameter.meterValue, false);
|
|
710
|
-
this.setPulseCoefficient(parameter.pulseCoefficient);
|
|
711
|
-
this.setUint32(parameter.value, false);
|
|
712
|
-
}
|
|
713
|
-
getChannelValue() {
|
|
714
|
-
return this.getUint8() + 1;
|
|
715
|
-
}
|
|
716
|
-
setChannelValue(value) {
|
|
717
|
-
if (value < 1) {
|
|
718
|
-
throw new Error('channel must be 1 or greater');
|
|
719
|
-
}
|
|
720
|
-
this.setUint8(value - 1);
|
|
721
|
-
}
|
|
722
|
-
getParameterAbsoluteDataMC() {
|
|
723
|
-
return {
|
|
724
|
-
channel: this.getChannelValue(),
|
|
725
|
-
meterValue: this.getUint32(false),
|
|
726
|
-
pulseCoefficient: this.getPulseCoefficient(),
|
|
727
|
-
value: this.getUint32(false)
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
setParameterAbsoluteDataMC(parameter) {
|
|
731
|
-
this.setChannelValue(parameter.channel);
|
|
732
|
-
this.setUint32(parameter.meterValue, false);
|
|
733
|
-
this.setPulseCoefficient(parameter.pulseCoefficient);
|
|
734
|
-
this.setUint32(parameter.value, false);
|
|
735
|
-
}
|
|
736
|
-
getParameterAbsoluteDataEnable() {
|
|
737
|
-
return { state: this.getUint8() };
|
|
738
|
-
}
|
|
739
|
-
setParameterAbsoluteDataEnable(parameter) {
|
|
740
|
-
this.setUint8(parameter.state);
|
|
741
|
-
}
|
|
742
|
-
getParameterAbsoluteDataEnableMC() {
|
|
743
|
-
return {
|
|
744
|
-
channel: this.getChannelValue(),
|
|
745
|
-
state: this.getUint8()
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
setParameterAbsoluteDataEnableMC(parameter) {
|
|
749
|
-
this.setChannelValue(parameter.channel);
|
|
750
|
-
this.setUint8(parameter.state);
|
|
751
|
-
}
|
|
752
|
-
getParameterActivationMethod() {
|
|
753
|
-
return {
|
|
754
|
-
type: this.getUint8()
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
setParameterActivationMethod(parameter) {
|
|
758
|
-
this.setUint8(parameter.type);
|
|
759
|
-
}
|
|
760
|
-
getParameterReportingDataType() {
|
|
761
|
-
return {
|
|
762
|
-
type: this.getUint8()
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
setParameterReportingDataType(parameter) {
|
|
766
|
-
this.setUint8(parameter.type);
|
|
767
|
-
}
|
|
768
|
-
getParameterDayCheckoutHour() {
|
|
769
|
-
return {
|
|
770
|
-
value: this.getUint8()
|
|
771
|
-
};
|
|
772
|
-
}
|
|
773
|
-
setParameterDayCheckoutHour(parameter) {
|
|
774
|
-
this.setUint8(parameter.value);
|
|
775
|
-
}
|
|
776
|
-
getParameterReportingDataInterval() {
|
|
777
|
-
this.seek(this.offset + DATA_SENDING_INTERVAL_RESERVED_BYTES);
|
|
778
|
-
return {
|
|
779
|
-
value: this.getUint8() * DATA_SENDING_INTERVAL_SECONDS_COEFFICIENT
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
setParameterReportingDataInterval(parameter) {
|
|
783
|
-
this.seek(this.offset + DATA_SENDING_INTERVAL_RESERVED_BYTES);
|
|
784
|
-
this.setUint8(parameter.value / DATA_SENDING_INTERVAL_SECONDS_COEFFICIENT);
|
|
785
|
-
}
|
|
786
|
-
getParameterDeliveryTypeOfPriorityData() {
|
|
787
|
-
return { value: this.getUint8() };
|
|
788
|
-
}
|
|
789
|
-
setParameterDeliveryTypeOfPriorityData(parameter) {
|
|
790
|
-
this.setUint8(parameter.value);
|
|
791
|
-
}
|
|
792
|
-
getParameterChannelsConfig() {
|
|
793
|
-
return { value: this.getUint8() };
|
|
794
|
-
}
|
|
795
|
-
setParameterChannelsConfig(parameter) {
|
|
796
|
-
if (parameter.value < 0 || parameter.value > 18) {
|
|
797
|
-
throw new Error('channels config must be between 0-18');
|
|
798
|
-
}
|
|
799
|
-
this.setUint8(parameter.value);
|
|
800
|
-
}
|
|
801
|
-
getParameterRx2Config() {
|
|
802
|
-
return {
|
|
803
|
-
spreadFactor: this.getUint8(),
|
|
804
|
-
frequency: this.getUint24(false) * PARAMETER_RX2_FREQUENCY_COEFFICIENT
|
|
805
|
-
};
|
|
806
|
-
}
|
|
807
|
-
setParameterRx2Config(parameter) {
|
|
808
|
-
this.setUint8(parameter.spreadFactor);
|
|
809
|
-
this.setUint24(parameter.frequency / PARAMETER_RX2_FREQUENCY_COEFFICIENT, false);
|
|
810
|
-
}
|
|
811
|
-
getParameterExtraFrameInterval() {
|
|
812
|
-
return { value: this.getUint16() };
|
|
813
|
-
}
|
|
814
|
-
setParameterExtraFrameInterval(parameter) {
|
|
815
|
-
this.setUint16(parameter.value);
|
|
816
|
-
}
|
|
817
|
-
getParameterBatteryDepassivationInfo() {
|
|
818
|
-
return {
|
|
819
|
-
loadTime: this.getUint16(false),
|
|
820
|
-
internalResistance: this.getUint16(false),
|
|
821
|
-
lowVoltage: this.getUint16(false)
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
setParameterBatteryDepassivationInfo(parameter) {
|
|
825
|
-
this.setUint16(parameter.loadTime, false);
|
|
826
|
-
this.setUint16(parameter.internalResistance, false);
|
|
827
|
-
this.setUint16(parameter.lowVoltage, false);
|
|
828
|
-
}
|
|
829
|
-
getParameterBatteryMinimalLoadTime() {
|
|
830
|
-
return {
|
|
831
|
-
value: this.getUint32(false)
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
setParameterBatteryMinimalLoadTime(parameter) {
|
|
835
|
-
this.setUint32(parameter.value, false);
|
|
836
|
-
}
|
|
837
|
-
getParameterSerialNumber() {
|
|
838
|
-
const { offset } = this;
|
|
839
|
-
this.offset += SERIAL_NUMBER_SIZE;
|
|
840
|
-
return {
|
|
841
|
-
value: getHexFromBytes(this.toUint8Array().slice(offset, this.offset))
|
|
842
|
-
};
|
|
843
|
-
}
|
|
844
|
-
setParameterSerialNumber(parameter) {
|
|
845
|
-
getBytesFromHex(parameter.value).forEach(byte => this.setUint8(byte));
|
|
846
|
-
}
|
|
847
|
-
getParameterGeolocation() {
|
|
848
|
-
return {
|
|
849
|
-
latitude: roundNumber(this.getFloat32()),
|
|
850
|
-
longitude: roundNumber(this.getFloat32()),
|
|
851
|
-
altitude: roundNumber(this.getUint16())
|
|
852
|
-
};
|
|
853
|
-
}
|
|
854
|
-
setParameterGeolocation(parameter) {
|
|
855
|
-
this.setFloat32(roundNumber(parameter.latitude));
|
|
856
|
-
this.setFloat32(roundNumber(parameter.longitude));
|
|
857
|
-
this.setUint16(roundNumber(parameter.altitude));
|
|
858
|
-
}
|
|
859
|
-
getParameterPulseChannelsScanConfig() {
|
|
860
|
-
return {
|
|
861
|
-
channelList: this.getChannels(),
|
|
862
|
-
pullUpTime: this.getUint8(),
|
|
863
|
-
scanTime: this.getUint8()
|
|
864
|
-
};
|
|
865
|
-
}
|
|
866
|
-
setParameterPulseChannelsScanConfig(parameter) {
|
|
867
|
-
if (parameter.pullUpTime < 17) {
|
|
868
|
-
throw new Error('minimal value for pullUpTime - 17');
|
|
869
|
-
}
|
|
870
|
-
if (parameter.scanTime < 15) {
|
|
871
|
-
throw new Error('minimal value for scanTime - 15');
|
|
872
|
-
}
|
|
873
|
-
this.setChannels(parameter.channelList.map(index => ({ index })));
|
|
874
|
-
this.setUint8(parameter.pullUpTime);
|
|
875
|
-
this.setUint8(parameter.scanTime);
|
|
876
|
-
}
|
|
877
|
-
getParameterPulseChannelsEnableConfig() {
|
|
878
|
-
const object = bitSet.toObject(fourChannelsBitMask, this.getUint8());
|
|
879
|
-
return {
|
|
880
|
-
channel1: object.channel1,
|
|
881
|
-
channel2: object.channel2,
|
|
882
|
-
channel3: object.channel3,
|
|
883
|
-
channel4: object.channel4
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
setParameterPulseChannelsEnableConfig(parameter) {
|
|
887
|
-
const { channel1, channel2, channel3, channel4 } = parameter;
|
|
888
|
-
this.setUint8(bitSet.fromObject(fourChannelsBitMask, {
|
|
889
|
-
channel1,
|
|
890
|
-
channel2,
|
|
891
|
-
channel3,
|
|
892
|
-
channel4
|
|
893
|
-
}));
|
|
894
|
-
}
|
|
895
|
-
getParameterBatteryDepassivationConfig() {
|
|
896
|
-
return {
|
|
897
|
-
resistanceStartThreshold: this.getUint16(false),
|
|
898
|
-
resistanceStopThreshold: this.getUint16(false)
|
|
899
|
-
};
|
|
900
|
-
}
|
|
901
|
-
setParameterBatteryDepassivationConfig(parameter) {
|
|
902
|
-
this.setUint16(parameter.resistanceStartThreshold, false);
|
|
903
|
-
this.setUint16(parameter.resistanceStopThreshold, false);
|
|
904
|
-
}
|
|
905
|
-
getParameterMqttSessionConfig() {
|
|
906
|
-
return {
|
|
907
|
-
clientId: this.getString(),
|
|
908
|
-
username: this.getString(),
|
|
909
|
-
password: this.getString(),
|
|
910
|
-
cleanSession: this.getUint8()
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
setParameterMqttSessionConfig(parameter) {
|
|
914
|
-
this.setString(parameter.clientId);
|
|
915
|
-
this.setString(parameter.username);
|
|
916
|
-
this.setString(parameter.password);
|
|
917
|
-
this.setUint8(parameter.cleanSession);
|
|
918
|
-
}
|
|
919
|
-
getParameterMqttBrokerAddress() {
|
|
920
|
-
return {
|
|
921
|
-
hostName: this.getString(),
|
|
922
|
-
port: this.getUint16(false)
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
setParameterMqttBrokerAddress(parameter) {
|
|
926
|
-
this.setString(parameter.hostName);
|
|
927
|
-
this.setUint16(parameter.port, false);
|
|
928
|
-
}
|
|
929
|
-
getParameterMqttSslEnable() {
|
|
930
|
-
return {
|
|
931
|
-
enable: this.getUint8()
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
setParameterMqttSslEnable(parameter) {
|
|
935
|
-
this.setUint8(parameter.enable);
|
|
936
|
-
}
|
|
937
|
-
getParameterMqttTopicPrefix() {
|
|
938
|
-
return {
|
|
939
|
-
topicPrefix: this.getString()
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
setParameterMqttTopicPrefix(parameter) {
|
|
943
|
-
this.setString(parameter.topicPrefix);
|
|
944
|
-
}
|
|
945
|
-
getParameterMqttDataReceiveConfig() {
|
|
946
|
-
return {
|
|
947
|
-
qos: this.getUint8()
|
|
948
|
-
};
|
|
949
|
-
}
|
|
950
|
-
setParameterMqttDataReceiveConfig(parameter) {
|
|
951
|
-
this.setUint8(parameter.qos);
|
|
952
|
-
}
|
|
953
|
-
getParameterMqttDataSendConfig() {
|
|
954
|
-
return {
|
|
955
|
-
qos: this.getUint8(),
|
|
956
|
-
retain: this.getUint8(),
|
|
957
|
-
newestSendFirst: this.getUint8(),
|
|
958
|
-
sendCountAttempts: this.getUint8(),
|
|
959
|
-
sendTimeoutBetweenAttempts: this.getUint8()
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
setParameterMqttDataSendConfig(parameter) {
|
|
963
|
-
this.setUint8(parameter.qos);
|
|
964
|
-
this.setUint8(parameter.retain);
|
|
965
|
-
this.setUint8(parameter.newestSendFirst);
|
|
966
|
-
this.setUint8(parameter.sendCountAttempts);
|
|
967
|
-
this.setUint8(parameter.sendTimeoutBetweenAttempts);
|
|
968
|
-
}
|
|
969
|
-
getParameterNbiotSslConfig() {
|
|
970
|
-
return {
|
|
971
|
-
securityLevel: this.getUint8(),
|
|
972
|
-
version: this.getUint8()
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
setParameterNbiotSslConfig(parameter) {
|
|
976
|
-
this.setUint8(parameter.securityLevel);
|
|
977
|
-
this.setUint8(parameter.version);
|
|
978
|
-
}
|
|
979
|
-
getParameterNbiotSslWrite() {
|
|
980
|
-
return {
|
|
981
|
-
size: this.getUint16(false),
|
|
982
|
-
position: this.getUint16(false),
|
|
983
|
-
chunk: this.getBytes(this.size, this.offset)
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
setParameterNbiotSslWrite(parameter) {
|
|
987
|
-
if (parameter.size !== parameter.chunk.length) {
|
|
988
|
-
throw new Error('ssl chunk size parameter doesn\'t match actual ssl chunk size');
|
|
989
|
-
}
|
|
990
|
-
this.setUint16(parameter.size, false);
|
|
991
|
-
this.setUint16(parameter.position, false);
|
|
992
|
-
this.setBytes(parameter.chunk);
|
|
993
|
-
}
|
|
994
|
-
getParameterNbiotSslSet() {
|
|
995
|
-
return {
|
|
996
|
-
crc32: this.getUint32(false)
|
|
997
|
-
};
|
|
998
|
-
}
|
|
999
|
-
setParameterNbiotSslSet(parameter) {
|
|
1000
|
-
this.setUint32(parameter.crc32, false);
|
|
1001
|
-
}
|
|
1002
|
-
getParameterNbiotDeviceSoftwareUpdate() {
|
|
1003
|
-
return {
|
|
1004
|
-
softwareImageUrl: this.getString()
|
|
1005
|
-
};
|
|
1006
|
-
}
|
|
1007
|
-
setParameterNbiotDeviceSoftwareUpdate(parameter) {
|
|
1008
|
-
this.setString(parameter.softwareImageUrl);
|
|
1009
|
-
}
|
|
1010
|
-
getParameterNbiotModuleFirmwareUpdate() {
|
|
1011
|
-
return {
|
|
1012
|
-
moduleFirmwareImageUrl: this.getString()
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
setParameterNbiotModuleFirmwareUpdate(parameter) {
|
|
1016
|
-
this.setString(parameter.moduleFirmwareImageUrl);
|
|
1017
|
-
}
|
|
1018
|
-
getParameterReportingDataConfig() {
|
|
1019
|
-
return {
|
|
1020
|
-
dataType: this.getUint8(),
|
|
1021
|
-
hour: this.getUint8(),
|
|
1022
|
-
minutes: this.getUint8(),
|
|
1023
|
-
countToSend: this.getUint8()
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
setParameterReportingDataConfig(parameter) {
|
|
1027
|
-
this.setUint8(parameter.dataType);
|
|
1028
|
-
this.setUint8(parameter.hour);
|
|
1029
|
-
this.setUint8(parameter.minutes);
|
|
1030
|
-
this.setUint8(parameter.countToSend);
|
|
1031
|
-
}
|
|
1032
|
-
getParameterEventsConfig() {
|
|
1033
|
-
return {
|
|
1034
|
-
eventId: this.getUint8(),
|
|
1035
|
-
enableEvent: this.getUint8(),
|
|
1036
|
-
sendEvent: this.getUint8(),
|
|
1037
|
-
saveEvent: this.getUint8()
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
setParameterEventsConfig(parameter) {
|
|
1041
|
-
this.setUint8(parameter.eventId);
|
|
1042
|
-
this.setUint8(parameter.enableEvent);
|
|
1043
|
-
this.setUint8(parameter.sendEvent);
|
|
1044
|
-
this.setUint8(parameter.saveEvent);
|
|
1045
|
-
}
|
|
1046
|
-
getParameterNbiotModuleInfo() {
|
|
1047
|
-
return {
|
|
1048
|
-
moduleInfo: this.getString()
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
setParameterNbiotModuleInfo(parameter) {
|
|
1052
|
-
this.setString(parameter.moduleInfo);
|
|
1053
|
-
}
|
|
1054
|
-
getParameterNbiotBands() {
|
|
1055
|
-
const count = this.getUint8();
|
|
1056
|
-
const bands = [];
|
|
1057
|
-
for (let index = 0; index < count; index++) {
|
|
1058
|
-
bands.push(this.getUint8());
|
|
1059
|
-
}
|
|
1060
|
-
return { bands };
|
|
1061
|
-
}
|
|
1062
|
-
setParameterNbiotBands(parameter) {
|
|
1063
|
-
this.setUint8(parameter.bands.length);
|
|
1064
|
-
for (const band of parameter.bands) {
|
|
1065
|
-
this.setUint8(band);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
getLegacyHourDiff() {
|
|
1069
|
-
const stateWithValueByte = this.getUint8();
|
|
1070
|
-
const valueLowerByte = this.getUint8();
|
|
1071
|
-
return {
|
|
1072
|
-
isMagneticInfluence: CommandBinaryBuffer.getMagneticInfluenceBit(stateWithValueByte),
|
|
1073
|
-
value: ((stateWithValueByte & 0x1f) << 8) | valueLowerByte
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
setLegacyHourDiff(diff) {
|
|
1077
|
-
const bytes = [diff.value >> 8, diff.value & 0xff];
|
|
1078
|
-
bytes[0] = CommandBinaryBuffer.setMagneticInfluenceBit(bytes[0], diff.isMagneticInfluence);
|
|
1079
|
-
bytes.forEach(byte => this.setUint8(byte));
|
|
1080
|
-
}
|
|
1081
|
-
getParameter() {
|
|
1082
|
-
const id = this.getUint8();
|
|
1083
|
-
let data;
|
|
1084
|
-
switch (id) {
|
|
1085
|
-
case deviceParameters.REPORTING_DATA_INTERVAL:
|
|
1086
|
-
data = this.getParameterReportingDataInterval();
|
|
1087
|
-
break;
|
|
1088
|
-
case deviceParameters.REPORTING_DATA_TYPE:
|
|
1089
|
-
data = this.getParameterReportingDataType();
|
|
1090
|
-
break;
|
|
1091
|
-
case deviceParameters.DAY_CHECKOUT_HOUR:
|
|
1092
|
-
data = this.getParameterDayCheckoutHour();
|
|
1093
|
-
break;
|
|
1094
|
-
case deviceParameters.PRIORITY_DATA_DELIVERY_TYPE:
|
|
1095
|
-
data = this.getParameterDeliveryTypeOfPriorityData();
|
|
1096
|
-
break;
|
|
1097
|
-
case deviceParameters.ACTIVATION_METHOD:
|
|
1098
|
-
data = this.getParameterActivationMethod();
|
|
1099
|
-
break;
|
|
1100
|
-
case deviceParameters.BATTERY_DEPASSIVATION_INFO:
|
|
1101
|
-
data = this.getParameterBatteryDepassivationInfo();
|
|
1102
|
-
break;
|
|
1103
|
-
case deviceParameters.BATTERY_MINIMAL_LOAD_TIME:
|
|
1104
|
-
data = this.getParameterBatteryMinimalLoadTime();
|
|
1105
|
-
break;
|
|
1106
|
-
case deviceParameters.CHANNELS_CONFIG:
|
|
1107
|
-
data = this.getParameterChannelsConfig();
|
|
1108
|
-
break;
|
|
1109
|
-
case deviceParameters.RX2_CONFIG:
|
|
1110
|
-
data = this.getParameterRx2Config();
|
|
1111
|
-
break;
|
|
1112
|
-
case deviceParameters.ABSOLUTE_DATA:
|
|
1113
|
-
data = this.getParameterAbsoluteData();
|
|
1114
|
-
break;
|
|
1115
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE:
|
|
1116
|
-
data = this.getParameterAbsoluteDataEnable();
|
|
1117
|
-
break;
|
|
1118
|
-
case deviceParameters.SERIAL_NUMBER:
|
|
1119
|
-
data = this.getParameterSerialNumber();
|
|
1120
|
-
break;
|
|
1121
|
-
case deviceParameters.GEOLOCATION:
|
|
1122
|
-
data = this.getParameterGeolocation();
|
|
1123
|
-
break;
|
|
1124
|
-
case deviceParameters.EXTRA_FRAME_INTERVAL:
|
|
1125
|
-
data = this.getParameterExtraFrameInterval();
|
|
1126
|
-
break;
|
|
1127
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1128
|
-
data = this.getParameterAbsoluteDataMC();
|
|
1129
|
-
break;
|
|
1130
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1131
|
-
data = this.getParameterAbsoluteDataEnableMC();
|
|
1132
|
-
break;
|
|
1133
|
-
case deviceParameters.PULSE_CHANNELS_SCAN_CONFIG:
|
|
1134
|
-
data = this.getParameterPulseChannelsScanConfig();
|
|
1135
|
-
break;
|
|
1136
|
-
case deviceParameters.PULSE_CHANNELS_SET_CONFIG:
|
|
1137
|
-
data = this.getParameterPulseChannelsEnableConfig();
|
|
1138
|
-
break;
|
|
1139
|
-
case deviceParameters.BATTERY_DEPASSIVATION_CONFIG:
|
|
1140
|
-
data = this.getParameterBatteryDepassivationConfig();
|
|
1141
|
-
break;
|
|
1142
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
1143
|
-
data = this.getParameterMqttSessionConfig();
|
|
1144
|
-
break;
|
|
1145
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
1146
|
-
data = this.getParameterMqttBrokerAddress();
|
|
1147
|
-
break;
|
|
1148
|
-
case deviceParameters.MQTT_SSL_ENABLE:
|
|
1149
|
-
data = this.getParameterMqttSslEnable();
|
|
1150
|
-
break;
|
|
1151
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
1152
|
-
data = this.getParameterMqttTopicPrefix();
|
|
1153
|
-
break;
|
|
1154
|
-
case deviceParameters.MQTT_DATA_RECEIVE_CONFIG:
|
|
1155
|
-
data = this.getParameterMqttDataReceiveConfig();
|
|
1156
|
-
break;
|
|
1157
|
-
case deviceParameters.MQTT_DATA_SEND_CONFIG:
|
|
1158
|
-
data = this.getParameterMqttDataSendConfig();
|
|
1159
|
-
break;
|
|
1160
|
-
case deviceParameters.NBIOT_SSL_CONFIG:
|
|
1161
|
-
data = this.getParameterNbiotSslConfig();
|
|
1162
|
-
break;
|
|
1163
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
1164
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
1165
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
1166
|
-
data = this.getParameterNbiotSslWrite();
|
|
1167
|
-
break;
|
|
1168
|
-
case deviceParameters.NBIOT_SSL_CACERT_SET:
|
|
1169
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_SET:
|
|
1170
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_SET:
|
|
1171
|
-
data = this.getParameterNbiotSslSet();
|
|
1172
|
-
break;
|
|
1173
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
1174
|
-
data = this.getParameterNbiotDeviceSoftwareUpdate();
|
|
1175
|
-
break;
|
|
1176
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
1177
|
-
data = this.getParameterNbiotModuleFirmwareUpdate();
|
|
1178
|
-
break;
|
|
1179
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1180
|
-
data = this.getParameterReportingDataConfig();
|
|
1181
|
-
break;
|
|
1182
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1183
|
-
data = this.getParameterEventsConfig();
|
|
1184
|
-
break;
|
|
1185
|
-
case deviceParameters.NBIOT_BANDS:
|
|
1186
|
-
data = this.getParameterNbiotBands();
|
|
1187
|
-
break;
|
|
1188
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
1189
|
-
data = null;
|
|
1190
|
-
break;
|
|
1191
|
-
default:
|
|
1192
|
-
throw new Error(`parameter ${id} is not supported`);
|
|
1193
|
-
}
|
|
1194
|
-
return { id, data };
|
|
1195
|
-
}
|
|
1196
|
-
setParameter(parameter) {
|
|
1197
|
-
const { id, data } = parameter;
|
|
1198
|
-
this.setUint8(id);
|
|
1199
|
-
switch (id) {
|
|
1200
|
-
case deviceParameters.REPORTING_DATA_INTERVAL:
|
|
1201
|
-
this.setParameterReportingDataInterval(data);
|
|
1202
|
-
break;
|
|
1203
|
-
case deviceParameters.REPORTING_DATA_TYPE:
|
|
1204
|
-
this.setParameterReportingDataType(data);
|
|
1205
|
-
break;
|
|
1206
|
-
case deviceParameters.DAY_CHECKOUT_HOUR:
|
|
1207
|
-
this.setParameterDayCheckoutHour(data);
|
|
1208
|
-
break;
|
|
1209
|
-
case deviceParameters.PRIORITY_DATA_DELIVERY_TYPE:
|
|
1210
|
-
this.setParameterDeliveryTypeOfPriorityData(data);
|
|
1211
|
-
break;
|
|
1212
|
-
case deviceParameters.ACTIVATION_METHOD:
|
|
1213
|
-
this.setParameterActivationMethod(data);
|
|
1214
|
-
break;
|
|
1215
|
-
case deviceParameters.BATTERY_DEPASSIVATION_INFO:
|
|
1216
|
-
this.setParameterBatteryDepassivationInfo(data);
|
|
1217
|
-
break;
|
|
1218
|
-
case deviceParameters.BATTERY_MINIMAL_LOAD_TIME:
|
|
1219
|
-
this.setParameterBatteryMinimalLoadTime(data);
|
|
1220
|
-
break;
|
|
1221
|
-
case deviceParameters.CHANNELS_CONFIG:
|
|
1222
|
-
this.setParameterChannelsConfig(data);
|
|
1223
|
-
break;
|
|
1224
|
-
case deviceParameters.RX2_CONFIG:
|
|
1225
|
-
this.setParameterRx2Config(data);
|
|
1226
|
-
break;
|
|
1227
|
-
case deviceParameters.ABSOLUTE_DATA:
|
|
1228
|
-
this.setParameterAbsoluteData(data);
|
|
1229
|
-
break;
|
|
1230
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE:
|
|
1231
|
-
this.setParameterAbsoluteDataEnable(data);
|
|
1232
|
-
break;
|
|
1233
|
-
case deviceParameters.SERIAL_NUMBER:
|
|
1234
|
-
this.setParameterSerialNumber(data);
|
|
1235
|
-
break;
|
|
1236
|
-
case deviceParameters.GEOLOCATION:
|
|
1237
|
-
this.setParameterGeolocation(data);
|
|
1238
|
-
break;
|
|
1239
|
-
case deviceParameters.EXTRA_FRAME_INTERVAL:
|
|
1240
|
-
this.setParameterExtraFrameInterval(data);
|
|
1241
|
-
break;
|
|
1242
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1243
|
-
this.setParameterAbsoluteDataMC(data);
|
|
1244
|
-
break;
|
|
1245
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1246
|
-
this.setParameterAbsoluteDataEnableMC(data);
|
|
1247
|
-
break;
|
|
1248
|
-
case deviceParameters.PULSE_CHANNELS_SCAN_CONFIG:
|
|
1249
|
-
this.setParameterPulseChannelsScanConfig(data);
|
|
1250
|
-
break;
|
|
1251
|
-
case deviceParameters.PULSE_CHANNELS_SET_CONFIG:
|
|
1252
|
-
this.setParameterPulseChannelsEnableConfig(data);
|
|
1253
|
-
break;
|
|
1254
|
-
case deviceParameters.BATTERY_DEPASSIVATION_CONFIG:
|
|
1255
|
-
this.setParameterBatteryDepassivationConfig(data);
|
|
1256
|
-
break;
|
|
1257
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
1258
|
-
this.setParameterMqttSessionConfig(data);
|
|
1259
|
-
break;
|
|
1260
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
1261
|
-
this.setParameterMqttBrokerAddress(data);
|
|
1262
|
-
break;
|
|
1263
|
-
case deviceParameters.MQTT_SSL_ENABLE:
|
|
1264
|
-
this.setParameterMqttSslEnable(data);
|
|
1265
|
-
break;
|
|
1266
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
1267
|
-
this.setParameterMqttTopicPrefix(data);
|
|
1268
|
-
break;
|
|
1269
|
-
case deviceParameters.MQTT_DATA_RECEIVE_CONFIG:
|
|
1270
|
-
this.setParameterMqttDataReceiveConfig(data);
|
|
1271
|
-
break;
|
|
1272
|
-
case deviceParameters.MQTT_DATA_SEND_CONFIG:
|
|
1273
|
-
this.setParameterMqttDataSendConfig(data);
|
|
1274
|
-
break;
|
|
1275
|
-
case deviceParameters.NBIOT_SSL_CONFIG:
|
|
1276
|
-
this.setParameterNbiotSslConfig(data);
|
|
1277
|
-
break;
|
|
1278
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
1279
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
1280
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
1281
|
-
this.setParameterNbiotSslWrite(data);
|
|
1282
|
-
break;
|
|
1283
|
-
case deviceParameters.NBIOT_SSL_CACERT_SET:
|
|
1284
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_SET:
|
|
1285
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_SET:
|
|
1286
|
-
this.setParameterNbiotSslSet(data);
|
|
1287
|
-
break;
|
|
1288
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
1289
|
-
this.setParameterNbiotDeviceSoftwareUpdate(data);
|
|
1290
|
-
break;
|
|
1291
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
1292
|
-
this.setParameterNbiotModuleFirmwareUpdate(data);
|
|
1293
|
-
break;
|
|
1294
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1295
|
-
this.setParameterReportingDataConfig(data);
|
|
1296
|
-
break;
|
|
1297
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1298
|
-
this.setParameterEventsConfig(data);
|
|
1299
|
-
break;
|
|
1300
|
-
case deviceParameters.NBIOT_BANDS:
|
|
1301
|
-
this.setParameterNbiotBands(data);
|
|
1302
|
-
break;
|
|
1303
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
1304
|
-
break;
|
|
1305
|
-
default:
|
|
1306
|
-
throw new Error(`parameter ${id} is not supported`);
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
getRequestChannelParameter() {
|
|
1310
|
-
return {
|
|
1311
|
-
channel: this.getChannelValue()
|
|
1312
|
-
};
|
|
1313
|
-
}
|
|
1314
|
-
setRequestChannelParameter(parameter) {
|
|
1315
|
-
this.setChannelValue(parameter.channel);
|
|
1316
|
-
}
|
|
1317
|
-
getRequestDataTypeParameter() {
|
|
1318
|
-
return {
|
|
1319
|
-
dataType: this.getUint8()
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
setRequestDataTypeParameter(parameter) {
|
|
1323
|
-
this.setUint8(parameter.dataType);
|
|
1324
|
-
}
|
|
1325
|
-
getRequestEventIdParameter() {
|
|
1326
|
-
return {
|
|
1327
|
-
eventId: this.getUint8()
|
|
1328
|
-
};
|
|
1329
|
-
}
|
|
1330
|
-
setRequestEventIdParameter(parameter) {
|
|
1331
|
-
this.setUint8(parameter.eventId);
|
|
1332
|
-
}
|
|
1333
|
-
getRequestParameter() {
|
|
1334
|
-
const id = this.getUint8();
|
|
1335
|
-
let data = null;
|
|
1336
|
-
switch (id) {
|
|
1337
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1338
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1339
|
-
data = this.getRequestChannelParameter();
|
|
1340
|
-
break;
|
|
1341
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1342
|
-
data = this.getRequestDataTypeParameter();
|
|
1343
|
-
break;
|
|
1344
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1345
|
-
data = this.getRequestEventIdParameter();
|
|
1346
|
-
break;
|
|
1347
|
-
default:
|
|
1348
|
-
break;
|
|
1349
|
-
}
|
|
1350
|
-
return { id, data };
|
|
1351
|
-
}
|
|
1352
|
-
setRequestParameter(parameter) {
|
|
1353
|
-
const { id, data } = parameter;
|
|
1354
|
-
this.setUint8(id);
|
|
1355
|
-
switch (id) {
|
|
1356
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1357
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1358
|
-
this.setRequestChannelParameter(data);
|
|
1359
|
-
break;
|
|
1360
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1361
|
-
this.setRequestDataTypeParameter(data);
|
|
1362
|
-
break;
|
|
1363
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1364
|
-
this.setRequestEventIdParameter(data);
|
|
1365
|
-
break;
|
|
1366
|
-
default:
|
|
1367
|
-
break;
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
getResponseParameter() {
|
|
1371
|
-
const id = this.getUint8();
|
|
1372
|
-
let data;
|
|
1373
|
-
switch (id) {
|
|
1374
|
-
case deviceParameters.REPORTING_DATA_INTERVAL:
|
|
1375
|
-
data = this.getParameterReportingDataInterval();
|
|
1376
|
-
break;
|
|
1377
|
-
case deviceParameters.REPORTING_DATA_TYPE:
|
|
1378
|
-
data = this.getParameterReportingDataType();
|
|
1379
|
-
break;
|
|
1380
|
-
case deviceParameters.DAY_CHECKOUT_HOUR:
|
|
1381
|
-
data = this.getParameterDayCheckoutHour();
|
|
1382
|
-
break;
|
|
1383
|
-
case deviceParameters.PRIORITY_DATA_DELIVERY_TYPE:
|
|
1384
|
-
data = this.getParameterDeliveryTypeOfPriorityData();
|
|
1385
|
-
break;
|
|
1386
|
-
case deviceParameters.ACTIVATION_METHOD:
|
|
1387
|
-
data = this.getParameterActivationMethod();
|
|
1388
|
-
break;
|
|
1389
|
-
case deviceParameters.BATTERY_DEPASSIVATION_INFO:
|
|
1390
|
-
data = this.getParameterBatteryDepassivationInfo();
|
|
1391
|
-
break;
|
|
1392
|
-
case deviceParameters.BATTERY_MINIMAL_LOAD_TIME:
|
|
1393
|
-
data = this.getParameterBatteryMinimalLoadTime();
|
|
1394
|
-
break;
|
|
1395
|
-
case deviceParameters.CHANNELS_CONFIG:
|
|
1396
|
-
data = this.getParameterChannelsConfig();
|
|
1397
|
-
break;
|
|
1398
|
-
case deviceParameters.RX2_CONFIG:
|
|
1399
|
-
data = this.getParameterRx2Config();
|
|
1400
|
-
break;
|
|
1401
|
-
case deviceParameters.ABSOLUTE_DATA:
|
|
1402
|
-
data = this.getParameterAbsoluteData();
|
|
1403
|
-
break;
|
|
1404
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE:
|
|
1405
|
-
data = this.getParameterAbsoluteDataEnable();
|
|
1406
|
-
break;
|
|
1407
|
-
case deviceParameters.SERIAL_NUMBER:
|
|
1408
|
-
data = this.getParameterSerialNumber();
|
|
1409
|
-
break;
|
|
1410
|
-
case deviceParameters.GEOLOCATION:
|
|
1411
|
-
data = this.getParameterGeolocation();
|
|
1412
|
-
break;
|
|
1413
|
-
case deviceParameters.EXTRA_FRAME_INTERVAL:
|
|
1414
|
-
data = this.getParameterExtraFrameInterval();
|
|
1415
|
-
break;
|
|
1416
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1417
|
-
data = this.getParameterAbsoluteDataMC();
|
|
1418
|
-
break;
|
|
1419
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1420
|
-
data = this.getParameterAbsoluteDataEnableMC();
|
|
1421
|
-
break;
|
|
1422
|
-
case deviceParameters.PULSE_CHANNELS_SCAN_CONFIG:
|
|
1423
|
-
data = this.getParameterPulseChannelsScanConfig();
|
|
1424
|
-
break;
|
|
1425
|
-
case deviceParameters.PULSE_CHANNELS_SET_CONFIG:
|
|
1426
|
-
data = this.getParameterPulseChannelsEnableConfig();
|
|
1427
|
-
break;
|
|
1428
|
-
case deviceParameters.BATTERY_DEPASSIVATION_CONFIG:
|
|
1429
|
-
data = this.getParameterBatteryDepassivationConfig();
|
|
1430
|
-
break;
|
|
1431
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
1432
|
-
data = this.getParameterMqttBrokerAddress();
|
|
1433
|
-
break;
|
|
1434
|
-
case deviceParameters.MQTT_SSL_ENABLE:
|
|
1435
|
-
data = this.getParameterMqttSslEnable();
|
|
1436
|
-
break;
|
|
1437
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
1438
|
-
data = this.getParameterMqttTopicPrefix();
|
|
1439
|
-
break;
|
|
1440
|
-
case deviceParameters.MQTT_DATA_RECEIVE_CONFIG:
|
|
1441
|
-
data = this.getParameterMqttDataReceiveConfig();
|
|
1442
|
-
break;
|
|
1443
|
-
case deviceParameters.MQTT_DATA_SEND_CONFIG:
|
|
1444
|
-
data = this.getParameterMqttDataSendConfig();
|
|
1445
|
-
break;
|
|
1446
|
-
case deviceParameters.NBIOT_SSL_CONFIG:
|
|
1447
|
-
data = this.getParameterNbiotSslConfig();
|
|
1448
|
-
break;
|
|
1449
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1450
|
-
data = this.getParameterReportingDataConfig();
|
|
1451
|
-
break;
|
|
1452
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1453
|
-
data = this.getParameterEventsConfig();
|
|
1454
|
-
break;
|
|
1455
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
1456
|
-
data = this.getParameterNbiotModuleInfo();
|
|
1457
|
-
break;
|
|
1458
|
-
case deviceParameters.NBIOT_BANDS:
|
|
1459
|
-
data = this.getParameterNbiotBands();
|
|
1460
|
-
break;
|
|
1461
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
1462
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
1463
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
1464
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
1465
|
-
case deviceParameters.NBIOT_SSL_CACERT_SET:
|
|
1466
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_SET:
|
|
1467
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_SET:
|
|
1468
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
1469
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
1470
|
-
data = null;
|
|
1471
|
-
break;
|
|
1472
|
-
default:
|
|
1473
|
-
throw new Error(`parameter ${id} is not supported`);
|
|
1474
|
-
}
|
|
1475
|
-
return { id, data };
|
|
1476
|
-
}
|
|
1477
|
-
setResponseParameter(parameter) {
|
|
1478
|
-
const { id, data } = parameter;
|
|
1479
|
-
this.setUint8(id);
|
|
1480
|
-
switch (id) {
|
|
1481
|
-
case deviceParameters.REPORTING_DATA_INTERVAL:
|
|
1482
|
-
this.setParameterReportingDataInterval(data);
|
|
1483
|
-
break;
|
|
1484
|
-
case deviceParameters.REPORTING_DATA_TYPE:
|
|
1485
|
-
this.setParameterReportingDataType(data);
|
|
1486
|
-
break;
|
|
1487
|
-
case deviceParameters.DAY_CHECKOUT_HOUR:
|
|
1488
|
-
this.setParameterDayCheckoutHour(data);
|
|
1489
|
-
break;
|
|
1490
|
-
case deviceParameters.PRIORITY_DATA_DELIVERY_TYPE:
|
|
1491
|
-
this.setParameterDeliveryTypeOfPriorityData(data);
|
|
1492
|
-
break;
|
|
1493
|
-
case deviceParameters.ACTIVATION_METHOD:
|
|
1494
|
-
this.setParameterActivationMethod(data);
|
|
1495
|
-
break;
|
|
1496
|
-
case deviceParameters.BATTERY_DEPASSIVATION_INFO:
|
|
1497
|
-
this.setParameterBatteryDepassivationInfo(data);
|
|
1498
|
-
break;
|
|
1499
|
-
case deviceParameters.BATTERY_MINIMAL_LOAD_TIME:
|
|
1500
|
-
this.setParameterBatteryMinimalLoadTime(data);
|
|
1501
|
-
break;
|
|
1502
|
-
case deviceParameters.CHANNELS_CONFIG:
|
|
1503
|
-
this.setParameterChannelsConfig(data);
|
|
1504
|
-
break;
|
|
1505
|
-
case deviceParameters.RX2_CONFIG:
|
|
1506
|
-
this.setParameterRx2Config(data);
|
|
1507
|
-
break;
|
|
1508
|
-
case deviceParameters.ABSOLUTE_DATA:
|
|
1509
|
-
this.setParameterAbsoluteData(data);
|
|
1510
|
-
break;
|
|
1511
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE:
|
|
1512
|
-
this.setParameterAbsoluteDataEnable(data);
|
|
1513
|
-
break;
|
|
1514
|
-
case deviceParameters.SERIAL_NUMBER:
|
|
1515
|
-
this.setParameterSerialNumber(data);
|
|
1516
|
-
break;
|
|
1517
|
-
case deviceParameters.GEOLOCATION:
|
|
1518
|
-
this.setParameterGeolocation(data);
|
|
1519
|
-
break;
|
|
1520
|
-
case deviceParameters.EXTRA_FRAME_INTERVAL:
|
|
1521
|
-
this.setParameterExtraFrameInterval(data);
|
|
1522
|
-
break;
|
|
1523
|
-
case deviceParameters.ABSOLUTE_DATA_MULTI_CHANNEL:
|
|
1524
|
-
this.setParameterAbsoluteDataMC(data);
|
|
1525
|
-
break;
|
|
1526
|
-
case deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL:
|
|
1527
|
-
this.setParameterAbsoluteDataEnableMC(data);
|
|
1528
|
-
break;
|
|
1529
|
-
case deviceParameters.PULSE_CHANNELS_SCAN_CONFIG:
|
|
1530
|
-
this.setParameterPulseChannelsScanConfig(data);
|
|
1531
|
-
break;
|
|
1532
|
-
case deviceParameters.PULSE_CHANNELS_SET_CONFIG:
|
|
1533
|
-
this.setParameterPulseChannelsEnableConfig(data);
|
|
1534
|
-
break;
|
|
1535
|
-
case deviceParameters.BATTERY_DEPASSIVATION_CONFIG:
|
|
1536
|
-
this.setParameterBatteryDepassivationConfig(data);
|
|
1537
|
-
break;
|
|
1538
|
-
case deviceParameters.MQTT_BROKER_ADDRESS:
|
|
1539
|
-
this.setParameterMqttBrokerAddress(data);
|
|
1540
|
-
break;
|
|
1541
|
-
case deviceParameters.MQTT_SSL_ENABLE:
|
|
1542
|
-
this.setParameterMqttSslEnable(data);
|
|
1543
|
-
break;
|
|
1544
|
-
case deviceParameters.MQTT_TOPIC_PREFIX:
|
|
1545
|
-
this.setParameterMqttTopicPrefix(data);
|
|
1546
|
-
break;
|
|
1547
|
-
case deviceParameters.MQTT_DATA_RECEIVE_CONFIG:
|
|
1548
|
-
this.setParameterMqttDataReceiveConfig(data);
|
|
1549
|
-
break;
|
|
1550
|
-
case deviceParameters.MQTT_DATA_SEND_CONFIG:
|
|
1551
|
-
this.setParameterMqttDataSendConfig(data);
|
|
1552
|
-
break;
|
|
1553
|
-
case deviceParameters.NBIOT_SSL_CONFIG:
|
|
1554
|
-
this.setParameterNbiotSslConfig(data);
|
|
1555
|
-
break;
|
|
1556
|
-
case deviceParameters.REPORTING_DATA_CONFIG:
|
|
1557
|
-
this.setParameterReportingDataConfig(data);
|
|
1558
|
-
break;
|
|
1559
|
-
case deviceParameters.EVENTS_CONFIG:
|
|
1560
|
-
this.setParameterEventsConfig(data);
|
|
1561
|
-
break;
|
|
1562
|
-
case deviceParameters.NBIOT_MODULE_INFO:
|
|
1563
|
-
this.setParameterNbiotModuleInfo(data);
|
|
1564
|
-
break;
|
|
1565
|
-
case deviceParameters.NBIOT_BANDS:
|
|
1566
|
-
this.setParameterNbiotBands(data);
|
|
1567
|
-
break;
|
|
1568
|
-
case deviceParameters.MQTT_SESSION_CONFIG:
|
|
1569
|
-
case deviceParameters.NBIOT_SSL_CACERT_WRITE:
|
|
1570
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_WRITE:
|
|
1571
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_WRITE:
|
|
1572
|
-
case deviceParameters.NBIOT_SSL_CACERT_SET:
|
|
1573
|
-
case deviceParameters.NBIOT_SSL_CLIENT_CERT_SET:
|
|
1574
|
-
case deviceParameters.NBIOT_SSL_CLIENT_KEY_SET:
|
|
1575
|
-
case deviceParameters.NBIOT_DEVICE_SOFTWARE_UPDATE:
|
|
1576
|
-
case deviceParameters.NBIOT_MODULE_FIRMWARE_UPDATE:
|
|
1577
|
-
break;
|
|
1578
|
-
default:
|
|
1579
|
-
throw new Error(`parameter ${id} is not supported`);
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
getLegacyCounterValue() {
|
|
1583
|
-
return this.getUint24(false);
|
|
1584
|
-
}
|
|
1585
|
-
setLegacyCounterValue(value) {
|
|
1586
|
-
this.setUint24(value, false);
|
|
1587
|
-
}
|
|
1588
|
-
getLegacyCounter(byte = this.getUint8()) {
|
|
1589
|
-
return {
|
|
1590
|
-
isMagneticInfluence: CommandBinaryBuffer.getMagneticInfluenceBit(byte),
|
|
1591
|
-
value: this.getLegacyCounterValue()
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
setLegacyCounter(counter, byte = 0) {
|
|
1595
|
-
this.setUint8(CommandBinaryBuffer.setMagneticInfluenceBit(byte, counter.isMagneticInfluence));
|
|
1596
|
-
this.setLegacyCounterValue(counter.value);
|
|
1597
|
-
}
|
|
1598
|
-
getLegacyHourCounterWithDiff() {
|
|
1599
|
-
const date = this.getDate();
|
|
1600
|
-
const byte = this.getUint8();
|
|
1601
|
-
const { hour } = this.getHours(byte);
|
|
1602
|
-
const counter = {
|
|
1603
|
-
isMagneticInfluence: CommandBinaryBuffer.getMagneticInfluenceBit(byte),
|
|
1604
|
-
value: this.getLegacyCounterValue()
|
|
1605
|
-
};
|
|
1606
|
-
const diff = [];
|
|
1607
|
-
while (this.offset < this.data.byteLength) {
|
|
1608
|
-
diff.push(this.getLegacyHourDiff());
|
|
1609
|
-
}
|
|
1610
|
-
date.setUTCHours(hour);
|
|
1611
|
-
return { startTime2000: getTime2000FromDate(date), counter, diff };
|
|
1612
|
-
}
|
|
1613
|
-
setLegacyHourCounterWithDiff(hourCounter) {
|
|
1614
|
-
const date = getDateFromTime2000(hourCounter.startTime2000);
|
|
1615
|
-
const hour = date.getUTCHours();
|
|
1616
|
-
this.setDate(date);
|
|
1617
|
-
this.setHours(hour, 1);
|
|
1618
|
-
this.seek(this.offset - 1);
|
|
1619
|
-
const byte = this.getUint8();
|
|
1620
|
-
this.seek(this.offset - 1);
|
|
1621
|
-
this.setUint8(CommandBinaryBuffer.setMagneticInfluenceBit(byte, hourCounter.counter.isMagneticInfluence));
|
|
1622
|
-
this.setLegacyCounterValue(hourCounter.counter.value);
|
|
1623
|
-
hourCounter.diff.forEach(diffItem => this.setLegacyHourDiff(diffItem));
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
export default CommandBinaryBuffer;
|
|
1627
|
-
//# sourceMappingURL=CommandBinaryBuffer.js.map
|