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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { CommandClasses, MessageOrCCLogEntry } from "@zwave-js/core";
|
|
2
|
-
import type {
|
|
3
|
-
import { Message, MessageDeserializationOptions } from "
|
|
4
|
-
import { DeviceClass } from "../../node/DeviceClass";
|
|
3
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
4
|
+
import { Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
5
5
|
export declare enum SerialAPIWakeUpReason {
|
|
6
6
|
/** The Z-Wave API Module has been woken up by reset or external interrupt. */
|
|
7
7
|
Reset = 0,
|
|
@@ -26,16 +26,28 @@ export declare enum SerialAPIWakeUpReason {
|
|
|
26
26
|
/** The Z-Wave API Module has been woken up by an unknown reason. */
|
|
27
27
|
Unknown = 255
|
|
28
28
|
}
|
|
29
|
+
export interface SerialAPIStartedRequestOptions extends MessageBaseOptions {
|
|
30
|
+
wakeUpReason: SerialAPIWakeUpReason;
|
|
31
|
+
watchdogEnabled: boolean;
|
|
32
|
+
genericDeviceClass: number;
|
|
33
|
+
specificDeviceClass: number;
|
|
34
|
+
isListening: boolean;
|
|
35
|
+
supportedCCs: CommandClasses[];
|
|
36
|
+
controlledCCs: CommandClasses[];
|
|
37
|
+
supportsLongRange: boolean;
|
|
38
|
+
}
|
|
29
39
|
export declare class SerialAPIStartedRequest extends Message {
|
|
30
|
-
constructor(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly controlledCCs: readonly CommandClasses[];
|
|
36
|
-
readonly supportsLongRange: boolean;
|
|
40
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions | SerialAPIStartedRequestOptions);
|
|
41
|
+
wakeUpReason: SerialAPIWakeUpReason;
|
|
42
|
+
watchdogEnabled: boolean;
|
|
43
|
+
genericDeviceClass: number;
|
|
44
|
+
specificDeviceClass: number;
|
|
37
45
|
/** Whether this node is always listening or not */
|
|
38
|
-
|
|
46
|
+
isListening: boolean;
|
|
47
|
+
supportedCCs: CommandClasses[];
|
|
48
|
+
controlledCCs: CommandClasses[];
|
|
49
|
+
supportsLongRange: boolean;
|
|
50
|
+
serialize(): Buffer;
|
|
39
51
|
toLogEntry(): MessageOrCCLogEntry;
|
|
40
52
|
}
|
|
41
53
|
//# sourceMappingURL=SerialAPIStartedRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerialAPIStartedRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/application/SerialAPIStartedRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EAEd,mBAAmB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SerialAPIStartedRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/application/SerialAPIStartedRequest.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,cAAc,EAEd,mBAAmB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAGN,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAG1B,oBAAY,qBAAqB;IAChC,8EAA8E;IAC9E,KAAK,IAAO;IACZ,0DAA0D;IAC1D,WAAW,IAAO;IAClB,iEAAiE;IACjE,UAAU,IAAO;IACjB,oFAAoF;IACpF,aAAa,IAAO;IACpB,wEAAwE;IACxE,iBAAiB,IAAO;IACxB,gEAAgE;IAChE,OAAO,IAAO;IACd,8DAA8D;IAC9D,UAAU,IAAO;IACjB,gFAAgF;IAChF,aAAa,IAAO;IACpB,8EAA8E;IAC9E,sBAAsB,IAAO;IAC7B,wFAAwF;IACxF,eAAe,IAAO;IACtB,oEAAoE;IACpE,OAAO,MAAO;CACd;AAED,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;IACzE,YAAY,EAAE,qBAAqB,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,iBAAiB,EAAE,OAAO,CAAC;CAC3B;AAED,qBAGa,uBAAwB,SAAQ,OAAO;gBAElD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,6BAA6B,GAAG,8BAA8B;IAsCjE,YAAY,EAAE,qBAAqB,CAAC;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IACnC,mDAAmD;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC,iBAAiB,EAAE,OAAO,CAAS;IAEnC,SAAS,IAAI,MAAM;IAiBnB,UAAU,IAAI,mBAAmB;CAuBxC"}
|
|
@@ -8,9 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SerialAPIStartedRequest = exports.SerialAPIWakeUpReason = void 0;
|
|
10
10
|
const core_1 = require("@zwave-js/core");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const DeviceClass_1 = require("../../node/DeviceClass");
|
|
11
|
+
const serial_1 = require("@zwave-js/serial");
|
|
12
|
+
const shared_1 = require("@zwave-js/shared");
|
|
14
13
|
var SerialAPIWakeUpReason;
|
|
15
14
|
(function (SerialAPIWakeUpReason) {
|
|
16
15
|
/** The Z-Wave API Module has been woken up by reset or external interrupt. */
|
|
@@ -36,56 +35,80 @@ var SerialAPIWakeUpReason;
|
|
|
36
35
|
/** The Z-Wave API Module has been woken up by an unknown reason. */
|
|
37
36
|
SerialAPIWakeUpReason[SerialAPIWakeUpReason["Unknown"] = 255] = "Unknown";
|
|
38
37
|
})(SerialAPIWakeUpReason = exports.SerialAPIWakeUpReason || (exports.SerialAPIWakeUpReason = {}));
|
|
39
|
-
let SerialAPIStartedRequest = class SerialAPIStartedRequest extends
|
|
40
|
-
constructor(
|
|
41
|
-
super(
|
|
38
|
+
let SerialAPIStartedRequest = class SerialAPIStartedRequest extends serial_1.Message {
|
|
39
|
+
constructor(host, options) {
|
|
40
|
+
super(host, options);
|
|
42
41
|
this.supportsLongRange = false;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
this.supportsLongRange = !!(protocols & 0b1);
|
|
42
|
+
if ((0, serial_1.gotDeserializationOptions)(options)) {
|
|
43
|
+
this.wakeUpReason = this.payload[0];
|
|
44
|
+
this.watchdogEnabled = this.payload[1] === 0x01;
|
|
45
|
+
const deviceOption = this.payload[2];
|
|
46
|
+
this.isListening = !!(deviceOption & 128);
|
|
47
|
+
this.genericDeviceClass = this.payload[3];
|
|
48
|
+
this.specificDeviceClass = this.payload[4];
|
|
49
|
+
// Parse list of CCs
|
|
50
|
+
const numCCBytes = this.payload[5];
|
|
51
|
+
const ccBytes = this.payload.slice(6, 6 + numCCBytes);
|
|
52
|
+
const ccList = (0, core_1.parseCCList)(ccBytes);
|
|
53
|
+
this.supportedCCs = ccList.supportedCCs;
|
|
54
|
+
this.controlledCCs = ccList.controlledCCs;
|
|
55
|
+
// Parse supported protocols
|
|
56
|
+
if (this.payload.length >= 6 + numCCBytes + 1) {
|
|
57
|
+
const protocols = this.payload[6 + numCCBytes];
|
|
58
|
+
this.supportsLongRange = !!(protocols & 0b1);
|
|
59
|
+
}
|
|
62
60
|
}
|
|
61
|
+
else {
|
|
62
|
+
this.wakeUpReason = options.wakeUpReason;
|
|
63
|
+
this.watchdogEnabled = options.watchdogEnabled;
|
|
64
|
+
this.isListening = options.isListening;
|
|
65
|
+
this.genericDeviceClass = options.genericDeviceClass;
|
|
66
|
+
this.specificDeviceClass = options.specificDeviceClass;
|
|
67
|
+
this.supportedCCs = options.supportedCCs;
|
|
68
|
+
this.controlledCCs = options.controlledCCs;
|
|
69
|
+
this.supportsLongRange = options.supportsLongRange;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
serialize() {
|
|
73
|
+
const ccList = (0, core_1.encodeCCList)(this.supportedCCs, this.controlledCCs);
|
|
74
|
+
const numCCBytes = ccList.length;
|
|
75
|
+
this.payload = Buffer.allocUnsafe(6 + numCCBytes + 1);
|
|
76
|
+
this.payload[0] = this.wakeUpReason;
|
|
77
|
+
this.payload[1] = this.watchdogEnabled ? 0b1 : 0;
|
|
78
|
+
this.payload[2] = this.isListening ? 128 : 0;
|
|
79
|
+
this.payload[3] = this.genericDeviceClass;
|
|
80
|
+
this.payload[4] = this.specificDeviceClass;
|
|
81
|
+
this.payload[5] = numCCBytes;
|
|
82
|
+
ccList.copy(this.payload, 6);
|
|
83
|
+
this.payload[6 + numCCBytes] = this.supportsLongRange ? 0b1 : 0;
|
|
84
|
+
return super.serialize();
|
|
63
85
|
}
|
|
64
86
|
toLogEntry() {
|
|
65
87
|
return {
|
|
66
88
|
...super.toLogEntry(),
|
|
67
89
|
message: {
|
|
68
|
-
"wake up reason": this.wakeUpReason,
|
|
90
|
+
"wake up reason": (0, shared_1.getEnumMemberName)(SerialAPIWakeUpReason, this.wakeUpReason),
|
|
69
91
|
"watchdog enabled": this.watchdogEnabled,
|
|
70
|
-
"generic device class": this.
|
|
71
|
-
"specific device class": this.
|
|
92
|
+
"generic device class": (0, shared_1.num2hex)(this.genericDeviceClass),
|
|
93
|
+
"specific device class": (0, shared_1.num2hex)(this.specificDeviceClass),
|
|
72
94
|
"always listening": this.isListening,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
95
|
+
// Not sure why this information is needed here. At the very least it stretches the log
|
|
96
|
+
// "supported CCs": this.supportedCCs
|
|
97
|
+
// .map((cc) => `\n· ${getCCName(cc)}`)
|
|
98
|
+
// .join(""),
|
|
99
|
+
// "controlled CCs": this.controlledCCs
|
|
100
|
+
// .map((cc) => `\n· ${getCCName(cc)}`)
|
|
101
|
+
// .join(""),
|
|
79
102
|
"supports Long Range": this.supportsLongRange,
|
|
80
103
|
},
|
|
81
104
|
};
|
|
82
105
|
}
|
|
83
106
|
};
|
|
84
107
|
SerialAPIStartedRequest = __decorate([
|
|
85
|
-
(0,
|
|
108
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.SerialAPIStarted)
|
|
86
109
|
// This does not expect a response. The controller sends us this when the Serial API is started
|
|
87
110
|
,
|
|
88
|
-
(0,
|
|
111
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Normal)
|
|
89
112
|
], SerialAPIStartedRequest);
|
|
90
113
|
exports.SerialAPIStartedRequest = SerialAPIStartedRequest;
|
|
91
114
|
//# sourceMappingURL=SerialAPIStartedRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerialAPIStartedRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/application/SerialAPIStartedRequest.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAKwB;AAExB,
|
|
1
|
+
{"version":3,"file":"SerialAPIStartedRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/application/SerialAPIStartedRequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import { Message, MessageDeserializationOptions } from "
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
3
|
+
import { Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
4
4
|
export declare class GetControllerCapabilitiesRequest extends Message {
|
|
5
5
|
}
|
|
6
|
+
export interface GetControllerCapabilitiesResponseOptions extends MessageBaseOptions {
|
|
7
|
+
isSecondary: boolean;
|
|
8
|
+
isUsingHomeIdFromOtherNetwork: boolean;
|
|
9
|
+
isSISPresent: boolean;
|
|
10
|
+
wasRealPrimary: boolean;
|
|
11
|
+
isStaticUpdateController: boolean;
|
|
12
|
+
}
|
|
6
13
|
export declare class GetControllerCapabilitiesResponse extends Message {
|
|
7
|
-
constructor(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
toJSON(): JSONObject;
|
|
14
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions | GetControllerCapabilitiesResponseOptions);
|
|
15
|
+
isSecondary: boolean;
|
|
16
|
+
isUsingHomeIdFromOtherNetwork: boolean;
|
|
17
|
+
isSISPresent: boolean;
|
|
18
|
+
wasRealPrimary: boolean;
|
|
19
|
+
isStaticUpdateController: boolean;
|
|
20
|
+
serialize(): Buffer;
|
|
15
21
|
}
|
|
16
22
|
//# sourceMappingURL=GetControllerCapabilitiesMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetControllerCapabilitiesMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerCapabilitiesMessages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GetControllerCapabilitiesMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerCapabilitiesMessages.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,qBAGa,gCAAiC,SAAQ,OAAO;CAAG;AAEhE,MAAM,WAAW,wCAChB,SAAQ,kBAAkB;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,6BAA6B,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,wBAAwB,EAAE,OAAO,CAAC;CAClC;AAED,qBACa,iCAAkC,SAAQ,OAAO;gBAE5D,IAAI,EAAE,SAAS,EACf,OAAO,EACJ,6BAA6B,GAC7B,wCAAwC;IA+BrC,WAAW,EAAE,OAAO,CAAC;IACrB,6BAA6B,EAAE,OAAO,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,wBAAwB,EAAE,OAAO,CAAC;IAElC,SAAS,IAAI,MAAM;CAgB1B"}
|
|
@@ -8,48 +8,54 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GetControllerCapabilitiesResponse = exports.GetControllerCapabilitiesRequest = void 0;
|
|
10
10
|
const core_1 = require("@zwave-js/core");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
let GetControllerCapabilitiesRequest = class GetControllerCapabilitiesRequest extends Message_1.Message {
|
|
11
|
+
const serial_1 = require("@zwave-js/serial");
|
|
12
|
+
let GetControllerCapabilitiesRequest = class GetControllerCapabilitiesRequest extends serial_1.Message {
|
|
14
13
|
};
|
|
15
14
|
GetControllerCapabilitiesRequest = __decorate([
|
|
16
|
-
(0,
|
|
17
|
-
(0,
|
|
18
|
-
(0,
|
|
15
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetControllerCapabilities),
|
|
16
|
+
(0, serial_1.expectedResponse)(serial_1.FunctionType.GetControllerCapabilities),
|
|
17
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller)
|
|
19
18
|
], GetControllerCapabilitiesRequest);
|
|
20
19
|
exports.GetControllerCapabilitiesRequest = GetControllerCapabilitiesRequest;
|
|
21
|
-
let GetControllerCapabilitiesResponse = class GetControllerCapabilitiesResponse extends
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
24
|
-
|
|
20
|
+
let GetControllerCapabilitiesResponse = class GetControllerCapabilitiesResponse extends serial_1.Message {
|
|
21
|
+
constructor(host, options) {
|
|
22
|
+
super(host, options);
|
|
23
|
+
if ((0, serial_1.gotDeserializationOptions)(options)) {
|
|
24
|
+
const capabilityFlags = this.payload[0];
|
|
25
|
+
this.isSecondary = !!(capabilityFlags & core_1.ControllerCapabilityFlags.Secondary);
|
|
26
|
+
this.isUsingHomeIdFromOtherNetwork = !!(capabilityFlags & core_1.ControllerCapabilityFlags.OnOtherNetwork);
|
|
27
|
+
this.isSISPresent = !!(capabilityFlags & core_1.ControllerCapabilityFlags.SISPresent);
|
|
28
|
+
this.wasRealPrimary = !!(capabilityFlags & core_1.ControllerCapabilityFlags.WasRealPrimary);
|
|
29
|
+
this.isStaticUpdateController = !!(capabilityFlags & core_1.ControllerCapabilityFlags.SUC);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.isSecondary = options.isSecondary;
|
|
33
|
+
this.isUsingHomeIdFromOtherNetwork =
|
|
34
|
+
options.isUsingHomeIdFromOtherNetwork;
|
|
35
|
+
this.isSISPresent = options.isSISPresent;
|
|
36
|
+
this.wasRealPrimary = options.wasRealPrimary;
|
|
37
|
+
this.isStaticUpdateController = options.isStaticUpdateController;
|
|
38
|
+
}
|
|
25
39
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
toJSON() {
|
|
42
|
-
return super.toJSONInherited({
|
|
43
|
-
isSecondary: this.isSecondary,
|
|
44
|
-
isUsingHomeIdFromOtherNetwork: this.isUsingHomeIdFromOtherNetwork,
|
|
45
|
-
isSISPresent: this.isSISPresent,
|
|
46
|
-
wasRealPrimary: this.wasRealPrimary,
|
|
47
|
-
isStaticUpdateController: this.isStaticUpdateController,
|
|
48
|
-
});
|
|
40
|
+
serialize() {
|
|
41
|
+
this.payload = Buffer.from([
|
|
42
|
+
(this.isSecondary ? core_1.ControllerCapabilityFlags.Secondary : 0) |
|
|
43
|
+
(this.isUsingHomeIdFromOtherNetwork
|
|
44
|
+
? core_1.ControllerCapabilityFlags.OnOtherNetwork
|
|
45
|
+
: 0) |
|
|
46
|
+
(this.isSISPresent ? core_1.ControllerCapabilityFlags.SISPresent : 0) |
|
|
47
|
+
(this.wasRealPrimary
|
|
48
|
+
? core_1.ControllerCapabilityFlags.WasRealPrimary
|
|
49
|
+
: 0) |
|
|
50
|
+
(this.isStaticUpdateController
|
|
51
|
+
? core_1.ControllerCapabilityFlags.SUC
|
|
52
|
+
: 0),
|
|
53
|
+
]);
|
|
54
|
+
return super.serialize();
|
|
49
55
|
}
|
|
50
56
|
};
|
|
51
57
|
GetControllerCapabilitiesResponse = __decorate([
|
|
52
|
-
(0,
|
|
58
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetControllerCapabilities)
|
|
53
59
|
], GetControllerCapabilitiesResponse);
|
|
54
60
|
exports.GetControllerCapabilitiesResponse = GetControllerCapabilitiesResponse;
|
|
55
61
|
//# sourceMappingURL=GetControllerCapabilitiesMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetControllerCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA2D;
|
|
1
|
+
{"version":3,"file":"GetControllerCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA2D;AAE3D,6CAW0B;AAK1B,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAAO;CAAG,CAAA;AAAnD,gCAAgC;IAH5C,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,yBAAyB,CAAC;IACzE,IAAA,yBAAgB,EAAC,qBAAY,CAAC,yBAAyB,CAAC;IACxD,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;GACxB,gCAAgC,CAAmB;AAAnD,4EAAgC;AAY7C,IAAa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,gBAAO;IAC7D,YACC,IAAe,EACf,OAE2C;QAE3C,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAErB,IAAI,IAAA,kCAAyB,EAAC,OAAO,CAAC,EAAE;YACvC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACxC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CACpB,eAAe,GAAG,gCAAyB,CAAC,SAAS,CACrD,CAAC;YACF,IAAI,CAAC,6BAA6B,GAAG,CAAC,CAAC,CACtC,eAAe,GAAG,gCAAyB,CAAC,cAAc,CAC1D,CAAC;YACF,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CACrB,eAAe,GAAG,gCAAyB,CAAC,UAAU,CACtD,CAAC;YACF,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,CACvB,eAAe,GAAG,gCAAyB,CAAC,cAAc,CAC1D,CAAC;YACF,IAAI,CAAC,wBAAwB,GAAG,CAAC,CAAC,CACjC,eAAe,GAAG,gCAAyB,CAAC,GAAG,CAC/C,CAAC;SACF;aAAM;YACN,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;YACvC,IAAI,CAAC,6BAA6B;gBACjC,OAAO,CAAC,6BAA6B,CAAC;YACvC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;YACzC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;YAC7C,IAAI,CAAC,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;SACjE;IACF,CAAC;IAQM,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC;YAC1B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,gCAAyB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3D,CAAC,IAAI,CAAC,6BAA6B;oBAClC,CAAC,CAAC,gCAAyB,CAAC,cAAc;oBAC1C,CAAC,CAAC,CAAC,CAAC;gBACL,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,gCAAyB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC9D,CAAC,IAAI,CAAC,cAAc;oBACnB,CAAC,CAAC,gCAAyB,CAAC,cAAc;oBAC1C,CAAC,CAAC,CAAC,CAAC;gBACL,CAAC,IAAI,CAAC,wBAAwB;oBAC7B,CAAC,CAAC,gCAAyB,CAAC,GAAG;oBAC/B,CAAC,CAAC,CAAC,CAAC;SACN,CAAC,CAAC;QACH,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACD,CAAA;AA1DY,iCAAiC;IAD7C,IAAA,qBAAY,EAAC,oBAAW,CAAC,QAAQ,EAAE,qBAAY,CAAC,yBAAyB,CAAC;GAC9D,iCAAiC,CA0D7C;AA1DY,8EAAiC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import { Message, MessageDeserializationOptions } from "
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
3
|
+
import { Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
4
4
|
import type { ZWaveLibraryTypes } from "../_Types";
|
|
5
5
|
export declare class GetControllerVersionRequest extends Message {
|
|
6
6
|
}
|
|
7
|
+
export interface GetControllerVersionResponseOptions extends MessageBaseOptions {
|
|
8
|
+
controllerType: ZWaveLibraryTypes;
|
|
9
|
+
libraryVersion: string;
|
|
10
|
+
}
|
|
7
11
|
export declare class GetControllerVersionResponse extends Message {
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
get sdkVersion(): string;
|
|
13
|
-
toJSON(): JSONObject;
|
|
12
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions | GetControllerVersionResponseOptions);
|
|
13
|
+
controllerType: ZWaveLibraryTypes;
|
|
14
|
+
libraryVersion: string;
|
|
15
|
+
serialize(): Buffer;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=GetControllerVersionMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetControllerVersionMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerVersionMessages.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GetControllerVersionMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerVersionMessages.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,qBAGa,2BAA4B,SAAQ,OAAO;CAAG;AAE3D,MAAM,WAAW,mCAChB,SAAQ,kBAAkB;IAC1B,cAAc,EAAE,iBAAiB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,4BAA6B,SAAQ,OAAO;gBAEvD,IAAI,EAAE,SAAS,EACf,OAAO,EACJ,6BAA6B,GAC7B,mCAAmC;IAchC,cAAc,EAAE,iBAAiB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,IAAI,MAAM;CAQ1B"}
|
|
@@ -7,39 +7,39 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GetControllerVersionResponse = exports.GetControllerVersionRequest = void 0;
|
|
10
|
+
const serial_1 = require("@zwave-js/serial");
|
|
10
11
|
const shared_1 = require("@zwave-js/shared");
|
|
11
|
-
|
|
12
|
-
const Message_1 = require("../../message/Message");
|
|
13
|
-
let GetControllerVersionRequest = class GetControllerVersionRequest extends Message_1.Message {
|
|
12
|
+
let GetControllerVersionRequest = class GetControllerVersionRequest extends serial_1.Message {
|
|
14
13
|
};
|
|
15
14
|
GetControllerVersionRequest = __decorate([
|
|
16
|
-
(0,
|
|
17
|
-
(0,
|
|
18
|
-
(0,
|
|
15
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetControllerVersion),
|
|
16
|
+
(0, serial_1.expectedResponse)(serial_1.FunctionType.GetControllerVersion),
|
|
17
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller)
|
|
19
18
|
], GetControllerVersionRequest);
|
|
20
19
|
exports.GetControllerVersionRequest = GetControllerVersionRequest;
|
|
21
|
-
let GetControllerVersionResponse = class GetControllerVersionResponse extends
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
let GetControllerVersionResponse = class GetControllerVersionResponse extends serial_1.Message {
|
|
21
|
+
constructor(host, options) {
|
|
22
|
+
super(host, options);
|
|
23
|
+
if ((0, serial_1.gotDeserializationOptions)(options)) {
|
|
24
|
+
// The payload consists of a zero-terminated string and a uint8 for the controller type
|
|
25
|
+
this.libraryVersion = (0, shared_1.cpp2js)(this.payload.toString("ascii"));
|
|
26
|
+
this.controllerType = this.payload[this.libraryVersion.length + 1];
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.controllerType = options.controllerType;
|
|
30
|
+
this.libraryVersion = options.libraryVersion;
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
toJSON() {
|
|
35
|
-
return super.toJSONInherited({
|
|
36
|
-
controllerType: this.controllerType,
|
|
37
|
-
sdkVersion: this.sdkVersion,
|
|
38
|
-
});
|
|
33
|
+
serialize() {
|
|
34
|
+
this.payload = Buffer.concat([
|
|
35
|
+
Buffer.from(`${this.libraryVersion}\0`, "ascii"),
|
|
36
|
+
Buffer.from([this.controllerType]),
|
|
37
|
+
]);
|
|
38
|
+
return super.serialize();
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
GetControllerVersionResponse = __decorate([
|
|
42
|
-
(0,
|
|
42
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetControllerVersion)
|
|
43
43
|
], GetControllerVersionResponse);
|
|
44
44
|
exports.GetControllerVersionResponse = GetControllerVersionResponse;
|
|
45
45
|
//# sourceMappingURL=GetControllerVersionMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetControllerVersionMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerVersionMessages.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GetControllerVersionMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetControllerVersionMessages.ts"],"names":[],"mappings":";;;;;;;;;AACA,6CAW0B;AAC1B,6CAA0C;AAM1C,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;AASxC,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,uFAAuF;YACvF,IAAI,CAAC,cAAc,GAAG,IAAA,eAAM,EAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7D,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SACnE;aAAM;YACN,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;YAC7C,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC7C;IACF,CAAC;IAKM,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,cAAc,IAAI,EAAE,OAAO,CAAC;YAChD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SAClC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACD,CAAA;AA9BY,4BAA4B;IADxC,IAAA,qBAAY,EAAC,oBAAW,CAAC,QAAQ,EAAE,qBAAY,CAAC,oBAAoB,CAAC;GACzD,4BAA4B,CA8BxC;AA9BY,oEAA4B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ProtocolType } from "@zwave-js/core";
|
|
2
|
-
import type {
|
|
3
|
-
import { Message, MessageDeserializationOptions } from "
|
|
2
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
3
|
+
import { Message, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
4
4
|
export declare class GetProtocolVersionRequest extends Message {
|
|
5
5
|
}
|
|
6
6
|
export declare class GetProtocolVersionResponse extends Message {
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions);
|
|
8
8
|
readonly protocolType: ProtocolType;
|
|
9
9
|
readonly protocolVersion: string;
|
|
10
10
|
readonly applicationFrameworkBuildNumber?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetProtocolVersionMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetProtocolVersionMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GetProtocolVersionMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetProtocolVersionMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAGN,OAAO,EACP,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,qBAGa,yBAA0B,SAAQ,OAAO;CAAG;AAEzD,qBACa,0BAA2B,SAAQ,OAAO;gBAErD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,6BAA6B;IAqBvC,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAgB,eAAe,EAAE,MAAM,CAAC;IACxC,SAAgB,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzD,SAAgB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvC"}
|
|
@@ -7,19 +7,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GetProtocolVersionResponse = exports.GetProtocolVersionRequest = void 0;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
let GetProtocolVersionRequest = class GetProtocolVersionRequest extends Message_1.Message {
|
|
10
|
+
const serial_1 = require("@zwave-js/serial");
|
|
11
|
+
let GetProtocolVersionRequest = class GetProtocolVersionRequest extends serial_1.Message {
|
|
13
12
|
};
|
|
14
13
|
GetProtocolVersionRequest = __decorate([
|
|
15
|
-
(0,
|
|
16
|
-
(0,
|
|
17
|
-
(0,
|
|
14
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetProtocolVersion),
|
|
15
|
+
(0, serial_1.priority)(serial_1.MessagePriority.Controller),
|
|
16
|
+
(0, serial_1.expectedResponse)(serial_1.FunctionType.GetProtocolVersion)
|
|
18
17
|
], GetProtocolVersionRequest);
|
|
19
18
|
exports.GetProtocolVersionRequest = GetProtocolVersionRequest;
|
|
20
|
-
let GetProtocolVersionResponse = class GetProtocolVersionResponse extends
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
19
|
+
let GetProtocolVersionResponse = class GetProtocolVersionResponse extends serial_1.Message {
|
|
20
|
+
constructor(host, options) {
|
|
21
|
+
super(host, options);
|
|
23
22
|
this.protocolType = this.payload[0];
|
|
24
23
|
this.protocolVersion = [
|
|
25
24
|
this.payload[1],
|
|
@@ -40,7 +39,7 @@ let GetProtocolVersionResponse = class GetProtocolVersionResponse extends Messag
|
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
GetProtocolVersionResponse = __decorate([
|
|
43
|
-
(0,
|
|
42
|
+
(0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetProtocolVersion)
|
|
44
43
|
], GetProtocolVersionResponse);
|
|
45
44
|
exports.GetProtocolVersionResponse = GetProtocolVersionResponse;
|
|
46
45
|
//# sourceMappingURL=GetProtocolVersionMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetProtocolVersionMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetProtocolVersionMessages.ts"],"names":[],"mappings":";;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"GetProtocolVersionMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetProtocolVersionMessages.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6CAS0B;AAK1B,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,gBAAO;CAAG,CAAA;AAA5C,yBAAyB;IAHrC,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,kBAAkB,CAAC;IAClE,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;IACpC,IAAA,yBAAgB,EAAC,qBAAY,CAAC,kBAAkB,CAAC;GACrC,yBAAyB,CAAmB;AAA5C,8DAAyB;AAGtC,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,gBAAO;IACtD,YACC,IAAe,EACf,OAAsC;QAEtC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG;YACtB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;SACf,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE;YAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAC9C,IAAI,QAAQ,KAAK,CAAC;gBAAE,IAAI,CAAC,+BAA+B,GAAG,QAAQ,CAAC;SACpE;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,EAAE;YAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE;gBACtC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;aAChD;SACD;IACF,CAAC;CAMD,CAAA;AA5BY,0BAA0B;IADtC,IAAA,qBAAY,EAAC,oBAAW,CAAC,QAAQ,EAAE,qBAAY,CAAC,kBAAkB,CAAC;GACvD,0BAA0B,CA4BtC;AA5BY,gEAA0B"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import { FunctionType } from "
|
|
4
|
-
import { Message, MessageDeserializationOptions } from "../../message/Message";
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ZWaveHost } from "@zwave-js/host";
|
|
3
|
+
import { FunctionType, Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
|
|
5
4
|
export declare class GetSerialApiCapabilitiesRequest extends Message {
|
|
6
5
|
}
|
|
6
|
+
export interface GetSerialApiCapabilitiesResponseOptions extends MessageBaseOptions {
|
|
7
|
+
firmwareVersion: string;
|
|
8
|
+
manufacturerId: number;
|
|
9
|
+
productType: number;
|
|
10
|
+
productId: number;
|
|
11
|
+
supportedFunctionTypes: FunctionType[];
|
|
12
|
+
}
|
|
7
13
|
export declare class GetSerialApiCapabilitiesResponse extends Message {
|
|
8
|
-
constructor(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private _productId;
|
|
16
|
-
get productId(): number;
|
|
17
|
-
private _supportedFunctionTypes;
|
|
18
|
-
get supportedFunctionTypes(): FunctionType[];
|
|
19
|
-
toJSON(): JSONObject;
|
|
14
|
+
constructor(host: ZWaveHost, options: MessageDeserializationOptions | GetSerialApiCapabilitiesResponseOptions);
|
|
15
|
+
firmwareVersion: string;
|
|
16
|
+
manufacturerId: number;
|
|
17
|
+
productType: number;
|
|
18
|
+
productId: number;
|
|
19
|
+
supportedFunctionTypes: FunctionType[];
|
|
20
|
+
serialize(): Buffer;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=GetSerialApiCapabilitiesMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetSerialApiCapabilitiesMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GetSerialApiCapabilitiesMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAEN,YAAY,EAEZ,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAK1B,qBAGa,+BAAgC,SAAQ,OAAO;CAAG;AAE/D,MAAM,WAAW,uCAChB,SAAQ,kBAAkB;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,YAAY,EAAE,CAAC;CACvC;AAED,qBACa,gCAAiC,SAAQ,OAAO;gBAE3D,IAAI,EAAE,SAAS,EACf,OAAO,EACJ,6BAA6B,GAC7B,uCAAuC;IAyBpC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,YAAY,EAAE,CAAC;IAEvC,SAAS,IAAI,MAAM;CAqB1B"}
|