jooby-codec 3.1.2 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analog/CommandBinaryBuffer.d.ts +4 -5
- package/dist/analog/CommandBinaryBuffer.js +59 -18
- package/dist/analog/CommandBinaryBuffer.js.map +1 -1
- package/dist/analog/commands/downlink/CorrectTime2000.js +1 -1
- package/dist/analog/commands/downlink/CorrectTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveDays.js +1 -1
- package/dist/analog/commands/downlink/GetArchiveDays.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js +1 -1
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveEvents.js +1 -1
- package/dist/analog/commands/downlink/GetArchiveEvents.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveHours.js +1 -1
- package/dist/analog/commands/downlink/GetArchiveHours.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js +1 -1
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetBatteryStatus.d.ts +11 -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/GetCurrent.js +1 -1
- package/dist/analog/commands/downlink/GetCurrent.js.map +1 -1
- package/dist/analog/commands/downlink/GetCurrentMC.js +1 -1
- package/dist/analog/commands/downlink/GetCurrentMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js +1 -1
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetLmicInfo.js +1 -1
- package/dist/analog/commands/downlink/GetLmicInfo.js.map +1 -1
- package/dist/analog/commands/downlink/GetParameter.js +1 -1
- package/dist/analog/commands/downlink/GetParameter.js.map +1 -1
- package/dist/analog/commands/downlink/GetStatus.js +1 -1
- package/dist/analog/commands/downlink/GetStatus.js.map +1 -1
- package/dist/analog/commands/downlink/GetTime2000.d.ts +11 -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/SetParameter.js +1 -1
- package/dist/analog/commands/downlink/SetParameter.js.map +1 -1
- package/dist/analog/commands/downlink/SetTime2000.js +1 -1
- package/dist/analog/commands/downlink/SetTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/SoftRestart.js +1 -1
- package/dist/analog/commands/downlink/SoftRestart.js.map +1 -1
- package/dist/analog/commands/downlink/UpdateRun.d.ts +10 -0
- package/dist/analog/commands/downlink/UpdateRun.js +23 -0
- package/dist/analog/commands/downlink/UpdateRun.js.map +1 -0
- package/dist/analog/commands/downlink/VerifyImage.d.ts +10 -0
- package/dist/analog/commands/downlink/VerifyImage.js +23 -0
- package/dist/analog/commands/downlink/VerifyImage.js.map +1 -0
- package/dist/analog/commands/downlink/WriteImage.d.ts +16 -0
- package/dist/analog/commands/downlink/WriteImage.js +45 -0
- package/dist/analog/commands/downlink/WriteImage.js.map +1 -0
- package/dist/analog/commands/downlink/index.d.ts +8 -3
- package/dist/analog/commands/downlink/index.js +8 -3
- package/dist/analog/commands/downlink/index.js.map +1 -1
- package/dist/analog/commands/uplink/CorrectTime2000Response.js +1 -1
- package/dist/analog/commands/uplink/CorrectTime2000Response.js.map +1 -1
- package/dist/analog/commands/uplink/Current.js +1 -1
- package/dist/analog/commands/uplink/Current.js.map +1 -1
- package/dist/analog/commands/uplink/CurrentMC.js +1 -1
- package/dist/analog/commands/uplink/CurrentMC.js.map +1 -1
- package/dist/analog/commands/uplink/Day.js +1 -1
- package/dist/analog/commands/uplink/Day.js.map +1 -1
- package/dist/analog/commands/uplink/DayMC.js +1 -1
- package/dist/analog/commands/uplink/DayMC.js.map +1 -1
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js +1 -1
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js.map +1 -1
- package/dist/analog/commands/uplink/ExAbsDayMC.js +1 -1
- package/dist/analog/commands/uplink/ExAbsDayMC.js.map +1 -1
- package/dist/analog/commands/uplink/ExAbsHourMC.js +4 -24
- package/dist/analog/commands/uplink/ExAbsHourMC.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js +15 -1
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.js +1 -1
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js +1 -1
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js +10 -1
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveHoursResponse.js +1 -1
- package/dist/analog/commands/uplink/GetArchiveHoursResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.d.ts +21 -0
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.js +57 -0
- package/dist/analog/commands/uplink/GetBatteryStatusResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +2 -2
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js +7 -3
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.d.ts +2 -2
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js +12 -24
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js +1 -1
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetParameterResponse.js +1 -1
- package/dist/analog/commands/uplink/GetParameterResponse.js.map +1 -1
- package/dist/analog/commands/uplink/Hour.js +1 -1
- package/dist/analog/commands/uplink/Hour.js.map +1 -1
- package/dist/analog/commands/uplink/HourMC.js +1 -1
- package/dist/analog/commands/uplink/HourMC.js.map +1 -1
- package/dist/analog/commands/uplink/LastEvent.js +1 -1
- package/dist/analog/commands/uplink/LastEvent.js.map +1 -1
- package/dist/analog/commands/uplink/NewEvent.js +1 -1
- package/dist/analog/commands/uplink/NewEvent.js.map +1 -1
- package/dist/analog/commands/uplink/SetParameterResponse.js +1 -1
- package/dist/analog/commands/uplink/SetParameterResponse.js.map +1 -1
- package/dist/analog/commands/uplink/SetTime2000Response.js +1 -1
- package/dist/analog/commands/uplink/SetTime2000Response.js.map +1 -1
- package/dist/analog/commands/uplink/SoftRestartResponse.js +1 -1
- package/dist/analog/commands/uplink/SoftRestartResponse.js.map +1 -1
- package/dist/analog/commands/uplink/Status.js +2 -2
- package/dist/analog/commands/uplink/Status.js.map +1 -1
- package/dist/analog/commands/uplink/Time2000.js +1 -1
- package/dist/analog/commands/uplink/Time2000.js.map +1 -1
- package/dist/analog/commands/uplink/UpdateRunResponse.d.ts +10 -0
- package/dist/analog/commands/uplink/UpdateRunResponse.js +23 -0
- package/dist/analog/commands/uplink/UpdateRunResponse.js.map +1 -0
- package/dist/analog/commands/uplink/VerifyImageResponse.d.ts +15 -0
- package/dist/analog/commands/uplink/VerifyImageResponse.js +29 -0
- package/dist/analog/commands/uplink/VerifyImageResponse.js.map +1 -0
- package/dist/analog/commands/uplink/WriteImageResponse.d.ts +16 -0
- package/dist/analog/commands/uplink/WriteImageResponse.js +41 -0
- package/dist/analog/commands/uplink/WriteImageResponse.js.map +1 -0
- package/dist/analog/commands/uplink/index.d.ts +5 -1
- package/dist/analog/commands/uplink/index.js +5 -1
- package/dist/analog/commands/uplink/index.js.map +1 -1
- package/dist/analog/constants/commandRelations.d.ts +6 -0
- package/dist/analog/constants/commandRelations.js +31 -0
- package/dist/analog/constants/commandRelations.js.map +1 -0
- package/dist/analog/constants/index.d.ts +0 -1
- package/dist/analog/constants/index.js +0 -1
- package/dist/analog/constants/index.js.map +1 -1
- package/dist/analog/message.d.ts +0 -9
- package/dist/analog/message.js +6 -15
- package/dist/analog/message.js.map +1 -1
- package/dist/constants/directions.js.map +1 -0
- package/dist/constants/frameAttributes.js.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/mtx/CommandBinaryBuffer.d.ts +16 -1
- package/dist/mtx/CommandBinaryBuffer.js +143 -6
- package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx/commands/downlink/ActivateRatePlan.js +1 -1
- package/dist/mtx/commands/downlink/ActivateRatePlan.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDateTime.js +1 -1
- package/dist/mtx/commands/downlink/GetDateTime.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDayProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/GetDayProfile.js +48 -0
- package/dist/mtx/commands/downlink/GetDayProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js +1 -1
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDeviceType.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetDeviceType.js +31 -0
- package/dist/mtx/commands/downlink/GetDeviceType.js.map +1 -0
- package/dist/mtx/commands/downlink/GetDisplayParam.js +1 -1
- package/dist/mtx/commands/downlink/GetDisplayParam.js.map +1 -1
- package/dist/mtx/commands/downlink/GetOpParams.js +1 -1
- package/dist/mtx/commands/downlink/GetOpParams.js.map +1 -1
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js +1 -1
- package/dist/mtx/commands/downlink/GetRatePlanInfo.js.map +1 -1
- package/dist/mtx/commands/downlink/GetSeasonProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/GetSeasonProfile.js +48 -0
- package/dist/mtx/commands/downlink/GetSeasonProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/GetSpecialDay.d.ts +19 -0
- package/dist/mtx/commands/downlink/GetSpecialDay.js +48 -0
- package/dist/mtx/commands/downlink/GetSpecialDay.js.map +1 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +1 -1
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -1
- package/dist/mtx/commands/downlink/RunTariffPlan.js +1 -1
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -1
- package/dist/mtx/commands/downlink/SetAccessKey.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetAccessKey.js +51 -0
- package/dist/mtx/commands/downlink/SetAccessKey.js.map +1 -0
- package/dist/mtx/commands/downlink/SetCorrectDateTime.d.ts +17 -0
- package/dist/mtx/commands/downlink/SetCorrectDateTime.js +51 -0
- package/dist/mtx/commands/downlink/SetCorrectDateTime.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDateTime.d.ts +15 -0
- package/dist/mtx/commands/downlink/SetDateTime.js +48 -0
- package/dist/mtx/commands/downlink/SetDateTime.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js +1 -1
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -1
- package/dist/mtx/commands/downlink/SetDisplayParam.js +1 -1
- package/dist/mtx/commands/downlink/SetDisplayParam.js.map +1 -1
- package/dist/mtx/commands/downlink/SetOpParams.js +1 -1
- package/dist/mtx/commands/downlink/SetOpParams.js.map +1 -1
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +1 -1
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -1
- package/dist/mtx/commands/downlink/SetSpecialDay.js +2 -2
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -1
- package/dist/mtx/commands/downlink/TurnRelayOff.js +1 -1
- package/dist/mtx/commands/downlink/TurnRelayOff.js.map +1 -1
- package/dist/mtx/commands/downlink/TurnRelayOn.js +1 -1
- package/dist/mtx/commands/downlink/TurnRelayOn.js.map +1 -1
- package/dist/mtx/commands/downlink/index.d.ts +7 -0
- package/dist/mtx/commands/downlink/index.js +7 -0
- package/dist/mtx/commands/downlink/index.js.map +1 -1
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js +1 -1
- package/dist/mtx/commands/uplink/ActivateRatePlanResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/ErrorResponse.js +1 -1
- package/dist/mtx/commands/uplink/ErrorResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js +3 -3
- package/dist/mtx/commands/uplink/GetDateTimeResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDayProfileResponse.d.ts +18 -0
- package/dist/mtx/commands/uplink/GetDayProfileResponse.js +74 -0
- package/dist/mtx/commands/uplink/GetDayProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +3 -5
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +15 -15
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.d.ts +15 -0
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.js +54 -0
- package/dist/mtx/commands/uplink/GetDeviceTypeResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js +1 -1
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js +1 -1
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js +1 -1
- package/dist/mtx/commands/uplink/GetRatePlanInfoResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.d.ts +15 -0
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.js +44 -0
- package/dist/mtx/commands/uplink/GetSeasonProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.d.ts +15 -0
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.js +45 -0
- package/dist/mtx/commands/uplink/GetSpecialDayResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +1 -1
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +1 -1
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetAccessKeyResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetCorrectDateTimeResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDateTimeResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetDateTimeResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetDateTimeResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +1 -1
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js +1 -1
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js +1 -1
- package/dist/mtx/commands/uplink/SetOpParamsResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +1 -1
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +1 -1
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js +1 -1
- package/dist/mtx/commands/uplink/TurnRelayOffResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js +1 -1
- package/dist/mtx/commands/uplink/TurnRelayOnResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/index.d.ts +7 -0
- package/dist/mtx/commands/uplink/index.js +7 -0
- package/dist/mtx/commands/uplink/index.js.map +1 -1
- package/dist/mtx/constants/commandRelations.d.ts +4 -2
- package/dist/mtx/constants/commandRelations.js +3 -4
- package/dist/mtx/constants/commandRelations.js.map +1 -1
- package/dist/mtx/constants/index.d.ts +1 -2
- package/dist/mtx/constants/index.js +1 -2
- package/dist/mtx/constants/index.js.map +1 -1
- package/dist/mtx/constants/meterTypes.d.ts +3 -0
- package/dist/mtx/constants/meterTypes.js +4 -0
- package/dist/mtx/constants/meterTypes.js.map +1 -0
- package/dist/mtx/constants/resultCodes.js +5 -5
- package/dist/mtx/constants/resultCodes.js.map +1 -1
- package/dist/mtx/message.d.ts +0 -8
- package/dist/mtx/message.js +8 -10
- package/dist/mtx/message.js.map +1 -1
- package/dist/mtx/utils/crypto.d.ts +0 -2
- package/dist/mtx/utils/crypto.js +2 -17
- package/dist/mtx/utils/crypto.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +1 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +1 -1
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +45 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +1 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +1 -1
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -1
- package/dist/obis-observer/commands/downlink/Reboot.js +1 -1
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveObis.js +1 -1
- package/dist/obis-observer/commands/downlink/RemoveObis.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +1 -1
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +1 -1
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.js +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupObis.js +1 -1
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.js +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +1 -0
- package/dist/obis-observer/commands/downlink/index.js +1 -0
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReport.js +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +23 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +107 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +7 -6
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RebootResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +1 -0
- package/dist/obis-observer/commands/uplink/index.js +1 -0
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.d.ts +4 -2
- package/dist/obis-observer/constants/commandRelations.js +3 -4
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +0 -1
- package/dist/obis-observer/constants/index.js +0 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/resultCodes.d.ts +0 -1
- package/dist/obis-observer/constants/resultCodes.js +0 -1
- package/dist/obis-observer/constants/resultCodes.js.map +1 -1
- package/dist/obis-observer/constants/resultDescriptions.d.ts +0 -1
- package/dist/obis-observer/constants/resultDescriptions.js +0 -1
- package/dist/obis-observer/constants/resultDescriptions.js.map +1 -1
- package/dist/obis-observer/message.d.ts +0 -8
- package/dist/obis-observer/message.js +2 -5
- package/dist/obis-observer/message.js.map +1 -1
- package/dist/utils/BinaryBuffer.d.ts +2 -0
- package/dist/utils/BinaryBuffer.js +12 -1
- package/dist/utils/BinaryBuffer.js.map +1 -1
- package/dist/utils/calculateCrc16.d.ts +6 -0
- package/dist/utils/calculateCrc16.js +22 -0
- package/dist/utils/calculateCrc16.js.map +1 -0
- package/dist/utils/calculateCrc32.d.ts +5 -0
- package/dist/utils/calculateCrc32.js +28 -0
- package/dist/utils/calculateCrc32.js.map +1 -0
- package/dist/utils/calculateLrc.d.ts +2 -0
- package/dist/utils/calculateLrc.js +8 -0
- package/dist/utils/calculateLrc.js.map +1 -0
- package/dist/utils/frame.d.ts +14 -0
- package/dist/utils/frame.js +85 -0
- package/dist/utils/frame.js.map +1 -0
- package/dist/utils/frameCollector.d.ts +12 -0
- package/dist/utils/frameCollector.js +43 -0
- package/dist/utils/frameCollector.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/analog/constants/directions.js.map +0 -1
- package/dist/mtx/constants/directions.d.ts +0 -3
- package/dist/mtx/constants/directions.js +0 -4
- package/dist/mtx/constants/directions.js.map +0 -1
- package/dist/mtx/constants/frameAttributes.js.map +0 -1
- package/dist/obis-observer/constants/directions.d.ts +0 -2
- package/dist/obis-observer/constants/directions.js +0 -3
- package/dist/obis-observer/constants/directions.js.map +0 -1
- /package/dist/{analog/constants → constants}/directions.d.ts +0 -0
- /package/dist/{analog/constants → constants}/directions.js +0 -0
- /package/dist/{mtx/constants → constants}/frameAttributes.d.ts +0 -0
- /package/dist/{mtx/constants → constants}/frameAttributes.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,uB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ACxE,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import * as downlinkCommands from '../commands/downlink/index.js';
|
|
2
|
+
import * as uplinkCommands from '../commands/uplink/index.js';
|
|
1
3
|
export declare const requestByResponse: Map<any, any>;
|
|
2
4
|
export declare const responseByRequest: Map<any, any>;
|
|
3
|
-
export declare const requestById: Map<
|
|
4
|
-
export declare const responseById: Map<
|
|
5
|
+
export declare const requestById: Map<number, typeof downlinkCommands.ActivateRatePlan | typeof downlinkCommands.GetDateTime | typeof downlinkCommands.GetDayProfile | typeof downlinkCommands.GetDeviceId | typeof downlinkCommands.GetDeviceType | typeof downlinkCommands.GetDisplayParam | typeof downlinkCommands.GetOpParams | typeof downlinkCommands.GetRatePlanInfo | typeof downlinkCommands.GetSeasonProfile | typeof downlinkCommands.GetSpecialDay | typeof downlinkCommands.PrepareRatePlan | typeof downlinkCommands.RunTariffPlan | typeof downlinkCommands.SetAccessKey | typeof downlinkCommands.SetCorrectDateTime | typeof downlinkCommands.SetDateTime | typeof downlinkCommands.SetDayProfile | typeof downlinkCommands.SetDisplayParam | typeof downlinkCommands.SetOpParams | typeof downlinkCommands.SetSeasonProfile | typeof downlinkCommands.SetSpecialDay | typeof downlinkCommands.TurnRelayOff | typeof downlinkCommands.TurnRelayOn>;
|
|
6
|
+
export declare const responseById: Map<number, typeof uplinkCommands.ActivateRatePlanResponse | typeof uplinkCommands.ErrorResponse | typeof uplinkCommands.GetDateTimeResponse | typeof uplinkCommands.GetDayProfileResponse | typeof uplinkCommands.GetDeviceIdResponse | typeof uplinkCommands.GetDeviceTypeResponse | typeof uplinkCommands.GetDisplayParamResponse | typeof uplinkCommands.GetOpParamsResponse | typeof uplinkCommands.GetRatePlanInfoResponse | typeof uplinkCommands.GetSeasonProfileResponse | typeof uplinkCommands.GetSpecialDayResponse | typeof uplinkCommands.PrepareRatePlanResponse | typeof uplinkCommands.RunTariffPlanResponse | typeof uplinkCommands.SetAccessKeyResponse | typeof uplinkCommands.SetCorrectDateTimeResponse | typeof uplinkCommands.SetDateTimeResponse | typeof uplinkCommands.SetDayProfileResponse | typeof uplinkCommands.SetDisplayParamResponse | typeof uplinkCommands.SetOpParamsResponse | typeof uplinkCommands.SetSeasonProfileResponse | typeof uplinkCommands.SetSpecialDayResponse | typeof uplinkCommands.TurnRelayOffResponse | typeof uplinkCommands.TurnRelayOnResponse>;
|
|
@@ -2,11 +2,12 @@ import * as downlinkCommands from '../commands/downlink/index.js';
|
|
|
2
2
|
import * as uplinkCommands from '../commands/uplink/index.js';
|
|
3
3
|
export const requestByResponse = new Map();
|
|
4
4
|
export const responseByRequest = new Map();
|
|
5
|
-
export const requestById = new Map();
|
|
6
|
-
export const responseById = new Map();
|
|
5
|
+
export const requestById = new Map(Object.values(downlinkCommands).map(command => [command.id, command]));
|
|
6
|
+
export const responseById = new Map(Object.values(uplinkCommands).map(command => [command.id, command]));
|
|
7
7
|
requestByResponse.set(uplinkCommands.ActivateRatePlanResponse, downlinkCommands.ActivateRatePlan);
|
|
8
8
|
requestByResponse.set(uplinkCommands.GetDateTimeResponse, downlinkCommands.GetDateTime);
|
|
9
9
|
requestByResponse.set(uplinkCommands.GetDeviceIdResponse, downlinkCommands.GetDeviceId);
|
|
10
|
+
requestByResponse.set(uplinkCommands.GetDeviceTypeResponse, downlinkCommands.GetDeviceType);
|
|
10
11
|
requestByResponse.set(uplinkCommands.GetDisplayParamResponse, downlinkCommands.GetDisplayParam);
|
|
11
12
|
requestByResponse.set(uplinkCommands.GetOpParamsResponse, downlinkCommands.GetOpParams);
|
|
12
13
|
requestByResponse.set(uplinkCommands.GetRatePlanInfoResponse, downlinkCommands.GetRatePlanInfo);
|
|
@@ -21,7 +22,5 @@ requestByResponse.set(uplinkCommands.TurnRelayOffResponse, downlinkCommands.Turn
|
|
|
21
22
|
requestByResponse.set(uplinkCommands.TurnRelayOnResponse, downlinkCommands.TurnRelayOn);
|
|
22
23
|
for (const [response, request] of requestByResponse.entries()) {
|
|
23
24
|
responseByRequest.set(request, response);
|
|
24
|
-
responseById.set(response.id, response);
|
|
25
|
-
requestById.set(request.id, request);
|
|
26
25
|
}
|
|
27
26
|
//# sourceMappingURL=commandRelations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandRelations.js","sourceRoot":"","sources":["../../../src/mtx/constants/commandRelations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM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AO,CAAC,IAAI,iBAAiB,CAAC,OAAO,EAAE,EAAG;IAE7D,iBAAiB,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;CAC5C"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export { default as resultNames } from './resultNames.js';
|
|
2
2
|
export { default as screenNames } from './screenNames.js';
|
|
3
3
|
export * as accessLevels from './accessLevels.js';
|
|
4
|
-
export * as directions from './directions.js';
|
|
5
|
-
export * as frameAttributes from './frameAttributes.js';
|
|
6
4
|
export * as frameTypes from './frameTypes.js';
|
|
7
5
|
export * as resultCodes from './resultCodes.js';
|
|
8
6
|
export * as screenIds from './screenIds.js';
|
|
9
7
|
export * as screenSets from './screenSets.js';
|
|
8
|
+
export * from '../../constants/index.js';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export { default as resultNames } from './resultNames.js';
|
|
2
2
|
export { default as screenNames } from './screenNames.js';
|
|
3
3
|
export * as accessLevels from './accessLevels.js';
|
|
4
|
-
export * as directions from './directions.js';
|
|
5
|
-
export * as frameAttributes from './frameAttributes.js';
|
|
6
4
|
export * as frameTypes from './frameTypes.js';
|
|
7
5
|
export * as resultCodes from './resultCodes.js';
|
|
8
6
|
export * as screenIds from './screenIds.js';
|
|
9
7
|
export * as screenSets from './screenSets.js';
|
|
8
|
+
export * from '../../constants/index.js';
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mtx/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mtx/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meterTypes.js","sourceRoot":"","sources":["../../../src/mtx/constants/meterTypes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;AAC5B,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -17,10 +17,10 @@ export const BAD_SALDO_WRITE = 0x95;
|
|
|
17
17
|
export const BLOCKED_METER = 0x97;
|
|
18
18
|
export const UNENCRYPTED_COMMAND_DISABLED = 0x98;
|
|
19
19
|
export const TIME_CORRECTION_FAILURE = 0x99;
|
|
20
|
-
export const INVALID_CORRECTION_INTERVAL =
|
|
21
|
-
export const TIME_CORRECTION_OUT_HALF_HOUR_DISABLED =
|
|
22
|
-
export const BAD_BLOCK_NUMBER =
|
|
23
|
-
export const OUT_OFF_RANGE =
|
|
24
|
-
export const SET_METER_TYPE_FAILURE =
|
|
20
|
+
export const INVALID_CORRECTION_INTERVAL = 0x9a;
|
|
21
|
+
export const TIME_CORRECTION_OUT_HALF_HOUR_DISABLED = 0x9b;
|
|
22
|
+
export const BAD_BLOCK_NUMBER = 0x9c;
|
|
23
|
+
export const OUT_OFF_RANGE = 0x9f;
|
|
24
|
+
export const SET_METER_TYPE_FAILURE = 0xa0;
|
|
25
25
|
export const INTERNAL = 0xf0;
|
|
26
26
|
//# sourceMappingURL=resultCodes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resultCodes.js","sourceRoot":"","sources":["../../../src/mtx/constants/resultCodes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"resultCodes.js","sourceRoot":"","sources":["../../../src/mtx/constants/resultCodes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;AAChC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAC3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AACzC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAC5C,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAChD,MAAM,CAAC,MAAM,sCAAsC,GAAG,IAAI,CAAC;AAC3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AACrC,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAC3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC"}
|
package/dist/mtx/message.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import Command from './Command.js';
|
|
2
|
-
import * as downlinkCommands from './commands/downlink/index.js';
|
|
3
|
-
import * as uplinkCommands from './commands/uplink/index.js';
|
|
4
2
|
import { IHexFormatOptions } from '../config.js';
|
|
5
3
|
interface IMessageCommand {
|
|
6
4
|
data: {
|
|
@@ -33,12 +31,6 @@ interface IMessage extends IToBytesOptions {
|
|
|
33
31
|
interface IFrame extends IMessage, IToFrameOptions {
|
|
34
32
|
crc: Uint8Array;
|
|
35
33
|
}
|
|
36
|
-
export declare const downlinkCommandsById: {
|
|
37
|
-
[k: string]: typeof downlinkCommands.ActivateRatePlan | typeof downlinkCommands.GetDateTime | typeof downlinkCommands.GetDeviceId | typeof downlinkCommands.GetDisplayParam | typeof downlinkCommands.GetOpParams | typeof downlinkCommands.GetRatePlanInfo | typeof downlinkCommands.PrepareRatePlan | typeof downlinkCommands.RunTariffPlan | typeof downlinkCommands.SetDayProfile | typeof downlinkCommands.SetDisplayParam | typeof downlinkCommands.SetOpParams | typeof downlinkCommands.SetSeasonProfile | typeof downlinkCommands.SetSpecialDay | typeof downlinkCommands.TurnRelayOff | typeof downlinkCommands.TurnRelayOn;
|
|
38
|
-
};
|
|
39
|
-
export declare const uplinkCommandsById: {
|
|
40
|
-
[k: string]: typeof uplinkCommands.ActivateRatePlanResponse | typeof uplinkCommands.ErrorResponse | typeof uplinkCommands.GetDateTimeResponse | typeof uplinkCommands.GetDeviceIdResponse | typeof uplinkCommands.GetDisplayParamResponse | typeof uplinkCommands.GetOpParamsResponse | typeof uplinkCommands.GetRatePlanInfoResponse | typeof uplinkCommands.PrepareRatePlanResponse | typeof uplinkCommands.RunTariffPlanResponse | typeof uplinkCommands.SetDayProfileResponse | typeof uplinkCommands.SetDisplayParamResponse | typeof uplinkCommands.SetOpParamsResponse | typeof uplinkCommands.SetSeasonProfileResponse | typeof uplinkCommands.SetSpecialDayResponse | typeof uplinkCommands.TurnRelayOffResponse | typeof uplinkCommands.TurnRelayOnResponse;
|
|
41
|
-
};
|
|
42
34
|
export declare const fromBytes: (message: Uint8Array, config?: IFromBytesOptions) => IMessage;
|
|
43
35
|
export declare const fromFrame: (frame: Uint8Array, { aesKey }: IFromFrameOptions) => IFrame;
|
|
44
36
|
export declare const fromHex: (data: string, config?: IFromBytesOptions) => IMessage;
|
package/dist/mtx/message.js
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import UnknownCommand from './UnknownCommand.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { requestById, responseById } from './constants/commandRelations.js';
|
|
3
|
+
import calculateLrc from '../utils/calculateLrc.js';
|
|
4
4
|
import getBytesFromHex from '../utils/getBytesFromHex.js';
|
|
5
5
|
import getBytesFromBase64 from '../utils/getBytesFromBase64.js';
|
|
6
6
|
import getHexFromBytes from '../utils/getHexFromBytes.js';
|
|
7
7
|
import getBase64FromBytes from '../utils/getBase64FromBytes.js';
|
|
8
8
|
import mergeUint8Arrays from '../utils/mergeUint8Arrays.js';
|
|
9
|
-
import { aes, arrayStuff, arrayUnstuff, calculateCrcBytes
|
|
9
|
+
import { aes, arrayStuff, arrayUnstuff, calculateCrcBytes } from './utils/crypto.js';
|
|
10
10
|
import { READ_ONLY, MASK } from './constants/accessLevels.js';
|
|
11
11
|
import * as accessLevels from './constants/accessLevels.js';
|
|
12
|
-
import * as directionTypes from '
|
|
13
|
-
import { AUTO, DOWNLINK, UPLINK } from '
|
|
14
|
-
import { START_BYTE, STOP_BYTE } from '
|
|
12
|
+
import * as directionTypes from '../constants/directions.js';
|
|
13
|
+
import { AUTO, DOWNLINK, UPLINK } from '../constants/directions.js';
|
|
14
|
+
import { START_BYTE, STOP_BYTE } from '../constants/frameAttributes.js';
|
|
15
15
|
import * as frameTypes from './constants/frameTypes.js';
|
|
16
16
|
const MESSAGE_HEADER_SIZE = 2;
|
|
17
17
|
const COMMAND_HEADER_SIZE = 2;
|
|
18
18
|
const BLOCK_SIZE = 16;
|
|
19
19
|
const COMMANDS_END_MARK = new Uint8Array([0]);
|
|
20
20
|
const directionTypeIds = new Set(Object.values(directionTypes));
|
|
21
|
-
export const downlinkCommandsById = Object.fromEntries(Object.values(downlinkCommands).map(item => [item.id, item]));
|
|
22
|
-
export const uplinkCommandsById = Object.fromEntries(Object.values(uplinkCommands).map(item => [item.id, item]));
|
|
23
21
|
const getCommand = (id, size, data, direction = AUTO) => {
|
|
24
22
|
if (!directionTypeIds.has(direction)) {
|
|
25
23
|
throw new Error('wrong direction type');
|
|
26
24
|
}
|
|
27
|
-
const downlinkCommand =
|
|
28
|
-
const uplinkCommand =
|
|
25
|
+
const downlinkCommand = requestById.get(id);
|
|
26
|
+
const uplinkCommand = responseById.get(id);
|
|
29
27
|
if ((!downlinkCommand && !uplinkCommand)
|
|
30
28
|
|| (direction === DOWNLINK && !downlinkCommand)
|
|
31
29
|
|| (direction === UPLINK && !uplinkCommand)) {
|
package/dist/mtx/message.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/mtx/message.ts"],"names":[],"mappings":"AAGA,OAA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B,EAAE,cAA+B,EAAE,aAAgC,EAAE,EAAW,EAAE;IAC7H,OAAO,eAAe,CAAC,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAE,QAAwB,EAAE,cAA+B,EAAW,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC"}
|
|
@@ -2,8 +2,6 @@ export declare const aes: {
|
|
|
2
2
|
encrypt: (key: Uint8Array, value: Uint8Array) => Uint8Array;
|
|
3
3
|
decrypt: (key: Uint8Array, value: Uint8Array) => Uint8Array;
|
|
4
4
|
};
|
|
5
|
-
export declare const calculateLrc: (data: Uint8Array, initialLrc?: number) => number;
|
|
6
|
-
export declare const calculateCrc: (value: Uint8Array) => number;
|
|
7
5
|
export declare const calculateCrcBytes: (value: Uint8Array) => Uint8Array;
|
|
8
6
|
export declare const STUFFING_BYTE = 125;
|
|
9
7
|
export declare const arrayStuff: (data: Array<number>) => Array<number>;
|
package/dist/mtx/utils/crypto.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import crypto from 'crypto-js';
|
|
2
|
+
import calculateCrc16 from '../../utils/calculateCrc16.js';
|
|
2
3
|
import getBase64FromBytes from '../../utils/getBase64FromBytes.js';
|
|
3
4
|
const convertWordArrayToUint8Array = ({ words }) => {
|
|
4
5
|
const uint32Array = new Uint32Array(words.length);
|
|
@@ -30,24 +31,8 @@ export const aes = {
|
|
|
30
31
|
},
|
|
31
32
|
decrypt: (key, value) => (convertWordArrayToUint8Array(crypto.AES.decrypt(getBase64FromBytes(value), convertUint8ArrayToWordArray(key), aesConfig)))
|
|
32
33
|
};
|
|
33
|
-
export const calculateLrc = (data, initialLrc = 0x55) => {
|
|
34
|
-
let lrc = initialLrc;
|
|
35
|
-
data.forEach(item => {
|
|
36
|
-
lrc ^= item;
|
|
37
|
-
});
|
|
38
|
-
return lrc;
|
|
39
|
-
};
|
|
40
|
-
export const calculateCrc = (value) => {
|
|
41
|
-
let crc = 0xFFFF;
|
|
42
|
-
for (let index = 0; index < value.length; index++) {
|
|
43
|
-
let data = value[index] ^ (crc & 0xFF);
|
|
44
|
-
data ^= (data << 4) & 0xFF;
|
|
45
|
-
crc = (data << 3) ^ (data << 8) ^ (crc >> 8) ^ (data >> 4);
|
|
46
|
-
}
|
|
47
|
-
return ((crc & 0xFF00) ^ 0xFF00) | ((crc & 0xFF) ^ 0xFF);
|
|
48
|
-
};
|
|
49
34
|
export const calculateCrcBytes = (value) => {
|
|
50
|
-
const number =
|
|
35
|
+
const number = calculateCrc16(value);
|
|
51
36
|
const buffer = new ArrayBuffer(2);
|
|
52
37
|
const view = new DataView(buffer);
|
|
53
38
|
view.setUint16(0, number, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../../../src/mtx/utils/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AAGnE,MAAM,4BAA4B,GAAG,CAAE,EAAC,KAAK,EAAuB,EAAG,EAAE;IACrE,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClD,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAE3B,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;cACrC,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;cACvB,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC;cACvB,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,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,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,mBAAmB,GAAG,KAAK,CAAC;IAEhC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAChB,IAAK,IAAI,KAAK,aAAa,EAAG;YAC1B,mBAAmB,GAAG,IAAI,CAAC;SAC9B;aAAM,IAAK,mBAAmB,EAAG;YAC9B,mBAAmB,GAAG,KAAK,CAAC;YAC5B,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;SAC1C;aAAM;YACH,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;SAC7B;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x0f;
|
|
5
5
|
const COMMAND_SIZE = REQUEST_ID_SIZE + 2;
|
|
6
6
|
const examples = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetArchiveState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetArchiveState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetArchiveState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,k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EACV,IAAI,UAAU,CAAC,OAAO,CAAC,CAC1B,CAAC;IACN,CAAC;;AA5Be,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x20;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetLorawanInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAG1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC3C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,QAAQ,CAAC;AAEzB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x22;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetLorawanState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetLorawanState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAG1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,eAAgB,SAAQ,OAAO;IACjC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,eAAe,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC5C,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,kBAAE,GAAG,UAAU,CAAC;AAEhB,6BAAa,GAAG,QAAQ,CAAC;AAEzB,wBAAQ,GAAG,QAAQ,CAAC;AAEpB,6BAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x7a;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterDate.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterDate.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterDate.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterDate.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,YAAa,SAAQ,OAAO;IAC9B,YAAqB,UAAmC;QACpD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAyB;QAGpD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,YAAY,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x76;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterId.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterId.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterId.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterId.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,QAAQ;SACpB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAC;KAC1D;CACJ,CAAC;AAuBF,MAAM,UAAW,SAAQ,OAAO;IAC5B,YAAqB,UAAiC;QAClD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAuB;QAGlD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;IAChE,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,UAAU,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE;SAC9B,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAC5D,MAAM,EAAC,SAAS,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7C,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA5Be,aAAE,GAAG,UAAU,CAAC;AAEhB,wBAAa,GAAG,QAAQ,CAAC;AAEzB,mBAAQ,GAAG,QAAQ,CAAC;AAEpB,wBAAa,GAAG,IAAI,CAAC;AA0BzC,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x74;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;SACX;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAAqC;QACtD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2B;QAGtD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,KAAK,CAAa;QAC7C,OAAO,IAAI,cAAc,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACN,CAAC;;AAtBe,iBAAE,GAAG,UAAU,CAAC;AAEhB,4BAAa,GAAG,QAAQ,CAAC;AAEzB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x78;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,YAAa,SAAQ,OAAO;IAC9B,YAAqB,UAAmC;QACpD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAyB;QAGpD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,YAAY,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAClD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x66;
|
|
5
5
|
const COMMAND_SIZE = REQUEST_ID_SIZE + 1;
|
|
6
6
|
const examples = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfile.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterProfile.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfile.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E } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x64;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterProfileIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfileIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterProfileIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterProfileIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,2BAA2B;QACjC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC;SACX;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC,YAAqB,UAA4C;QAC7D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAkC;QAG7D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,KAAK,CAAa;QAC7C,OAAO,IAAI,qBAAqB,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC,CAAC;IACzD,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACN,CAAC;;AAtBe,wBAAE,GAAG,UAAU,CAAC;AAEhB,mCAAa,GAAG,QAAQ,CAAC;AAEzB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x81;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetMeterReadoutState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterReadoutState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetMeterReadoutState.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetMeterReadoutState.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAW1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC;KACxC;CACJ,CAAC;AAuBF,MAAM,oBAAqB,SAAQ,OAAO;IACtC,YAAqB,UAA2C;QAC5D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAiC;QAG5D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,CAAa;QAC/C,OAAO,IAAI,oBAAoB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAC,CAAC,CAAC;IAC1D,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7D,CAAC;IACN,CAAC;;AAtBe,uBAAE,GAAG,UAAU,CAAC;AAEhB,kCAAa,GAAG,QAAQ,CAAC;AAEzB,6BAAQ,GAAG,QAAQ,CAAC;AAEpB,kCAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer, { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x4e;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisContent.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisContent.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetObisContent.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisContent.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,EAAE,EAAC,eAAe,EAA4B,MAAM,8BAA8B,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAY1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,0DAA0D;QAChE,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;YACV,IAAI,EAAE;gBACF,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAC;KACpD;CACJ,CAAC;AA4BF,MAAM,gBAAiB,SAAQ,OAAO;IAClC,YAAqB,UAAuC;QACxD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA6B;QAGxD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACvF,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,gBAAgB,CAAC;YACxB,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC1B,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;QAE5D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAErB,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;;AA9Be,mBAAE,GAAG,UAAU,CAAC;AAEhB,8BAAa,GAAG,QAAQ,CAAC;AAEzB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,IAAI,CAAC;AA4BzC,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x50;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisContentById.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisContentById.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetObisContentById.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisContentById.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAY1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE;YACR,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,EAAE;SACb;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAAyC;QAC1D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+B;QAI1D,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAWD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAa;QACvD,OAAO,IAAI,kBAAkB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAChE,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAChF,CAAC;IACN,CAAC;;AArBe,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,QAAQ,CAAC;AAEzB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAmBzC,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x40;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetObisIdList.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisIdList.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAqB,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAY1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;YACZ,cAAc,EAAE,CAAC;YACjB,KAAK,EAAE,CAAC;SACX;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAC;KAC3C;CACJ,CAAC;AAwBF,MAAM,aAAc,SAAQ,OAAO;IAC/B,YAAqB,UAAoC;QACrD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA0B;QAGrD,IAAI,CAAC,IAAI,GAAG,eAAe,GAAG,CAAC,CAAC;IACpC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAa;QAC7D,OAAO,IAAI,aAAa,CAAC,EAAC,SAAS,EAAE,cAAc,EAAE,KAAK,EAAC,CAAC,CAAC;IACjE,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,UAAU,EAAC,GAAG,IAAI,CAAC;QAE1B,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CACtF,CAAC;IACN,CAAC;;AAtBe,gBAAE,GAAG,UAAU,CAAC;AAEhB,2BAAa,GAAG,QAAQ,CAAC;AAEzB,sBAAQ,GAAG,QAAQ,CAAC;AAEpB,2BAAa,GAAG,IAAI,CAAC;AAoBzC,eAAe,aAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x46;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetObisInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetObisInfo.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObisInfo.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,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-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x03;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetObserverCapabilities.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"GetObserverCapabilities.js","sourceRoot":"","sources":["../../../../src/obis-observer/commands/downlink/GetObserverCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAqB,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAG1D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR,SAAS,EAAE,CAAC;SACf;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAC;KACrC;CACJ,CAAC;AAsBF,MAAM,uBAAwB,SAAQ,OAAO;IACzC,YAAqB,UAA8B;QAC/C,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAoB;QAG/C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,CAAC,SAAS,CAAa;QACtC,OAAO,IAAI,uBAAuB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IACpD,CAAC;IAGD,OAAO;QACH,OAAO,OAAO,CAAC,OAAO,CAClB,UAAU,EACV,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAC9C,CAAC;IACN,CAAC;;AApBe,0BAAE,GAAG,UAAU,CAAC;AAEhB,qCAAa,GAAG,QAAQ,CAAC;AAEzB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,IAAI,CAAC;AAkBzC,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import { REQUEST_ID_SIZE } from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import { DOWNLINK } from '
|
|
3
|
+
import { DOWNLINK } from '../../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x01;
|
|
5
5
|
const examples = [
|
|
6
6
|
{
|