jooby-codec 2.15.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mtx/CommandBinaryBuffer.d.ts +27 -0
- package/dist/mtx/CommandBinaryBuffer.js +55 -0
- package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx/commands/downlink/GetDeviceId.d.ts +12 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js +30 -0
- package/dist/mtx/commands/downlink/GetDeviceId.js.map +1 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.d.ts +17 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js +46 -0
- package/dist/mtx/commands/downlink/PrepareRatePlan.js.map +1 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.d.ts +16 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js +38 -0
- package/dist/mtx/commands/downlink/RunTariffPlan.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.d.ts +19 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js +91 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js +62 -0
- package/dist/mtx/commands/downlink/SetSeasonProfile.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.d.ts +18 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js +52 -0
- package/dist/mtx/commands/downlink/SetSpecialDay.js.map +1 -0
- package/dist/mtx/commands/downlink/index.d.ts +6 -0
- package/dist/mtx/commands/downlink/index.js +6 -0
- package/dist/mtx/commands/downlink/index.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.d.ts +16 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js +43 -0
- package/dist/mtx/commands/uplink/GetDeviceIdResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/PrepareRatePlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js +30 -0
- package/dist/mtx/commands/uplink/RunTariffPlanResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetDayProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSeasonProfileResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.d.ts +12 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js +30 -0
- package/dist/mtx/commands/uplink/SetSpecialDayResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/index.d.ts +6 -0
- package/dist/mtx/commands/uplink/index.js +6 -0
- package/dist/mtx/commands/uplink/index.js.map +1 -1
- package/dist/mtx/message.d.ts +2 -2
- package/dist/obis-observer/Command.js +1 -1
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +9 -9
- package/dist/obis-observer/CommandBinaryBuffer.js +20 -20
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetArchiveState.d.ts +4 -3
- package/dist/obis-observer/commands/downlink/GetArchiveState.js +23 -16
- package/dist/obis-observer/commands/downlink/GetArchiveState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanInfo.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetLorawanState.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/GetLorawanState.js +6 -13
- package/dist/obis-observer/commands/downlink/GetLorawanState.js.map +1 -1
- package/dist/obis-observer/commands/downlink/GetMeterDate.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js +41 -0
- package/dist/obis-observer/commands/downlink/GetMeterId.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterProfileIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js +34 -0
- package/dist/obis-observer/commands/downlink/GetMeterReadoutState.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetContentByObis.d.ts → GetObisContent.d.ts} +2 -1
- package/dist/obis-observer/commands/downlink/{GetContentByObis.js → GetObisContent.js} +9 -9
- package/dist/obis-observer/commands/downlink/GetObisContent.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisContentById.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisIdList.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js +35 -0
- package/dist/obis-observer/commands/downlink/GetObisInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetReadoutState.d.ts → GetObserverCapabilities.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverCapabilities.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDate.d.ts → GetObserverInfo.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetArchiveProfile.d.ts → GetObserverSingleMode.d.ts} +3 -3
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/{GetDeviceInfo.d.ts → GetObserverUptime.d.ts} +4 -4
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js +32 -0
- package/dist/obis-observer/commands/downlink/GetObserverUptime.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js +48 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.d.ts +20 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js +51 -0
- package/dist/obis-observer/commands/downlink/ReadMeterArchiveWithDate.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/Reboot.js +6 -12
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -1
- package/dist/obis-observer/commands/downlink/RemoveMeter.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js +35 -0
- package/dist/obis-observer/commands/downlink/RemoveMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveObis.d.ts +17 -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/SetLorawanActivationMethod.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js +35 -0
- package/dist/obis-observer/commands/downlink/SetLorawanActivationMethod.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js +35 -0
- package/dist/obis-observer/commands/downlink/SetObserverSingleMode.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +3 -3
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js +82 -0
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js +48 -0
- package/dist/obis-observer/commands/downlink/SetupMeterProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetupObis.d.ts +19 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js +85 -0
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateImageVerify.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.d.ts +1 -1
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js +4 -9
- package/dist/obis-observer/commands/downlink/UpdateImageWrite.js.map +1 -1
- package/dist/obis-observer/commands/downlink/UpdateRun.d.ts +2 -2
- package/dist/obis-observer/commands/downlink/UpdateRun.js +6 -12
- package/dist/obis-observer/commands/downlink/UpdateRun.js.map +1 -1
- package/dist/obis-observer/commands/downlink/index.d.ts +25 -14
- package/dist/obis-observer/commands/downlink/index.js +25 -14
- package/dist/obis-observer/commands/downlink/index.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ErrorResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js +36 -0
- package/dist/obis-observer/commands/uplink/ErrorResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js +36 -14
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js +3 -6
- package/dist/obis-observer/commands/uplink/GetLorawanInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.d.ts +1 -1
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js +23 -26
- package/dist/obis-observer/commands/uplink/GetLorawanStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/{GetDateResponse.d.ts → GetMeterDateResponse.d.ts} +7 -8
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js +38 -0
- package/dist/obis-observer/commands/uplink/GetMeterDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js +35 -0
- package/dist/obis-observer/commands/uplink/GetMeterIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js +83 -0
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetReadoutStateResponse.d.ts → GetMeterReadoutStateResponse.d.ts} +7 -7
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js +104 -0
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/{GetContentByShortNameStringResponse.js → GetObisContentByIdStringResponse.js} +12 -17
- package/dist/obis-observer/commands/uplink/GetObisContentByIdStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.d.ts → GetObisContentResponse.d.ts} +1 -1
- package/dist/obis-observer/commands/uplink/{GetContentByObisResponse.js → GetObisContentResponse.js} +5 -10
- package/dist/obis-observer/commands/uplink/GetObisContentResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js +54 -0
- package/dist/obis-observer/commands/uplink/GetObisIdListResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js +92 -0
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js +53 -0
- package/dist/obis-observer/commands/uplink/GetObserverCapabilitiesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.d.ts +19 -0
- package/dist/obis-observer/commands/uplink/{GetDeviceInfoResponse.js → GetObserverInfoResponse.js} +20 -19
- package/dist/obis-observer/commands/uplink/GetObserverInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/GetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js +41 -0
- package/dist/obis-observer/commands/uplink/GetObserverUptimeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReport.js +16 -19
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +4 -3
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +17 -20
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.d.ts +22 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js +102 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js +69 -0
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +2 -2
- package/dist/obis-observer/commands/uplink/RebootResponse.js +8 -11
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/RemoveObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetLorawanActivationMethodResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetObserverSingleModeResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +8 -26
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupMeterResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js +33 -0
- package/dist/obis-observer/commands/uplink/SetupObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.d.ts +3 -3
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js +10 -18
- package/dist/obis-observer/commands/uplink/UpdateImageVerifyResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateImageWriteResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.d.ts +4 -7
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js +9 -19
- package/dist/obis-observer/commands/uplink/UpdateRunResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/index.d.ts +27 -15
- package/dist/obis-observer/commands/uplink/index.js +27 -15
- package/dist/obis-observer/commands/uplink/index.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js +29 -12
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/constants/index.d.ts +1 -1
- package/dist/obis-observer/constants/index.js +1 -1
- package/dist/obis-observer/constants/index.js.map +1 -1
- package/dist/obis-observer/constants/{shortNames.d.ts → obisIds.d.ts} +4 -4
- package/dist/obis-observer/constants/obisIds.js +228 -0
- package/dist/obis-observer/constants/obisIds.js.map +1 -0
- package/dist/obis-observer/constants/resultCodes.d.ts +12 -4
- package/dist/obis-observer/constants/resultCodes.js +12 -4
- package/dist/obis-observer/constants/resultCodes.js.map +1 -1
- package/dist/obis-observer/constants/resultDescriptions.d.ts +16 -0
- package/dist/obis-observer/constants/resultDescriptions.js +17 -0
- package/dist/obis-observer/constants/resultDescriptions.js.map +1 -0
- package/dist/obis-observer/message.d.ts +2 -2
- package/dist/obis-observer/message.js +4 -12
- package/dist/obis-observer/message.js.map +1 -1
- package/package.json +1 -1
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +0 -56
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +0 -39
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +0 -44
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDate.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDate.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js +0 -39
- package/dist/obis-observer/commands/downlink/GetDeviceInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetReadoutState.js +0 -39
- package/dist/obis-observer/commands/downlink/GetReadoutState.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +0 -44
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/GetShortNames.js +0 -48
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +0 -1
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +0 -18
- package/dist/obis-observer/commands/downlink/ReadArchive.js +0 -57
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +0 -1
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +0 -16
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +0 -42
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +0 -45
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +0 -1
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +0 -17
- package/dist/obis-observer/commands/downlink/SetShortName.js +0 -51
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +0 -1
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +0 -44
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDateResponse.js +0 -47
- package/dist/obis-observer/commands/uplink/GetDateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/GetDeviceInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js +0 -77
- package/dist/obis-observer/commands/uplink/GetReadoutStateResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +0 -17
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +0 -81
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +0 -55
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +0 -45
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +0 -18
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +0 -61
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +0 -51
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +0 -1
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +0 -16
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +0 -43
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +0 -1
- package/dist/obis-observer/constants/shortNames.js +0 -228
- package/dist/obis-observer/constants/shortNames.js.map +0 -1
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export { default as ActivateRatePlan } from './ActivateRatePlan.js';
|
|
2
2
|
export { default as GetDateTime } from './GetDateTime.js';
|
|
3
|
+
export { default as GetDeviceId } from './GetDeviceId.js';
|
|
3
4
|
export { default as GetDisplayParam } from './GetDisplayParam.js';
|
|
4
5
|
export { default as GetOpParams } from './GetOpParams.js';
|
|
5
6
|
export { default as GetRatePlanInfo } from './GetRatePlanInfo.js';
|
|
7
|
+
export { default as PrepareRatePlan } from './PrepareRatePlan.js';
|
|
8
|
+
export { default as RunTariffPlan } from './RunTariffPlan.js';
|
|
9
|
+
export { default as SetDayProfile } from './SetDayProfile.js';
|
|
6
10
|
export { default as SetDisplayParam } from './SetDisplayParam.js';
|
|
7
11
|
export { default as SetOpParams } from './SetOpParams.js';
|
|
12
|
+
export { default as SetSeasonProfile } from './SetSeasonProfile.js';
|
|
13
|
+
export { default as SetSpecialDay } from './SetSpecialDay.js';
|
|
8
14
|
export { default as TurnRelayOff } from './TurnRelayOff.js';
|
|
9
15
|
export { default as TurnRelayOn } from './TurnRelayOn.js';
|
|
10
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mtx/commands/downlink/index.ts"],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C;AAC5D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
interface IGetDeviceIdResponseParameters {
|
|
3
|
+
id: Array<number>;
|
|
4
|
+
}
|
|
5
|
+
declare class GetDeviceIdResponse extends Command {
|
|
6
|
+
parameters: IGetDeviceIdResponseParameters;
|
|
7
|
+
constructor(parameters: IGetDeviceIdResponseParameters);
|
|
8
|
+
static readonly id = 5;
|
|
9
|
+
static readonly directionType = 2;
|
|
10
|
+
static readonly examples: TCommandExampleList;
|
|
11
|
+
static readonly hasParameters = true;
|
|
12
|
+
static readonly accessLevel = 3;
|
|
13
|
+
static fromBytes(data: Uint8Array): GetDeviceIdResponse;
|
|
14
|
+
toBytes(): Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
export default GetDeviceIdResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { READ_ONLY } from '../../constants/accessLevels.js';
|
|
3
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x05;
|
|
5
|
+
const COMMAND_SIZE = 8;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'mode with order',
|
|
9
|
+
parameters: {
|
|
10
|
+
id: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '05 08', body: '01 02 03 04 05 06 07 08' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetDeviceIdResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = COMMAND_SIZE;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
if (data?.length !== COMMAND_SIZE) {
|
|
23
|
+
throw new Error('Invalid GetDeviceIdResponse data size.');
|
|
24
|
+
}
|
|
25
|
+
const [...id] = data;
|
|
26
|
+
return new GetDeviceIdResponse({ id });
|
|
27
|
+
}
|
|
28
|
+
toBytes() {
|
|
29
|
+
const { size, parameters } = this;
|
|
30
|
+
return new Uint8Array([
|
|
31
|
+
COMMAND_ID,
|
|
32
|
+
size,
|
|
33
|
+
...parameters.id
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
GetDeviceIdResponse.id = COMMAND_ID;
|
|
38
|
+
GetDeviceIdResponse.directionType = UPLINK;
|
|
39
|
+
GetDeviceIdResponse.examples = examples;
|
|
40
|
+
GetDeviceIdResponse.hasParameters = true;
|
|
41
|
+
GetDeviceIdResponse.accessLevel = READ_ONLY;
|
|
42
|
+
export default GetDeviceIdResponse;
|
|
43
|
+
//# sourceMappingURL=GetDeviceIdResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDeviceIdResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/GetDeviceIdResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAQrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAA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
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static fromBytes(): PrepareRatePlanResponse;
|
|
10
|
+
toBytes(): Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export default PrepareRatePlanResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x14;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '14 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class PrepareRatePlanResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new PrepareRatePlanResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
PrepareRatePlanResponse.id = COMMAND_ID;
|
|
25
|
+
PrepareRatePlanResponse.directionType = UPLINK;
|
|
26
|
+
PrepareRatePlanResponse.examples = examples;
|
|
27
|
+
PrepareRatePlanResponse.hasParameters = false;
|
|
28
|
+
PrepareRatePlanResponse.accessLevel = READ_WRITE;
|
|
29
|
+
export default PrepareRatePlanResponse;
|
|
30
|
+
//# sourceMappingURL=PrepareRatePlanResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrepareRatePlanResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/PrepareRatePlanResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,uBAAwB,SAAQ,OAAO;IACzC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAeD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,uBAAuB,EAAE,CAAC;IACzC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AAnBM,0BAAE,GAAG,UAAU,CAAC;AAEP,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,KAAK,CAAC;AAEtB,mCAAW,GAAG,UAAU,CAAC;AAe7C,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class RunTariffPlanResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static fromBytes(): RunTariffPlanResponse;
|
|
10
|
+
toBytes(): Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export default RunTariffPlanResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x06;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '06 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class RunTariffPlanResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new RunTariffPlanResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
RunTariffPlanResponse.id = COMMAND_ID;
|
|
25
|
+
RunTariffPlanResponse.directionType = UPLINK;
|
|
26
|
+
RunTariffPlanResponse.examples = examples;
|
|
27
|
+
RunTariffPlanResponse.hasParameters = false;
|
|
28
|
+
RunTariffPlanResponse.accessLevel = READ_WRITE;
|
|
29
|
+
export default RunTariffPlanResponse;
|
|
30
|
+
//# sourceMappingURL=RunTariffPlanResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunTariffPlanResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/RunTariffPlanResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAeD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,qBAAqB,EAAE,CAAC;IACvC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AAnBM,wBAAE,GAAG,UAAU,CAAC;AAEP,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,KAAK,CAAC;AAEtB,iCAAW,GAAG,UAAU,CAAC;AAe7C,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetDayProfileResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static fromBytes(): SetDayProfileResponse;
|
|
10
|
+
toBytes(): Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export default SetDayProfileResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x10;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '10 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetDayProfileResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetDayProfileResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetDayProfileResponse.id = COMMAND_ID;
|
|
25
|
+
SetDayProfileResponse.directionType = UPLINK;
|
|
26
|
+
SetDayProfileResponse.examples = examples;
|
|
27
|
+
SetDayProfileResponse.hasParameters = false;
|
|
28
|
+
SetDayProfileResponse.accessLevel = READ_WRITE;
|
|
29
|
+
export default SetDayProfileResponse;
|
|
30
|
+
//# sourceMappingURL=SetDayProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetDayProfileResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetDayProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAeD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,qBAAqB,EAAE,CAAC;IACvC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AAnBM,wBAAE,GAAG,UAAU,CAAC;AAEP,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,KAAK,CAAC;AAEtB,iCAAW,GAAG,UAAU,CAAC;AAe7C,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetSeasonProfileResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static fromBytes(): SetSeasonProfileResponse;
|
|
10
|
+
toBytes(): Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export default SetSeasonProfileResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x11;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '11 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetSeasonProfileResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetSeasonProfileResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetSeasonProfileResponse.id = COMMAND_ID;
|
|
25
|
+
SetSeasonProfileResponse.directionType = UPLINK;
|
|
26
|
+
SetSeasonProfileResponse.examples = examples;
|
|
27
|
+
SetSeasonProfileResponse.hasParameters = false;
|
|
28
|
+
SetSeasonProfileResponse.accessLevel = READ_WRITE;
|
|
29
|
+
export default SetSeasonProfileResponse;
|
|
30
|
+
//# sourceMappingURL=SetSeasonProfileResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSeasonProfileResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetSeasonProfileResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,wBAAyB,SAAQ,OAAO;IAC1C;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAeD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,wBAAwB,EAAE,CAAC;IAC1C,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AAnBM,2BAAE,GAAG,UAAU,CAAC;AAEP,sCAAa,GAAG,MAAM,CAAC;AAEvB,iCAAQ,GAAG,QAAQ,CAAC;AAEpB,sCAAa,GAAG,KAAK,CAAC;AAEtB,oCAAW,GAAG,UAAU,CAAC;AAe7C,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetSpecialDayResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static fromBytes(): SetSpecialDayResponse;
|
|
10
|
+
toBytes(): Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
export default SetSpecialDayResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x12;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '12 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetSpecialDayResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetSpecialDayResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetSpecialDayResponse.id = COMMAND_ID;
|
|
25
|
+
SetSpecialDayResponse.directionType = UPLINK;
|
|
26
|
+
SetSpecialDayResponse.examples = examples;
|
|
27
|
+
SetSpecialDayResponse.hasParameters = false;
|
|
28
|
+
SetSpecialDayResponse.accessLevel = READ_WRITE;
|
|
29
|
+
export default SetSpecialDayResponse;
|
|
30
|
+
//# sourceMappingURL=SetSpecialDayResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSpecialDayResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetSpecialDayResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,qBAAsB,SAAQ,OAAO;IACvC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAeD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,qBAAqB,EAAE,CAAC;IACvC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AAnBM,wBAAE,GAAG,UAAU,CAAC;AAEP,mCAAa,GAAG,MAAM,CAAC;AAEvB,8BAAQ,GAAG,QAAQ,CAAC;AAEpB,mCAAa,GAAG,KAAK,CAAC;AAEtB,iCAAW,GAAG,UAAU,CAAC;AAe7C,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export { default as ActivateRatePlanResponse } from './ActivateRatePlanResponse.js';
|
|
2
2
|
export { default as ErrorResponse } from './ErrorResponse.js';
|
|
3
3
|
export { default as GetDateTimeResponse } from './GetDateTimeResponse.js';
|
|
4
|
+
export { default as GetDeviceIdResponse } from './GetDeviceIdResponse.js';
|
|
4
5
|
export { default as GetDisplayParamResponse } from './GetDisplayParamResponse.js';
|
|
5
6
|
export { default as GetOpParamsResponse } from './GetOpParamsResponse.js';
|
|
6
7
|
export { default as GetRatePlanInfoResponse } from './GetRatePlanInfoResponse.js';
|
|
8
|
+
export { default as PrepareRatePlanResponse } from './PrepareRatePlanResponse.js';
|
|
9
|
+
export { default as RunTariffPlanResponse } from './RunTariffPlanResponse.js';
|
|
10
|
+
export { default as SetDayProfileResponse } from './SetDayProfileResponse.js';
|
|
7
11
|
export { default as SetDisplayParamResponse } from './SetDisplayParamResponse.js';
|
|
8
12
|
export { default as SetOpParamsResponse } from './SetOpParamsResponse.js';
|
|
13
|
+
export { default as SetSeasonProfileResponse } from './SetSeasonProfileResponse.js';
|
|
14
|
+
export { default as SetSpecialDayResponse } from './SetSpecialDayResponse.js';
|
|
9
15
|
export { default as TurnRelayOffResponse } from './TurnRelayOffResponse.js';
|
|
10
16
|
export { default as TurnRelayOnResponse } from './TurnRelayOnResponse.js';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
export { default as ActivateRatePlanResponse } from './ActivateRatePlanResponse.js';
|
|
2
2
|
export { default as ErrorResponse } from './ErrorResponse.js';
|
|
3
3
|
export { default as GetDateTimeResponse } from './GetDateTimeResponse.js';
|
|
4
|
+
export { default as GetDeviceIdResponse } from './GetDeviceIdResponse.js';
|
|
4
5
|
export { default as GetDisplayParamResponse } from './GetDisplayParamResponse.js';
|
|
5
6
|
export { default as GetOpParamsResponse } from './GetOpParamsResponse.js';
|
|
6
7
|
export { default as GetRatePlanInfoResponse } from './GetRatePlanInfoResponse.js';
|
|
8
|
+
export { default as PrepareRatePlanResponse } from './PrepareRatePlanResponse.js';
|
|
9
|
+
export { default as RunTariffPlanResponse } from './RunTariffPlanResponse.js';
|
|
10
|
+
export { default as SetDayProfileResponse } from './SetDayProfileResponse.js';
|
|
7
11
|
export { default as SetDisplayParamResponse } from './SetDisplayParamResponse.js';
|
|
8
12
|
export { default as SetOpParamsResponse } from './SetOpParamsResponse.js';
|
|
13
|
+
export { default as SetSeasonProfileResponse } from './SetSeasonProfileResponse.js';
|
|
14
|
+
export { default as SetSpecialDayResponse } from './SetSpecialDayResponse.js';
|
|
9
15
|
export { default as TurnRelayOffResponse } from './TurnRelayOffResponse.js';
|
|
10
16
|
export { default as TurnRelayOnResponse } from './TurnRelayOnResponse.js';
|
|
11
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,0BAA0B,CAAC"}
|
|
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,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAC5E,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"}
|
package/dist/mtx/message.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ interface IFrame extends IMessage, IToFrameOptions {
|
|
|
34
34
|
crc: Uint8Array;
|
|
35
35
|
}
|
|
36
36
|
export declare const downlinkCommandsById: {
|
|
37
|
-
[k: string]: typeof downlinkCommands.ActivateRatePlan | typeof downlinkCommands.GetDateTime | typeof downlinkCommands.GetDisplayParam | typeof downlinkCommands.GetOpParams | typeof downlinkCommands.GetRatePlanInfo | typeof downlinkCommands.SetDisplayParam | typeof downlinkCommands.SetOpParams | typeof downlinkCommands.TurnRelayOff | typeof downlinkCommands.TurnRelayOn;
|
|
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
38
|
};
|
|
39
39
|
export declare const uplinkCommandsById: {
|
|
40
|
-
[k: string]: typeof uplinkCommands.ActivateRatePlanResponse | typeof uplinkCommands.ErrorResponse | typeof uplinkCommands.GetDateTimeResponse | typeof uplinkCommands.GetDisplayParamResponse | typeof uplinkCommands.GetOpParamsResponse | typeof uplinkCommands.GetRatePlanInfoResponse | typeof uplinkCommands.SetDisplayParamResponse | typeof uplinkCommands.SetOpParamsResponse | typeof uplinkCommands.TurnRelayOffResponse | typeof uplinkCommands.TurnRelayOnResponse;
|
|
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
41
|
};
|
|
42
42
|
export declare const fromBytes: (message: Uint8Array, config?: IFromBytesOptions) => IMessage;
|
|
43
43
|
export declare const fromFrame: (frame: Uint8Array, { aesKey }: IFromFrameOptions) => IFrame;
|
|
@@ -8,7 +8,7 @@ class Command {
|
|
|
8
8
|
}
|
|
9
9
|
static toBytes(id, commandData) {
|
|
10
10
|
const commandLength = commandData?.length ?? 0;
|
|
11
|
-
const headerData = new Uint8Array([id]);
|
|
11
|
+
const headerData = new Uint8Array([id, commandLength]);
|
|
12
12
|
if (commandData && commandLength) {
|
|
13
13
|
return mergeUint8Arrays(headerData, commandData);
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../src/obis-observer/Command.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAmB5D,MAAe,OAAO;IAmBlB,MAAM,CAAC,KAAK;QACR,OAAO,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IA+CD,MAAM,CAAC,OAAO,CAAG,EAAU,EAAE,WAAwB;QACjD,MAAM,aAAa,GAAG,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../src/obis-observer/Command.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAmB5D,MAAe,OAAO;IAmBlB,MAAM,CAAC,KAAK;QACR,OAAO,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IA+CD,MAAM,CAAC,OAAO,CAAG,EAAU,EAAE,WAAwB;QACjD,MAAM,aAAa,GAAG,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC;QAEvD,IAAK,WAAW,IAAI,aAAa,EAAG;YAChC,OAAO,gBAAgB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;SACpD;QAGD,OAAO,UAAU,CAAC;IACtB,CAAC;IAGD,aAAa;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAGD,OAAO;QACH,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAG,UAA6B,EAAE;QACnC,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,QAAQ;QACJ,OAAO,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9C,CAAC;IAOD,MAAM;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;IAChD,CAAC;;AAhGM,qBAAa,GAAG,KAAK,CAAC;AAoGjC,eAAe,OAAO,CAAC"}
|
|
@@ -13,8 +13,8 @@ export interface IObis {
|
|
|
13
13
|
export interface IObisProfileFlags {
|
|
14
14
|
contentType: number;
|
|
15
15
|
sendOnChange: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
archive1: boolean;
|
|
17
|
+
archive2: boolean;
|
|
18
18
|
}
|
|
19
19
|
export interface IObisProfile {
|
|
20
20
|
capturePeriod: number;
|
|
@@ -22,11 +22,11 @@ export interface IObisProfile {
|
|
|
22
22
|
sendingCounter: number;
|
|
23
23
|
flags: IObisProfileFlags;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface IObisValueFloat {
|
|
26
26
|
code: number;
|
|
27
27
|
content: number;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface IObisValueString {
|
|
30
30
|
code: number;
|
|
31
31
|
content: string;
|
|
32
32
|
}
|
|
@@ -41,15 +41,15 @@ export declare const EUI_SIZE = 8;
|
|
|
41
41
|
declare class CommandBinaryBuffer extends BinaryBuffer {
|
|
42
42
|
constructor(dataOrLength: Uint8Array | number | string);
|
|
43
43
|
static getObisSize(obis: IObis): number;
|
|
44
|
-
static
|
|
44
|
+
static getObisContentSize(obisValue: IObisValueFloat | IObisValueString): number;
|
|
45
45
|
getObis(): IObis;
|
|
46
46
|
setObis(obis: IObis): void;
|
|
47
47
|
getObisProfile(): IObisProfile;
|
|
48
48
|
setObisProfile(profile: IObisProfile): void;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
getObisValueString(): IObisValueString;
|
|
50
|
+
setObisValueString(obisValue: IObisValueString): void;
|
|
51
|
+
getObisValueFloat(): IObisValueFloat;
|
|
52
|
+
setObisValueFloat(obisValue: IObisValueFloat): void;
|
|
53
53
|
getSerialPortFlags(): {
|
|
54
54
|
fixed: boolean;
|
|
55
55
|
parity: number;
|
|
@@ -13,11 +13,11 @@ const obisBitMask = {
|
|
|
13
13
|
b: 2 ** 2,
|
|
14
14
|
a: 2 ** 3
|
|
15
15
|
};
|
|
16
|
-
const
|
|
16
|
+
const archiveBitsNumber = 1;
|
|
17
17
|
const sendingOnlyIfChangeBitsNumber = 1;
|
|
18
18
|
const contentTypeBitsNumber = 2;
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const archive1BitStartIndex = 1;
|
|
20
|
+
const archive2BitStartIndex = 2;
|
|
21
21
|
const sendingOnlyIfChangeBitStartIndex = 3;
|
|
22
22
|
const contentTypeBitStartIndex = 4;
|
|
23
23
|
class CommandBinaryBuffer extends BinaryBuffer {
|
|
@@ -28,11 +28,11 @@ class CommandBinaryBuffer extends BinaryBuffer {
|
|
|
28
28
|
const keys = Object.keys(obis);
|
|
29
29
|
return keys.filter(key => obis[key] !== undefined).length + 1;
|
|
30
30
|
}
|
|
31
|
-
static
|
|
32
|
-
if (typeof
|
|
31
|
+
static getObisContentSize(obisValue) {
|
|
32
|
+
if (typeof obisValue.content === 'number') {
|
|
33
33
|
return 5;
|
|
34
34
|
}
|
|
35
|
-
return 1 +
|
|
35
|
+
return 1 + obisValue.content.length + 1;
|
|
36
36
|
}
|
|
37
37
|
getObis() {
|
|
38
38
|
const obis = {
|
|
@@ -87,15 +87,15 @@ class CommandBinaryBuffer extends BinaryBuffer {
|
|
|
87
87
|
flags: {
|
|
88
88
|
contentType: 0,
|
|
89
89
|
sendOnChange: false,
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
archive1: false,
|
|
91
|
+
archive2: false
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
const flags = this.getUint8();
|
|
95
95
|
profile.flags.contentType = bitSet.extractBits(flags, contentTypeBitsNumber, contentTypeBitStartIndex);
|
|
96
96
|
profile.flags.sendOnChange = !!bitSet.extractBits(flags, sendingOnlyIfChangeBitsNumber, sendingOnlyIfChangeBitStartIndex);
|
|
97
|
-
profile.flags.
|
|
98
|
-
profile.flags.
|
|
97
|
+
profile.flags.archive1 = !!bitSet.extractBits(flags, archiveBitsNumber, archive1BitStartIndex);
|
|
98
|
+
profile.flags.archive2 = !!bitSet.extractBits(flags, archiveBitsNumber, archive2BitStartIndex);
|
|
99
99
|
return profile;
|
|
100
100
|
}
|
|
101
101
|
setObisProfile(profile) {
|
|
@@ -105,23 +105,23 @@ class CommandBinaryBuffer extends BinaryBuffer {
|
|
|
105
105
|
let flags = 0;
|
|
106
106
|
flags = bitSet.fillBits(flags, contentTypeBitsNumber, contentTypeBitStartIndex, profile.flags.contentType);
|
|
107
107
|
flags = bitSet.fillBits(flags, sendingOnlyIfChangeBitsNumber, sendingOnlyIfChangeBitStartIndex, +profile.flags.sendOnChange);
|
|
108
|
-
flags = bitSet.fillBits(flags,
|
|
109
|
-
flags = bitSet.fillBits(flags,
|
|
108
|
+
flags = bitSet.fillBits(flags, archiveBitsNumber, archive1BitStartIndex, +profile.flags.archive1);
|
|
109
|
+
flags = bitSet.fillBits(flags, archiveBitsNumber, archive2BitStartIndex, +profile.flags.archive2);
|
|
110
110
|
this.setUint8(flags);
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
getObisValueString() {
|
|
113
113
|
return { code: this.getUint8(), content: this.getString() };
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
this.setUint8(
|
|
117
|
-
this.setString(
|
|
115
|
+
setObisValueString(obisValue) {
|
|
116
|
+
this.setUint8(obisValue.code);
|
|
117
|
+
this.setString(obisValue.content);
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
getObisValueFloat() {
|
|
120
120
|
return { code: this.getUint8(), content: roundNumber(this.getFloat32()) };
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
this.setUint8(
|
|
124
|
-
this.setFloat32(roundNumber(
|
|
122
|
+
setObisValueFloat(obisValue) {
|
|
123
|
+
this.setUint8(obisValue.code);
|
|
124
|
+
this.setFloat32(roundNumber(obisValue.content));
|
|
125
125
|
}
|
|
126
126
|
getSerialPortFlags() {
|
|
127
127
|
const flags = this.getUint8();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandBinaryBuffer.js","sourceRoot":"","sources":["../../src/obis-observer/CommandBinaryBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,oBAAoB,C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AI,CAAC,CAAC,CAAC;IAC/C,CAAC;CACJ;AAGD,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { ICommandParameters } from '../../CommandBinaryBuffer.js';
|
|
3
3
|
interface IGetArchiveStateParameters extends ICommandParameters {
|
|
4
|
-
|
|
4
|
+
meterId?: number;
|
|
5
|
+
archiveType: number;
|
|
5
6
|
}
|
|
6
7
|
declare class GetArchiveState extends Command {
|
|
7
8
|
parameters: IGetArchiveStateParameters;
|
|
8
9
|
constructor(parameters: IGetArchiveStateParameters);
|
|
9
|
-
static readonly id =
|
|
10
|
+
static readonly id = 15;
|
|
10
11
|
static readonly directionType = 1;
|
|
11
12
|
static readonly examples: TCommandExampleList;
|
|
12
13
|
static readonly hasParameters = true;
|
|
13
|
-
static fromBytes(
|
|
14
|
+
static fromBytes([requestId, archiveType, meterId]: Uint8Array): GetArchiveState;
|
|
14
15
|
toBytes(): Uint8Array;
|
|
15
16
|
}
|
|
16
17
|
export default GetArchiveState;
|