zwave-js 9.2.1 → 9.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/build/Controller.d.ts +2 -2
- package/build/Controller.d.ts.map +1 -1
- package/build/Controller.js +1 -1
- package/build/Controller.js.map +1 -1
- package/build/Driver.d.ts +3 -4
- package/build/Driver.d.ts.map +1 -1
- package/build/Driver.js +6 -7
- package/build/Driver.js.map +1 -1
- package/build/Utils.d.ts +2 -0
- package/build/Utils.d.ts.map +1 -1
- package/build/Utils.js +5 -1
- package/build/Utils.js.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.d.ts +6 -5
- package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/AlarmSensorCC.js +23 -23
- package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
- package/build/lib/commandclass/AssociationCC.d.ts +12 -11
- package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationCC.js +47 -41
- package/build/lib/commandclass/AssociationCC.js.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +15 -14
- package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/lib/commandclass/AssociationGroupInfoCC.js +56 -51
- package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.d.ts +9 -8
- package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BarrierOperatorCC.js +28 -28
- package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
- package/build/lib/commandclass/BasicCC.d.ts +5 -4
- package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
- package/build/lib/commandclass/BasicCC.js +18 -18
- package/build/lib/commandclass/BasicCC.js.map +1 -1
- package/build/lib/commandclass/BatteryCC.d.ts +5 -4
- package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
- package/build/lib/commandclass/BatteryCC.js +17 -17
- package/build/lib/commandclass/BatteryCC.js.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.d.ts +6 -5
- package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySensorCC.js +24 -24
- package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.d.ts +5 -4
- package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/BinarySwitchCC.js +15 -15
- package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
- package/build/lib/commandclass/CRC16CC.d.ts +3 -3
- package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
- package/build/lib/commandclass/CRC16CC.js +5 -5
- package/build/lib/commandclass/CRC16CC.js.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.d.ts +6 -5
- package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
- package/build/lib/commandclass/CentralSceneCC.js +23 -25
- package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +7 -7
- package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClimateControlScheduleCC.js +12 -12
- package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
- package/build/lib/commandclass/ClockCC.d.ts +5 -4
- package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
- package/build/lib/commandclass/ClockCC.js +15 -15
- package/build/lib/commandclass/ClockCC.js.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.d.ts +10 -9
- package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/ColorSwitchCC.js +29 -29
- package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
- package/build/lib/commandclass/CommandClass.d.ts +17 -10
- package/build/lib/commandclass/CommandClass.d.ts.map +1 -1
- package/build/lib/commandclass/CommandClass.js +53 -27
- package/build/lib/commandclass/CommandClass.js.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.d.ts +16 -15
- package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/ConfigurationCC.js +66 -59
- package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockCC.d.ts +8 -7
- package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockCC.js +27 -27
- package/build/lib/commandclass/DoorLockCC.js.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts +6 -5
- package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/lib/commandclass/DoorLockLoggingCC.js +18 -18
- package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
- package/build/lib/commandclass/EntryControlCC.d.ts +8 -7
- package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
- package/build/lib/commandclass/EntryControlCC.js +27 -27
- package/build/lib/commandclass/EntryControlCC.js.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +11 -11
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +20 -20
- package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.d.ts +6 -5
- package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlModeCC.js +22 -22
- package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +4 -3
- package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js +13 -13
- package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +11 -10
- package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/HumidityControlSetpointCC.js +46 -46
- package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
- package/build/lib/commandclass/IndicatorCC.d.ts +9 -8
- package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
- package/build/lib/commandclass/IndicatorCC.js +37 -37
- package/build/lib/commandclass/IndicatorCC.js.map +1 -1
- package/build/lib/commandclass/IrrigationCC.d.ts +18 -17
- package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
- package/build/lib/commandclass/IrrigationCC.js +51 -51
- package/build/lib/commandclass/IrrigationCC.js.map +1 -1
- package/build/lib/commandclass/LanguageCC.d.ts +5 -4
- package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
- package/build/lib/commandclass/LanguageCC.js +15 -15
- package/build/lib/commandclass/LanguageCC.js.map +1 -1
- package/build/lib/commandclass/LockCC.d.ts +5 -4
- package/build/lib/commandclass/LockCC.d.ts.map +1 -1
- package/build/lib/commandclass/LockCC.js +15 -15
- package/build/lib/commandclass/LockCC.js.map +1 -1
- package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts +11 -3
- package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/lib/commandclass/ManufacturerProprietaryCC.js +44 -18
- package/build/lib/commandclass/ManufacturerProprietaryCC.js.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +5 -4
- package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/lib/commandclass/ManufacturerSpecificCC.js +15 -15
- package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
- package/build/lib/commandclass/MeterCC.d.ts +8 -7
- package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
- package/build/lib/commandclass/MeterCC.js +49 -41
- package/build/lib/commandclass/MeterCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +12 -11
- package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelAssociationCC.js +45 -43
- package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.d.ts +15 -14
- package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiChannelCC.js +61 -61
- package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.d.ts +3 -3
- package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultiCommandCC.js +5 -5
- package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.d.ts +8 -7
- package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSensorCC.js +50 -50
- package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts +8 -7
- package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/MultilevelSwitchCC.js +31 -31
- package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
- package/build/lib/commandclass/NoOperationCC.d.ts +1 -1
- package/build/lib/commandclass/NoOperationCC.d.ts.map +1 -1
- package/build/lib/commandclass/NoOperationCC.js +2 -2
- package/build/lib/commandclass/NoOperationCC.js.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.d.ts +7 -6
- package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
- package/build/lib/commandclass/NodeNamingCC.js +21 -21
- package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
- package/build/lib/commandclass/NotificationCC.d.ts +10 -9
- package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
- package/build/lib/commandclass/NotificationCC.js +54 -54
- package/build/lib/commandclass/NotificationCC.js.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.d.ts +5 -5
- package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
- package/build/lib/commandclass/PowerlevelCC.js +9 -9
- package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
- package/build/lib/commandclass/ProtectionCC.d.ts +10 -9
- package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
- package/build/lib/commandclass/ProtectionCC.js +33 -33
- package/build/lib/commandclass/ProtectionCC.js.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.d.ts +2 -2
- package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActivationCC.js +2 -2
- package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +5 -4
- package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js +9 -9
- package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +7 -6
- package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/lib/commandclass/SceneControllerConfigurationCC.js +32 -28
- package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
- package/build/lib/commandclass/Security2CC.d.ts +17 -26
- package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
- package/build/lib/commandclass/Security2CC.js +68 -68
- package/build/lib/commandclass/Security2CC.js.map +1 -1
- package/build/lib/commandclass/SecurityCC.d.ts +11 -14
- package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
- package/build/lib/commandclass/SecurityCC.js +41 -41
- package/build/lib/commandclass/SecurityCC.js.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.d.ts +9 -8
- package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
- package/build/lib/commandclass/SoundSwitchCC.js +27 -27
- package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
- package/build/lib/commandclass/SupervisionCC.d.ts +4 -4
- package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
- package/build/lib/commandclass/SupervisionCC.js +9 -9
- package/build/lib/commandclass/SupervisionCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts +6 -5
- package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanModeCC.js +22 -22
- package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts +4 -3
- package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatFanStateCC.js +13 -13
- package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.d.ts +6 -5
- package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatModeCC.js +22 -22
- package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +4 -3
- package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatOperatingStateCC.js +13 -13
- package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts +5 -4
- package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetbackCC.js +15 -15
- package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts +10 -9
- package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/lib/commandclass/ThermostatSetpointCC.js +48 -48
- package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
- package/build/lib/commandclass/TimeCC.d.ts +6 -5
- package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeCC.js +15 -15
- package/build/lib/commandclass/TimeCC.js.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.d.ts +4 -3
- package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
- package/build/lib/commandclass/TimeParametersCC.js +11 -11
- package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.d.ts +7 -7
- package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
- package/build/lib/commandclass/TransportServiceCC.js +12 -12
- package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
- package/build/lib/commandclass/UserCodeCC.d.ts +17 -16
- package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
- package/build/lib/commandclass/UserCodeCC.js +58 -58
- package/build/lib/commandclass/UserCodeCC.js.map +1 -1
- package/build/lib/commandclass/VersionCC.d.ts +7 -6
- package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
- package/build/lib/commandclass/VersionCC.js +28 -28
- package/build/lib/commandclass/VersionCC.js.map +1 -1
- package/build/lib/commandclass/WakeUpCC.d.ts +5 -5
- package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
- package/build/lib/commandclass/WakeUpCC.js +24 -28
- package/build/lib/commandclass/WakeUpCC.js.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.d.ts +20 -14
- package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
- package/build/lib/commandclass/ZWavePlusCC.js +119 -41
- package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts +8 -7
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts.map +1 -1
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.js +21 -21
- package/build/lib/commandclass/manufacturerProprietary/Fibaro.js.map +1 -1
- package/build/lib/controller/Controller.d.ts +21 -14
- package/build/lib/controller/Controller.d.ts.map +1 -1
- package/build/lib/controller/Controller.js +129 -140
- package/build/lib/controller/Controller.js.map +1 -1
- package/build/lib/controller/Inclusion.d.ts +1 -1
- package/build/lib/controller/Inclusion.d.ts.map +1 -1
- package/build/lib/controller/MockControllerBehaviors.d.ts +4 -0
- package/build/lib/controller/MockControllerBehaviors.d.ts.map +1 -0
- package/build/lib/controller/MockControllerBehaviors.js +161 -0
- package/build/lib/controller/MockControllerBehaviors.js.map +1 -0
- package/build/lib/controller/NodeInformationFrame.d.ts +9 -0
- package/build/lib/controller/NodeInformationFrame.d.ts.map +1 -0
- package/build/lib/controller/NodeInformationFrame.js +53 -0
- package/build/lib/controller/NodeInformationFrame.js.map +1 -0
- package/build/lib/controller/ZWaveChipTypes.d.ts +10 -0
- package/build/lib/controller/ZWaveChipTypes.d.ts.map +1 -0
- package/build/lib/controller/ZWaveChipTypes.js +32 -0
- package/build/lib/controller/ZWaveChipTypes.js.map +1 -0
- package/build/lib/controller/utils.d.ts +3 -0
- package/build/lib/controller/utils.d.ts.map +1 -0
- package/build/lib/controller/utils.js +40 -0
- package/build/lib/controller/utils.js.map +1 -0
- package/build/lib/driver/CommandQueueMachine.d.ts +1 -1
- package/build/lib/driver/CommandQueueMachine.d.ts.map +1 -1
- package/build/lib/driver/CommandQueueMachine.js.map +1 -1
- package/build/lib/driver/Driver.d.ts +7 -4
- package/build/lib/driver/Driver.d.ts.map +1 -1
- package/build/lib/driver/Driver.js +89 -67
- package/build/lib/driver/Driver.js.map +1 -1
- package/build/lib/driver/DriverMock.d.ts +13 -0
- package/build/lib/driver/DriverMock.d.ts.map +1 -0
- package/build/lib/driver/DriverMock.js +53 -0
- package/build/lib/driver/DriverMock.js.map +1 -0
- package/build/lib/driver/MessageGenerators.d.ts +1 -1
- package/build/lib/driver/MessageGenerators.d.ts.map +1 -1
- package/build/lib/driver/MessageGenerators.js.map +1 -1
- package/build/lib/driver/NetworkCache.d.ts +1 -1
- package/build/lib/driver/NetworkCache.d.ts.map +1 -1
- package/build/lib/driver/NetworkCache.js +80 -38
- package/build/lib/driver/NetworkCache.js.map +1 -1
- package/build/lib/driver/SendThreadMachine.d.ts +2 -2
- package/build/lib/driver/SendThreadMachine.d.ts.map +1 -1
- package/build/lib/driver/SendThreadMachine.js +4 -4
- package/build/lib/driver/SendThreadMachine.js.map +1 -1
- package/build/lib/driver/SerialAPICommandMachine.d.ts +1 -1
- package/build/lib/driver/SerialAPICommandMachine.d.ts.map +1 -1
- package/build/lib/driver/SerialAPICommandMachine.js +6 -7
- package/build/lib/driver/SerialAPICommandMachine.js.map +1 -1
- package/build/lib/driver/StateMachineShared.d.ts +1 -1
- package/build/lib/driver/StateMachineShared.d.ts.map +1 -1
- package/build/lib/driver/StateMachineShared.js.map +1 -1
- package/build/lib/driver/Transaction.d.ts +2 -2
- package/build/lib/driver/Transaction.d.ts.map +1 -1
- package/build/lib/driver/Transaction.js +5 -5
- package/build/lib/driver/Transaction.js.map +1 -1
- package/build/lib/driver/TransactionMachine.d.ts +1 -1
- package/build/lib/driver/TransactionMachine.d.ts.map +1 -1
- package/build/lib/driver/TransactionMachine.js.map +1 -1
- package/build/lib/driver/ZWaveOptions.d.ts +1 -1
- package/build/lib/driver/ZWaveOptions.d.ts.map +1 -1
- package/build/lib/log/Driver.d.ts +1 -1
- package/build/lib/log/Driver.d.ts.map +1 -1
- package/build/lib/log/Driver.js +4 -4
- package/build/lib/log/Driver.js.map +1 -1
- package/build/lib/node/Endpoint.d.ts +3 -2
- package/build/lib/node/Endpoint.d.ts.map +1 -1
- package/build/lib/node/Endpoint.js +32 -31
- package/build/lib/node/Endpoint.js.map +1 -1
- package/build/lib/node/Node.d.ts +4 -13
- package/build/lib/node/Node.d.ts.map +1 -1
- package/build/lib/node/Node.js +64 -150
- package/build/lib/node/Node.js.map +1 -1
- package/build/lib/node/_Types.d.ts +2 -30
- package/build/lib/node/_Types.d.ts.map +1 -1
- package/build/lib/node/_Types.js +3 -33
- package/build/lib/node/_Types.js.map +1 -1
- package/build/lib/node/utils.d.ts +28 -0
- package/build/lib/node/utils.d.ts.map +1 -0
- package/build/lib/node/utils.js +187 -0
- package/build/lib/node/utils.js.map +1 -0
- package/build/lib/serialapi/_Types.d.ts +1 -14
- package/build/lib/serialapi/_Types.d.ts.map +1 -1
- package/build/lib/serialapi/_Types.js +2 -15
- package/build/lib/serialapi/_Types.js.map +1 -1
- package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts +4 -3
- package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/ApplicationCommandRequest.js +15 -14
- package/build/lib/serialapi/application/ApplicationCommandRequest.js.map +1 -1
- package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts +6 -6
- package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/ApplicationUpdateRequest.js +10 -11
- package/build/lib/serialapi/application/ApplicationUpdateRequest.js.map +1 -1
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts +4 -3
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js +14 -9
- package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js.map +1 -1
- package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts +23 -11
- package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts.map +1 -1
- package/build/lib/serialapi/application/SerialAPIStartedRequest.js +59 -36
- package/build/lib/serialapi/application/SerialAPIStartedRequest.js.map +1 -1
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts +17 -11
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js +40 -34
- package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts +11 -9
- package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetControllerVersionMessages.js +24 -24
- package/build/lib/serialapi/capability/GetControllerVersionMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts +3 -3
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.js +9 -10
- package/build/lib/serialapi/capability/GetProtocolVersionMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts +17 -16
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js +39 -42
- package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts +26 -14
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js +138 -51
- package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js.map +1 -1
- package/build/lib/serialapi/capability/HardResetRequest.d.ts +12 -2
- package/build/lib/serialapi/capability/HardResetRequest.d.ts.map +1 -1
- package/build/lib/serialapi/capability/HardResetRequest.js +41 -11
- package/build/lib/serialapi/capability/HardResetRequest.js.map +1 -1
- package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts +22 -22
- package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts.map +1 -1
- package/build/lib/serialapi/capability/SerialAPISetupMessages.js +50 -51
- package/build/lib/serialapi/capability/SerialAPISetupMessages.js.map +1 -1
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts +22 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts.map +1 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js +60 -0
- package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js.map +1 -0
- package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts +13 -9
- package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/memory/GetControllerIdMessages.js +31 -23
- package/build/lib/serialapi/memory/GetControllerIdMessages.js.map +1 -1
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts +3 -3
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js +9 -10
- package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts +5 -5
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js +12 -13
- package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts +4 -4
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js +11 -12
- package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js.map +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.d.ts +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.d.ts.map +1 -1
- package/build/lib/serialapi/misc/SoftResetRequest.js +4 -5
- package/build/lib/serialapi/misc/SoftResetRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts +8 -8
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js +17 -18
- package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts +7 -8
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js +19 -20
- package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts +20 -18
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js +72 -26
- package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts +4 -4
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js +11 -12
- package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts +9 -7
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js +18 -19
- package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts +4 -4
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js +11 -12
- package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js +18 -19
- package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts +6 -6
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js +13 -14
- package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js +17 -18
- package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts +5 -6
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js +12 -13
- package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts +6 -6
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js +14 -15
- package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js.map +1 -1
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts +7 -7
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts.map +1 -1
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js +21 -22
- package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts +4 -4
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js +12 -13
- package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts +3 -3
- package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/GetNVMIdMessages.js +9 -10
- package/build/lib/serialapi/nvm/GetNVMIdMessages.js.map +1 -1
- package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts +8 -8
- package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts.map +1 -1
- package/build/lib/serialapi/nvm/NVMOperationsMessages.js +19 -20
- package/build/lib/serialapi/nvm/NVMOperationsMessages.js.map +1 -1
- package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts +13 -11
- package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts.map +1 -1
- package/build/lib/serialapi/transport/SendDataBridgeMessages.js +48 -44
- package/build/lib/serialapi/transport/SendDataBridgeMessages.js.map +1 -1
- package/build/lib/serialapi/transport/SendDataMessages.d.ts +13 -11
- package/build/lib/serialapi/transport/SendDataMessages.d.ts.map +1 -1
- package/build/lib/serialapi/transport/SendDataMessages.js +49 -43
- package/build/lib/serialapi/transport/SendDataMessages.js.map +1 -1
- package/build/lib/telemetry/deviceConfig.d.ts.map +1 -1
- package/build/lib/telemetry/deviceConfig.js +2 -3
- package/build/lib/telemetry/deviceConfig.js.map +1 -1
- package/package.json +9 -8
- package/build/lib/driver/FileSystem.d.ts +0 -11
- package/build/lib/driver/FileSystem.d.ts.map +0 -1
- package/build/lib/driver/FileSystem.js +0 -3
- package/build/lib/driver/FileSystem.js.map +0 -1
- package/build/lib/log/Controller.d.ts +0 -68
- package/build/lib/log/Controller.d.ts.map +0 -1
- package/build/lib/log/Controller.js +0 -221
- package/build/lib/log/Controller.js.map +0 -1
- package/build/lib/message/Constants.d.ts +0 -150
- package/build/lib/message/Constants.d.ts.map +0 -1
- package/build/lib/message/Constants.js +0 -176
- package/build/lib/message/Constants.js.map +0 -1
- package/build/lib/message/Message.d.ts +0 -172
- package/build/lib/message/Message.d.ts.map +0 -1
- package/build/lib/message/Message.js +0 -465
- package/build/lib/message/Message.js.map +0 -1
- package/build/lib/message/SuccessIndicator.d.ts +0 -16
- package/build/lib/message/SuccessIndicator.d.ts.map +0 -1
- package/build/lib/message/SuccessIndicator.js +0 -12
- package/build/lib/message/SuccessIndicator.js.map +0 -1
- package/build/lib/node/INodeQuery.d.ts +0 -7
- package/build/lib/node/INodeQuery.d.ts.map +0 -1
- package/build/lib/node/INodeQuery.js +0 -9
- package/build/lib/node/INodeQuery.js.map +0 -1
|
@@ -8,58 +8,55 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GetSerialApiCapabilitiesResponse = exports.GetSerialApiCapabilitiesRequest = void 0;
|
|
10
10
|
const core_1 = require("@zwave-js/core");
|
|
11
|
-
const
|
|
12
|
-
const Constants_1 = require("../../message/Constants");
|
|
13
|
-
const Message_1 = require("../../message/Message");
|
|
11
|
+
const serial_1 = require("@zwave-js/serial");
|
|
14
12
|
const NUM_FUNCTIONS = 256;
|
|
15
13
|
const NUM_FUNCTION_BYTES = NUM_FUNCTIONS / 8;
|
|
16
|
-
let GetSerialApiCapabilitiesRequest = class GetSerialApiCapabilitiesRequest extends
|
|
14
|
+
let GetSerialApiCapabilitiesRequest = class GetSerialApiCapabilitiesRequest extends serial_1.Message {
|
|
17
15
|
};
|
|
18
16
|
GetSerialApiCapabilitiesRequest = __decorate([
|
|
19
|
-
(0,
|
|
20
|
-
(0,
|
|
21
|
-
(0,
|
|
17
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetSerialApiCapabilities),
|
|
18
|
+
(0, serial_1.expectedResponse)(serial_1.FunctionType.GetSerialApiCapabilities),
|
|
19
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller)
|
|
22
20
|
], GetSerialApiCapabilitiesRequest);
|
|
23
21
|
exports.GetSerialApiCapabilitiesRequest = GetSerialApiCapabilitiesRequest;
|
|
24
|
-
let GetSerialApiCapabilitiesResponse = class GetSerialApiCapabilitiesResponse extends
|
|
25
|
-
constructor(
|
|
26
|
-
super(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
let GetSerialApiCapabilitiesResponse = class GetSerialApiCapabilitiesResponse extends serial_1.Message {
|
|
23
|
+
constructor(host, options) {
|
|
24
|
+
super(host, options);
|
|
25
|
+
if ((0, serial_1.gotDeserializationOptions)(options)) {
|
|
26
|
+
// The first 8 bytes are the api version, manufacturer id, product type and product id
|
|
27
|
+
this.firmwareVersion = `${this.payload[0]}.${this.payload[1]}`;
|
|
28
|
+
this.manufacturerId = this.payload.readUInt16BE(2);
|
|
29
|
+
this.productType = this.payload.readUInt16BE(4);
|
|
30
|
+
this.productId = this.payload.readUInt16BE(6);
|
|
31
|
+
// then a 256bit bitmask for the supported command classes follows
|
|
32
|
+
const functionBitMask = this.payload.slice(8, 8 + NUM_FUNCTION_BYTES);
|
|
33
|
+
this.supportedFunctionTypes = (0, core_1.parseBitMask)(functionBitMask);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.firmwareVersion = options.firmwareVersion;
|
|
37
|
+
this.manufacturerId = options.manufacturerId;
|
|
38
|
+
this.productType = options.productType;
|
|
39
|
+
this.productId = options.productId;
|
|
40
|
+
this.supportedFunctionTypes = options.supportedFunctionTypes;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return this._supportedFunctionTypes;
|
|
50
|
-
}
|
|
51
|
-
toJSON() {
|
|
52
|
-
return super.toJSONInherited({
|
|
53
|
-
firmwareVersion: this.firmwareVersion,
|
|
54
|
-
manufacturerId: this.manufacturerId,
|
|
55
|
-
productType: this.productType,
|
|
56
|
-
productId: this.productId,
|
|
57
|
-
supportedFunctionTypes: this.supportedFunctionTypes.map((type) => type in Constants_1.FunctionType ? Constants_1.FunctionType[type] : (0, shared_1.num2hex)(type)),
|
|
58
|
-
});
|
|
43
|
+
serialize() {
|
|
44
|
+
this.payload = Buffer.allocUnsafe(8 + NUM_FUNCTION_BYTES);
|
|
45
|
+
const firmwareBytes = this.firmwareVersion
|
|
46
|
+
.split(".", 2)
|
|
47
|
+
.map((str) => parseInt(str));
|
|
48
|
+
this.payload[0] = firmwareBytes[0];
|
|
49
|
+
this.payload[1] = firmwareBytes[1];
|
|
50
|
+
this.payload.writeUInt16BE(this.manufacturerId, 2);
|
|
51
|
+
this.payload.writeUInt16BE(this.productType, 4);
|
|
52
|
+
this.payload.writeUInt16BE(this.productId, 6);
|
|
53
|
+
const functionBitMask = (0, core_1.encodeBitMask)(this.supportedFunctionTypes, NUM_FUNCTIONS);
|
|
54
|
+
functionBitMask.copy(this.payload, 8);
|
|
55
|
+
return super.serialize();
|
|
59
56
|
}
|
|
60
57
|
};
|
|
61
58
|
GetSerialApiCapabilitiesResponse = __decorate([
|
|
62
|
-
(0,
|
|
59
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetSerialApiCapabilities)
|
|
63
60
|
], GetSerialApiCapabilitiesResponse);
|
|
64
61
|
exports.GetSerialApiCapabilitiesResponse = GetSerialApiCapabilitiesResponse;
|
|
65
62
|
//# sourceMappingURL=GetSerialApiCapabilitiesMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSerialApiCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"GetSerialApiCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA6D;AAE7D,6C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AAC,wBAAwB,CAAC;GAC7D,gCAAgC,CAyD5C;AAzDY,4EAAgC"}
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { NodeType } from "@zwave-js/core";
|
|
3
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
4
|
+
import { Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
5
|
+
import { UnknownZWaveChipType } from "../../controller/ZWaveChipTypes";
|
|
6
|
+
import type { ZWaveApiVersion } from "../_Types";
|
|
4
7
|
export declare class GetSerialApiInitDataRequest extends Message {
|
|
5
8
|
}
|
|
9
|
+
export interface GetSerialApiInitDataResponseOptions extends MessageBaseOptions {
|
|
10
|
+
zwaveApiVersion: ZWaveApiVersion;
|
|
11
|
+
isPrimary: boolean;
|
|
12
|
+
nodeType: NodeType;
|
|
13
|
+
supportsTimers: boolean;
|
|
14
|
+
isSIS: boolean;
|
|
15
|
+
nodeIds: number[];
|
|
16
|
+
zwaveChipType?: string | UnknownZWaveChipType;
|
|
17
|
+
}
|
|
6
18
|
export declare class GetSerialApiInitDataResponse extends Message {
|
|
7
|
-
constructor(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions | GetSerialApiInitDataResponseOptions);
|
|
20
|
+
/** @deprecated use {@link zwaveApiVersion} instead */
|
|
21
|
+
readonly initVersion: number;
|
|
22
|
+
zwaveApiVersion: ZWaveApiVersion;
|
|
23
|
+
isPrimary: boolean;
|
|
24
|
+
nodeType: NodeType;
|
|
25
|
+
supportsTimers: boolean;
|
|
26
|
+
isSIS: boolean;
|
|
27
|
+
nodeIds: readonly number[];
|
|
28
|
+
zwaveChipType?: string | UnknownZWaveChipType;
|
|
29
|
+
serialize(): Buffer;
|
|
18
30
|
}
|
|
19
31
|
//# sourceMappingURL=GetSerialApiInitDataMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSerialApiInitDataMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GetSerialApiInitDataMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";AAAA,OAAO,EAGN,QAAQ,EAER,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAGN,oBAAoB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,qBAGa,2BAA4B,SAAQ,OAAO;CAAG;AAE3D,MAAM,WAAW,mCAChB,SAAQ,kBAAkB;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC;CAC9C;AAED,qBACa,4BAA6B,SAAQ,OAAO;gBAEvD,IAAI,EAAE,SAAS,EACf,OAAO,EACJ,6BAA6B,GAC7B,mCAAmC;IA4EvC,sDAAsD;IACtD,SAAgB,WAAW,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;IAEjC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAE3B,aAAa,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC;IAE9C,SAAS,IAAI,MAAM;CA4D1B"}
|
|
@@ -8,67 +8,154 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GetSerialApiInitDataResponse = exports.GetSerialApiInitDataRequest = void 0;
|
|
10
10
|
const core_1 = require("@zwave-js/core");
|
|
11
|
+
const serial_1 = require("@zwave-js/serial");
|
|
11
12
|
const NodeBitMask_1 = require("../../controller/NodeBitMask");
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
var InitCapabilityFlags;
|
|
15
|
-
(function (InitCapabilityFlags) {
|
|
16
|
-
InitCapabilityFlags[InitCapabilityFlags["Slave"] = 1] = "Slave";
|
|
17
|
-
InitCapabilityFlags[InitCapabilityFlags["SupportsTimers"] = 2] = "SupportsTimers";
|
|
18
|
-
InitCapabilityFlags[InitCapabilityFlags["Secondary"] = 4] = "Secondary";
|
|
19
|
-
InitCapabilityFlags[InitCapabilityFlags["SUC"] = 8] = "SUC";
|
|
20
|
-
})(InitCapabilityFlags || (InitCapabilityFlags = {}));
|
|
21
|
-
let GetSerialApiInitDataRequest = class GetSerialApiInitDataRequest extends Message_1.Message {
|
|
13
|
+
const ZWaveChipTypes_1 = require("../../controller/ZWaveChipTypes");
|
|
14
|
+
let GetSerialApiInitDataRequest = class GetSerialApiInitDataRequest extends serial_1.Message {
|
|
22
15
|
};
|
|
23
16
|
GetSerialApiInitDataRequest = __decorate([
|
|
24
|
-
(0,
|
|
25
|
-
(0,
|
|
26
|
-
(0,
|
|
17
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetSerialApiInitData),
|
|
18
|
+
(0, serial_1.expectedResponse)(serial_1.FunctionType.GetSerialApiInitData),
|
|
19
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller)
|
|
27
20
|
], GetSerialApiInitDataRequest);
|
|
28
21
|
exports.GetSerialApiInitDataRequest = GetSerialApiInitDataRequest;
|
|
29
|
-
let GetSerialApiInitDataResponse = class GetSerialApiInitDataResponse extends
|
|
30
|
-
constructor(
|
|
31
|
-
super(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
let GetSerialApiInitDataResponse = class GetSerialApiInitDataResponse extends serial_1.Message {
|
|
23
|
+
constructor(host, options) {
|
|
24
|
+
super(host, options);
|
|
25
|
+
if ((0, serial_1.gotDeserializationOptions)(options)) {
|
|
26
|
+
const apiVersion = this.payload[0];
|
|
27
|
+
if (apiVersion < 10) {
|
|
28
|
+
this.zwaveApiVersion = {
|
|
29
|
+
kind: "legacy",
|
|
30
|
+
version: apiVersion,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
// this module uses the officially specified Host API
|
|
35
|
+
this.zwaveApiVersion = {
|
|
36
|
+
kind: "official",
|
|
37
|
+
version: apiVersion - 9,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
this.initVersion = apiVersion;
|
|
41
|
+
const capabilities = this.payload[1];
|
|
42
|
+
if (this.zwaveApiVersion.kind === "official") {
|
|
43
|
+
// The new "official" Host API specs sneakily switched the meaning of some flags
|
|
44
|
+
this.nodeType =
|
|
45
|
+
capabilities & 0b0001
|
|
46
|
+
? core_1.NodeType.Controller
|
|
47
|
+
: core_1.NodeType["End Node"];
|
|
48
|
+
this.supportsTimers = !!(capabilities & 0b0010);
|
|
49
|
+
this.isPrimary = !!(capabilities & 0b0100);
|
|
50
|
+
this.isSIS = !!(capabilities & 0b1000);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this.nodeType =
|
|
54
|
+
capabilities & 0b0001
|
|
55
|
+
? core_1.NodeType["End Node"]
|
|
56
|
+
: core_1.NodeType.Controller;
|
|
57
|
+
this.supportsTimers = !!(capabilities & 0b0010);
|
|
58
|
+
this.isPrimary = !(capabilities & 0b0100);
|
|
59
|
+
this.isSIS = !!(capabilities & 0b1000);
|
|
60
|
+
}
|
|
61
|
+
let offset = 2;
|
|
62
|
+
this.nodeIds = [];
|
|
63
|
+
if (this.payload.length > offset) {
|
|
64
|
+
const nodeListLength = this.payload[offset];
|
|
65
|
+
// Controller Nodes MUST set this field to 29
|
|
66
|
+
if (nodeListLength === core_1.NUM_NODEMASK_BYTES &&
|
|
67
|
+
this.payload.length >= offset + 1 + nodeListLength) {
|
|
68
|
+
const nodeBitMask = this.payload.slice(offset + 1, offset + 1 + nodeListLength);
|
|
69
|
+
this.nodeIds = (0, NodeBitMask_1.parseNodeBitMask)(nodeBitMask);
|
|
70
|
+
}
|
|
71
|
+
offset += 1 + nodeListLength;
|
|
72
|
+
}
|
|
73
|
+
// these might not be present:
|
|
74
|
+
const chipType = this.payload[offset];
|
|
75
|
+
const chipVersion = this.payload[offset + 1];
|
|
76
|
+
if (chipType != undefined && chipVersion != undefined) {
|
|
77
|
+
this.zwaveChipType = (0, ZWaveChipTypes_1.getZWaveChipType)(chipType, chipVersion);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.zwaveApiVersion = options.zwaveApiVersion;
|
|
82
|
+
this.initVersion = 0; // unused
|
|
83
|
+
this.isPrimary = options.isPrimary;
|
|
84
|
+
this.nodeType = options.nodeType;
|
|
85
|
+
this.supportsTimers = options.supportsTimers;
|
|
86
|
+
this.isSIS = options.isSIS;
|
|
87
|
+
this.nodeIds = options.nodeIds;
|
|
88
|
+
this.zwaveChipType = options.zwaveChipType;
|
|
39
89
|
}
|
|
40
90
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
91
|
+
serialize() {
|
|
92
|
+
let chipType;
|
|
93
|
+
if (typeof this.zwaveChipType === "string") {
|
|
94
|
+
chipType = (0, ZWaveChipTypes_1.getChipTypeAndVersion)(this.zwaveChipType);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
chipType = this.zwaveChipType;
|
|
98
|
+
}
|
|
99
|
+
this.payload = Buffer.allocUnsafe(3 + core_1.NUM_NODEMASK_BYTES + (chipType ? 2 : 0));
|
|
100
|
+
let capabilities = 0;
|
|
101
|
+
if (this.supportsTimers)
|
|
102
|
+
capabilities |= 0b0010;
|
|
103
|
+
if (this.isSIS)
|
|
104
|
+
capabilities |= 0b1000;
|
|
105
|
+
if (this.zwaveApiVersion.kind === "legacy") {
|
|
106
|
+
this.payload[0] = this.zwaveApiVersion.version;
|
|
107
|
+
if (this.nodeType === core_1.NodeType["End Node"])
|
|
108
|
+
capabilities |= 0b0001;
|
|
109
|
+
if (!this.isPrimary)
|
|
110
|
+
capabilities |= 0b0100;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
this.payload[0] = this.zwaveApiVersion.version + 9;
|
|
114
|
+
if (this.nodeType === core_1.NodeType.Controller)
|
|
115
|
+
capabilities |= 0b0001;
|
|
116
|
+
if (this.isPrimary)
|
|
117
|
+
capabilities |= 0b0100;
|
|
118
|
+
}
|
|
119
|
+
this.payload[1] = capabilities;
|
|
120
|
+
this.payload[2] = core_1.NUM_NODEMASK_BYTES;
|
|
121
|
+
const nodeBitMask = (0, core_1.encodeBitMask)(this.nodeIds, core_1.MAX_NODES);
|
|
122
|
+
nodeBitMask.copy(this.payload, 3);
|
|
123
|
+
if (chipType) {
|
|
124
|
+
this.payload[3 + core_1.NUM_NODEMASK_BYTES] = chipType.type;
|
|
125
|
+
this.payload[3 + core_1.NUM_NODEMASK_BYTES + 1] = chipType.version;
|
|
126
|
+
}
|
|
127
|
+
return super.serialize();
|
|
68
128
|
}
|
|
69
129
|
};
|
|
70
130
|
GetSerialApiInitDataResponse = __decorate([
|
|
71
|
-
(0,
|
|
131
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetSerialApiInitData)
|
|
72
132
|
], GetSerialApiInitDataResponse);
|
|
73
133
|
exports.GetSerialApiInitDataResponse = GetSerialApiInitDataResponse;
|
|
134
|
+
// Z-Stick 7, 7.15
|
|
135
|
+
// 12:15:28.505 DRIVER « [RES] [GetSerialApiInitData]
|
|
136
|
+
// Z-Wave API Version: 9 (proprietary)
|
|
137
|
+
// node type: controller
|
|
138
|
+
// supports timers: false
|
|
139
|
+
// is secondary: false
|
|
140
|
+
// is SUC: true
|
|
141
|
+
// chip type: 7
|
|
142
|
+
// chip version: 0
|
|
143
|
+
// ACC-UZB3
|
|
144
|
+
// 12:21:11.141 DRIVER « [RES] [GetSerialApiInitData]
|
|
145
|
+
// Z-Wave API Version: 8 (proprietary)
|
|
146
|
+
// node type: controller
|
|
147
|
+
// supports timers: false
|
|
148
|
+
// is secondary: false
|
|
149
|
+
// is SUC: true
|
|
150
|
+
// chip type: 5
|
|
151
|
+
// chip version: 0
|
|
152
|
+
// UZB7, 7.11
|
|
153
|
+
// 12:33:14.211 DRIVER « [RES] [GetSerialApiInitData]
|
|
154
|
+
// Z-Wave API Version: 8 (proprietary)
|
|
155
|
+
// node type: controller
|
|
156
|
+
// supports timers: false
|
|
157
|
+
// is secondary: false
|
|
158
|
+
// is SUC: true
|
|
159
|
+
// chip type: 7
|
|
160
|
+
// chip version: 0
|
|
74
161
|
//# sourceMappingURL=GetSerialApiInitDataMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSerialApiInitDataMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"GetSerialApiInitDataMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAKwB;AAExB,6CAW0B;AAC1B,8DAAgE;AAChE,oEAIyC;AAMzC,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,gBAAO;CAAG,CAAA;AAA9C,2BAA2B;IAHvC,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,oBAAoB,CAAC;IACpE,IAAA,yBAAgB,EAAC,qBAAY,CAAC,oBAAoB,CAAC;IACnD,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;GACxB,2BAA2B,CAAmB;AAA9C,kEAA2B;AAcxC,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,gBAAO;IACxD,YACC,IAAe,EACf,OAEsC;QAEtC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAErB,IAAI,IAAA,kCAAyB,EAAC,OAAO,CAAC,EAAE;YACvC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACnC,IAAI,UAAU,GAAG,EAAE,EAAE;gBACpB,IAAI,CAAC,eAAe,GAAG;oBACtB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,UAAU;iBACnB,CAAC;aACF;iBAAM;gBACN,qDAAqD;gBACrD,IAAI,CAAC,eAAe,GAAG;oBACtB,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,UAAU,GAAG,CAAC;iBACvB,CAAC;aACF;YACD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;YAE9B,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,C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G,yBAAkB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;YACrD,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,yBAAkB,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC;SAC5D;QAED,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CAwBD,CAAA;AA1JY,4BAA4B;IADxC,IAAA,qBAAY,EAAC,oBAAW,CAAC,QAAQ,EAAE,qBAAY,CAAC,oBAAoB,CAAC;GACzD,4BAA4B,CA0JxC;AA1JY,oEAA4B;AA4JzC,kBAAkB;AAClB,qDAAqD;AACrD,8DAA8D;AAC9D,yDAAyD;AACzD,oDAAoD;AACpD,oDAAoD;AACpD,mDAAmD;AACnD,gDAAgD;AAChD,gDAAgD;AAEhD,WAAW;AACX,qDAAqD;AACrD,8DAA8D;AAC9D,yDAAyD;AACzD,oDAAoD;AACpD,oDAAoD;AACpD,mDAAmD;AACnD,gDAAgD;AAChD,gDAAgD;AAEhD,aAAa;AACb,qDAAqD;AACrD,8DAA8D;AAC9D,yDAAyD;AACzD,oDAAoD;AACpD,oDAAoD;AACpD,mDAAmD;AACnD,gDAAgD;AAChD,gDAAgD"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import type { MessageOrCCLogEntry } from "@zwave-js/core";
|
|
3
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
4
|
+
import { Message, MessageDeserializationOptions, MessageOptions } from "@zwave-js/serial";
|
|
5
|
+
export declare class HardResetRequestBase extends Message {
|
|
6
|
+
constructor(host: ZWaveHost, options?: MessageOptions);
|
|
7
|
+
}
|
|
8
|
+
export declare class HardResetRequest extends HardResetRequestBase {
|
|
4
9
|
serialize(): Buffer;
|
|
10
|
+
toLogEntry(): MessageOrCCLogEntry;
|
|
11
|
+
}
|
|
12
|
+
export declare class HardResetCallback extends HardResetRequestBase {
|
|
13
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions);
|
|
14
|
+
toLogEntry(): MessageOrCCLogEntry;
|
|
5
15
|
}
|
|
6
16
|
//# sourceMappingURL=HardResetRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HardResetRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HardResetRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,6BAA6B,EAC7B,cAAc,EAKd,MAAM,kBAAkB,CAAC;AAE1B,qBAEa,oBAAqB,SAAQ,OAAO;gBAC7B,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,cAAc;CAS5D;AAED,qBACa,gBAAiB,SAAQ,oBAAoB;IAClD,SAAS,IAAI,MAAM;IAKnB,UAAU,IAAI,mBAAmB;CAQxC;AAED,qBAAa,iBAAkB,SAAQ,oBAAoB;gBAEzD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,6BAA6B;IAMhC,UAAU,IAAI,mBAAmB;CAQxC"}
|
|
@@ -6,23 +6,53 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.HardResetRequest = void 0;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
exports.HardResetCallback = exports.HardResetRequest = exports.HardResetRequestBase = void 0;
|
|
10
|
+
const serial_1 = require("@zwave-js/serial");
|
|
11
|
+
let HardResetRequestBase = class HardResetRequestBase extends serial_1.Message {
|
|
12
|
+
constructor(host, options) {
|
|
13
|
+
if ((0, serial_1.gotDeserializationOptions)(options) &&
|
|
14
|
+
new.target !== HardResetCallback) {
|
|
15
|
+
return new HardResetCallback(host, options);
|
|
16
|
+
}
|
|
17
|
+
super(host, options);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
HardResetRequestBase = __decorate([
|
|
21
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.HardReset),
|
|
22
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller)
|
|
23
|
+
], HardResetRequestBase);
|
|
24
|
+
exports.HardResetRequestBase = HardResetRequestBase;
|
|
25
|
+
let HardResetRequest = class HardResetRequest extends HardResetRequestBase {
|
|
16
26
|
serialize() {
|
|
17
27
|
this.payload = Buffer.from([this.callbackId]);
|
|
18
28
|
return super.serialize();
|
|
19
29
|
}
|
|
30
|
+
toLogEntry() {
|
|
31
|
+
return {
|
|
32
|
+
...super.toLogEntry(),
|
|
33
|
+
message: {
|
|
34
|
+
"callback id": this.callbackId,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
20
38
|
};
|
|
21
39
|
HardResetRequest = __decorate([
|
|
22
|
-
(0,
|
|
23
|
-
// This will be responded to with a HardResetRequest
|
|
24
|
-
,
|
|
25
|
-
(0, Message_1.priority)(Constants_1.MessagePriority.Controller)
|
|
40
|
+
(0, serial_1.expectedCallback)(serial_1.FunctionType.HardReset)
|
|
26
41
|
], HardResetRequest);
|
|
27
42
|
exports.HardResetRequest = HardResetRequest;
|
|
43
|
+
class HardResetCallback extends HardResetRequestBase {
|
|
44
|
+
constructor(host, options) {
|
|
45
|
+
super(host, options);
|
|
46
|
+
this.callbackId = this.payload[0];
|
|
47
|
+
}
|
|
48
|
+
toLogEntry() {
|
|
49
|
+
return {
|
|
50
|
+
...super.toLogEntry(),
|
|
51
|
+
message: {
|
|
52
|
+
"callback id": this.callbackId,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.HardResetCallback = HardResetCallback;
|
|
28
58
|
//# sourceMappingURL=HardResetRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HardResetRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"HardResetRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6CAW0B;AAI1B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAO;IAChD,YAAmB,IAAe,EAAE,OAAwB;QAC3D,IACC,IAAA,kCAAyB,EAAC,OAAO,CAAC;YACjC,GAAG,CAAC,MAAc,KAAK,iBAAiB,EACxC;YACD,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC5C;QACD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAA;AAVY,oBAAoB;IAFhC,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,SAAS,CAAC;IACzD,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;GACxB,oBAAoB,CAUhC;AAVY,oDAAoB;AAajC,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,oBAAoB;IAClD,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9C,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;IAEM,UAAU;QAChB,OAAO;YACN,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,OAAO,EAAE;gBACR,aAAa,EAAE,IAA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