@zwave-js/cc 11.13.0 → 11.14.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/cc/AlarmSensorCC.d.ts +1 -1
- package/build/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/cc/AlarmSensorCC.js +4 -4
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.d.ts +2 -2
- package/build/cc/AssociationCC.d.ts.map +1 -1
- package/build/cc/AssociationCC.js +8 -6
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +1 -1
- package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +19 -18
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.d.ts +2 -2
- package/build/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/cc/BarrierOperatorCC.js +10 -7
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.d.ts +2 -2
- package/build/cc/BasicCC.d.ts.map +1 -1
- package/build/cc/BasicCC.js +12 -11
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.d.ts +1 -1
- package/build/cc/BatteryCC.d.ts.map +1 -1
- package/build/cc/BatteryCC.js +17 -16
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.d.ts +1 -1
- package/build/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/cc/BinarySensorCC.js +3 -3
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.d.ts +2 -2
- package/build/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/cc/BinarySwitchCC.js +4 -2
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.d.ts +1 -1
- package/build/cc/CRC16CC.d.ts.map +1 -1
- package/build/cc/CRC16CC.js +4 -4
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.d.ts +2 -2
- package/build/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/cc/CentralSceneCC.js +5 -5
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +2 -2
- package/build/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +6 -6
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.d.ts +1 -1
- package/build/cc/ClockCC.d.ts.map +1 -1
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.d.ts +3 -3
- package/build/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/cc/ColorSwitchCC.js +25 -22
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.d.ts +4 -4
- package/build/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/cc/ConfigurationCC.js +91 -86
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/cc/DoorLockCC.d.ts +3 -3
- package/build/cc/DoorLockCC.d.ts.map +1 -1
- package/build/cc/DoorLockCC.js +15 -12
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +4 -4
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts +1 -1
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.d.ts +2 -2
- package/build/cc/EntryControlCC.d.ts.map +1 -1
- package/build/cc/EntryControlCC.js +5 -6
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +2 -2
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +16 -12
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.d.ts +2 -2
- package/build/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/cc/HumidityControlModeCC.js +2 -2
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +2 -2
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +3 -3
- package/build/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +15 -13
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.d.ts +1 -1
- package/build/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/cc/IndicatorCC.d.ts +2 -2
- package/build/cc/IndicatorCC.d.ts.map +1 -1
- package/build/cc/IndicatorCC.js +38 -25
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.d.ts +2 -2
- package/build/cc/IrrigationCC.d.ts.map +1 -1
- package/build/cc/IrrigationCC.js +48 -46
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.d.ts +1 -1
- package/build/cc/LanguageCC.d.ts.map +1 -1
- package/build/cc/LanguageCC.js +2 -2
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.d.ts +2 -2
- package/build/cc/LockCC.d.ts.map +1 -1
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +1 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +9 -9
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +1 -1
- package/build/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +8 -9
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.d.ts +18 -14
- package/build/cc/MeterCC.d.ts.map +1 -1
- package/build/cc/MeterCC.js +102 -81
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +2 -2
- package/build/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +18 -16
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.d.ts +2 -2
- package/build/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/cc/MultiChannelCC.js +39 -33
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.d.ts +1 -1
- package/build/cc/MultiCommandCC.d.ts.map +1 -1
- package/build/cc/MultiCommandCC.js +2 -2
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.d.ts +1 -1
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/cc/MultilevelSensorCC.js +29 -26
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.d.ts +2 -2
- package/build/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +20 -18
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NodeNamingCC.d.ts +2 -2
- package/build/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.d.ts +1 -1
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +86 -77
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.d.ts +1 -1
- package/build/cc/PowerlevelCC.d.ts.map +1 -1
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.d.ts +3 -3
- package/build/cc/ProtectionCC.d.ts.map +1 -1
- package/build/cc/ProtectionCC.js +4 -4
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.d.ts +1 -1
- package/build/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +2 -2
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +15 -12
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +2 -2
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +21 -16
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +2 -2
- package/build/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +27 -11
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.d.ts +2 -2
- package/build/cc/Security2CC.d.ts.map +1 -1
- package/build/cc/Security2CC.js +59 -52
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.d.ts +1 -1
- package/build/cc/SecurityCC.d.ts.map +1 -1
- package/build/cc/SecurityCC.js +9 -7
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts +2 -2
- package/build/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/cc/SoundSwitchCC.js +4 -4
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.d.ts +2 -2
- package/build/cc/SupervisionCC.d.ts.map +1 -1
- package/build/cc/SupervisionCC.js +17 -17
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.d.ts +2 -2
- package/build/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +2 -2
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +2 -2
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.d.ts +2 -2
- package/build/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/cc/ThermostatModeCC.js +14 -13
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.d.ts +2 -2
- package/build/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +2 -2
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.d.ts +2 -2
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +20 -7
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.d.ts +1 -1
- package/build/cc/TimeCC.d.ts.map +1 -1
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.d.ts +2 -2
- package/build/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/cc/TimeParametersCC.js +4 -2
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.d.ts +1 -1
- package/build/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/cc/TransportServiceCC.js +33 -31
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.d.ts +2 -2
- package/build/cc/UserCodeCC.d.ts.map +1 -1
- package/build/cc/UserCodeCC.js +32 -31
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.d.ts +2 -2
- package/build/cc/VersionCC.d.ts.map +1 -1
- package/build/cc/VersionCC.js +2 -2
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.d.ts +2 -2
- package/build/cc/WakeUpCC.d.ts.map +1 -1
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.d.ts +3 -3
- package/build/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/cc/WindowCoveringCC.js +16 -15
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.d.ts +1 -1
- package/build/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts +3 -3
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +18 -5
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/index.d.ts +3 -3
- package/build/cc/index.d.ts.map +1 -1
- package/build/cc/index.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +2 -2
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +6 -6
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/lib/API.d.ts +64 -64
- package/build/lib/API.d.ts.map +1 -1
- package/build/lib/API.js +19 -19
- package/build/lib/API.js.map +1 -1
- package/build/lib/CommandClass.d.ts +1 -1
- package/build/lib/CommandClass.d.ts.map +1 -1
- package/build/lib/CommandClass.js +41 -41
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/CommandClassDecorators.d.ts.map +1 -1
- package/build/lib/CommandClassDecorators.js +2 -2
- package/build/lib/CommandClassDecorators.js.map +1 -1
- package/build/lib/EncapsulatingCommandClass.js +2 -2
- package/build/lib/EncapsulatingCommandClass.js.map +1 -1
- package/build/lib/Security2/Extension.d.ts.map +1 -1
- package/build/lib/Security2/Extension.js +7 -7
- package/build/lib/Security2/Extension.js.map +1 -1
- package/build/lib/Security2/shared.d.ts.map +1 -1
- package/build/lib/Security2/shared.js.map +1 -1
- package/build/lib/SetValueResult.d.ts.map +1 -1
- package/build/lib/SetValueResult.js +9 -9
- package/build/lib/SetValueResult.js.map +1 -1
- package/build/lib/Values.d.ts +1 -1
- package/build/lib/Values.d.ts.map +1 -1
- package/build/lib/Values.js +3 -3
- package/build/lib/Values.js.map +1 -1
- package/build/lib/_Types.d.ts +1 -1
- package/build/lib/_Types.d.ts.map +1 -1
- package/build/lib/_Types.js +4 -4
- package/build/lib/_Types.js.map +1 -1
- package/build/lib/serializers.d.ts.map +1 -1
- package/build/lib/serializers.js +4 -3
- package/build/lib/serializers.js.map +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +81 -77
- package/build/lib/utils.js.map +1 -1
- package/package.json +9 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationCC.d.ts","sourceRoot":"","sources":["../../src/cc/ConfigurationCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACN,cAAc,EACd,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ConfigurationCC.d.ts","sourceRoot":"","sources":["../../src/cc/ConfigurationCC.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACN,cAAc,EACd,iBAAiB,EACjB,KAAK,qBAAqB,EAG1B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAGxB,KAAK,iBAAiB,EAEtB,KAAK,OAAO,EAEZ,UAAU,EACV,eAAe,EAWf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAM3E,OAAO,EACN,KAAK,EACL,UAAU,EACV,KAAK,uBAAuB,EAC5B,SAAS,EACT,KAAK,sBAAsB,EAI3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,KAAK,gBAAgB,EACrB,YAAY,EACZ,KAAK,kCAAkC,EAEvC,MAAM,qBAAqB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,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAEtC,SAAS,IAAI,MAAM;IAsDnB,UAAU,CAAC,QAAQ,EAAE,oBAAoB,GAAG,mBAAmB;CAoCtE;AAED,qBAEa,4BAA6B,SAAQ,eAAe;gBAE/D,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,kCAAkC,GAAG,yBAAyB;IAWjE,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,IAAI,MAAM;IAMnB,UAAU,CAAC,QAAQ,EAAE,oBAAoB,GAAG,mBAAmB;CAMtE;AAED,qBACa,2BAA4B,SAAQ,eAAe;CAAG"}
|
|
@@ -435,8 +435,9 @@ exports.ConfigurationCCValues = Object.freeze({
|
|
|
435
435
|
...Values_1.V.defineDynamicCCValues(safe_1.CommandClasses.Configuration, {
|
|
436
436
|
...Values_1.V.dynamicPropertyAndKeyWithName("paramInformation",
|
|
437
437
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
438
|
-
(parameter, bitMask) => parameter, (parameter, bitMask) => bitMask, ({ property, propertyKey }) => typeof property === "number"
|
|
439
|
-
(typeof propertyKey === "number"
|
|
438
|
+
(parameter, bitMask) => parameter, (parameter, bitMask) => bitMask, ({ property, propertyKey }) => typeof property === "number"
|
|
439
|
+
&& (typeof propertyKey === "number"
|
|
440
|
+
|| propertyKey == undefined),
|
|
440
441
|
// Metadata is determined dynamically depending on other factors
|
|
441
442
|
undefined),
|
|
442
443
|
}),
|
|
@@ -516,9 +517,9 @@ function bulkMergePartialParamValues(applHost, endpoint, options) {
|
|
|
516
517
|
function isSignedPartial(bitMask, format) {
|
|
517
518
|
// Only treat partial params as signed if they span more than 1 bit.
|
|
518
519
|
// Otherwise we cannot model 0/1 properly.
|
|
519
|
-
return ((0, safe_1.getBitMaskWidth)(bitMask) > 1
|
|
520
|
-
(format ?? safe_1.ConfigValueFormat.SignedInteger)
|
|
521
|
-
safe_1.ConfigValueFormat.SignedInteger);
|
|
520
|
+
return ((0, safe_1.getBitMaskWidth)(bitMask) > 1
|
|
521
|
+
&& (format ?? safe_1.ConfigValueFormat.SignedInteger)
|
|
522
|
+
=== safe_1.ConfigValueFormat.SignedInteger);
|
|
522
523
|
}
|
|
523
524
|
function reInterpretSignedValue(value, valueSize, targetFormat) {
|
|
524
525
|
// Re-interpret the value with the new format
|
|
@@ -529,8 +530,8 @@ function reInterpretSignedValue(value, valueSize, targetFormat) {
|
|
|
529
530
|
function getParamInformationFromConfigFile(applHost, nodeId, endpointIndex) {
|
|
530
531
|
const deviceConfig = applHost.getDeviceConfig?.(nodeId);
|
|
531
532
|
if (endpointIndex === 0) {
|
|
532
|
-
return (deviceConfig?.paramInformation
|
|
533
|
-
deviceConfig?.endpoints?.get(0)?.paramInformation);
|
|
533
|
+
return (deviceConfig?.paramInformation
|
|
534
|
+
?? deviceConfig?.endpoints?.get(0)?.paramInformation);
|
|
534
535
|
}
|
|
535
536
|
else {
|
|
536
537
|
return deviceConfig?.endpoints?.get(endpointIndex)?.paramInformation;
|
|
@@ -581,12 +582,12 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
581
582
|
}
|
|
582
583
|
// Figure out if all the relevant info is the same
|
|
583
584
|
const paramInfos = this.endpoint.node.physicalNodes.map((node) => createConfigurationCCInstance(this.applHost, node.getEndpoint(this.endpoint.index)).getParamInformation(this.applHost, property, propertyKey));
|
|
584
|
-
if (!paramInfos.length
|
|
585
|
-
!paramInfos.every((info, index) => {
|
|
585
|
+
if (!paramInfos.length
|
|
586
|
+
|| !paramInfos.every((info, index) => {
|
|
586
587
|
if (index === 0)
|
|
587
588
|
return true;
|
|
588
|
-
return (info.valueSize === paramInfos[0].valueSize
|
|
589
|
-
info.format === paramInfos[0].format);
|
|
589
|
+
return (info.valueSize === paramInfos[0].valueSize
|
|
590
|
+
&& info.format === paramInfos[0].format);
|
|
590
591
|
})) {
|
|
591
592
|
throw new safe_1.ZWaveError(`The multicast setValue API for Configuration CC requires all virtual target nodes to have the same parameter definition!`, safe_1.ZWaveErrorCodes.CC_Invalid);
|
|
592
593
|
}
|
|
@@ -631,8 +632,8 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
631
632
|
valueSize: valueSize,
|
|
632
633
|
valueFormat,
|
|
633
634
|
});
|
|
634
|
-
if (!(0, safe_1.supervisedCommandSucceeded)(result)
|
|
635
|
-
this.isSinglecast()) {
|
|
635
|
+
if (!(0, safe_1.supervisedCommandSucceeded)(result)
|
|
636
|
+
&& this.isSinglecast()) {
|
|
636
637
|
// Verify the current value after a delay, unless the command was supervised and successful
|
|
637
638
|
this.schedulePoll({ property, propertyKey }, targetValue,
|
|
638
639
|
// Configuration changes are instant
|
|
@@ -713,8 +714,8 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
713
714
|
let values;
|
|
714
715
|
// If the parameters are consecutive, we may use BulkGet
|
|
715
716
|
const distinctParameters = (0, arrays_1.distinct)(options.map((o) => o.parameter));
|
|
716
|
-
if (this.supportsCommand(_Types_1.ConfigurationCommand.BulkGet)
|
|
717
|
-
(0, safe_1.isConsecutiveArray)(distinctParameters)) {
|
|
717
|
+
if (this.supportsCommand(_Types_1.ConfigurationCommand.BulkGet)
|
|
718
|
+
&& (0, safe_1.isConsecutiveArray)(distinctParameters)) {
|
|
718
719
|
const cc = new ConfigurationCCBulkGet(this.applHost, {
|
|
719
720
|
nodeId: this.endpoint.nodeId,
|
|
720
721
|
endpoint: this.endpoint.index,
|
|
@@ -787,13 +788,13 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
787
788
|
const normalized = values.map((v) => normalizeConfigurationCCAPISetOptions(this.applHost, this.endpoint, v));
|
|
788
789
|
// And merge multiple partials that belong the same "full" value
|
|
789
790
|
const allParams = bulkMergePartialParamValues(this.applHost, this.endpoint, normalized);
|
|
790
|
-
const canUseBulkSet = this.supportsCommand(_Types_1.ConfigurationCommand.BulkSet)
|
|
791
|
+
const canUseBulkSet = this.supportsCommand(_Types_1.ConfigurationCommand.BulkSet)
|
|
791
792
|
// For Bulk Set we need consecutive parameters
|
|
792
|
-
(0, safe_1.isConsecutiveArray)(allParams.map((v) => v.parameter))
|
|
793
|
+
&& (0, safe_1.isConsecutiveArray)(allParams.map((v) => v.parameter))
|
|
793
794
|
// and identical format
|
|
794
|
-
new Set(allParams.map((v) => v.valueFormat)).size === 1
|
|
795
|
+
&& new Set(allParams.map((v) => v.valueFormat)).size === 1
|
|
795
796
|
// and identical size
|
|
796
|
-
new Set(allParams.map((v) => v.valueSize)).size === 1;
|
|
797
|
+
&& new Set(allParams.map((v) => v.valueSize)).size === 1;
|
|
797
798
|
if (canUseBulkSet) {
|
|
798
799
|
const cc = new ConfigurationCCBulkSet(this.applHost, {
|
|
799
800
|
nodeId: this.endpoint.nodeId,
|
|
@@ -812,8 +813,8 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
812
813
|
if (result) {
|
|
813
814
|
const sentValues = cc.values;
|
|
814
815
|
const receivedValues = [...result.values.values()];
|
|
815
|
-
const success = sentValues.length === receivedValues.length
|
|
816
|
-
sentValues.every((v, i) => v === receivedValues[i]);
|
|
816
|
+
const success = sentValues.length === receivedValues.length
|
|
817
|
+
&& sentValues.every((v, i) => v === receivedValues[i]);
|
|
817
818
|
return {
|
|
818
819
|
status: success
|
|
819
820
|
? safe_1.SupervisionStatus.Success
|
|
@@ -868,8 +869,8 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
868
869
|
*/
|
|
869
870
|
async resetBulk(parameters) {
|
|
870
871
|
__assertType("parameters", undefined, __assertType__sa__number_ea_2.bind(void 0, parameters));
|
|
871
|
-
if ((0, safe_1.isConsecutiveArray)(parameters)
|
|
872
|
-
this.supportsCommand(_Types_1.ConfigurationCommand.BulkSet)) {
|
|
872
|
+
if ((0, safe_1.isConsecutiveArray)(parameters)
|
|
873
|
+
&& this.supportsCommand(_Types_1.ConfigurationCommand.BulkSet)) {
|
|
873
874
|
const cc = new ConfigurationCCBulkSet(this.applHost, {
|
|
874
875
|
nodeId: this.endpoint.nodeId,
|
|
875
876
|
endpoint: this.endpoint.index,
|
|
@@ -994,7 +995,8 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
994
995
|
if (originalValue != undefined) {
|
|
995
996
|
const logMessage = ` Param ${param}:
|
|
996
997
|
readable = true
|
|
997
|
-
valueSize = ${ccInstance.getParamInformation(this.applHost, param)
|
|
998
|
+
valueSize = ${ccInstance.getParamInformation(this.applHost, param)
|
|
999
|
+
.valueSize}
|
|
998
1000
|
value = ${originalValue.toString()}`;
|
|
999
1001
|
this.applHost.controllerLog.logNode(this.endpoint.nodeId, {
|
|
1000
1002
|
endpoint: this.endpoint.index,
|
|
@@ -1004,9 +1006,9 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
1004
1006
|
}
|
|
1005
1007
|
}
|
|
1006
1008
|
catch (e) {
|
|
1007
|
-
if (e instanceof ConfigurationCCError
|
|
1008
|
-
e.code
|
|
1009
|
-
safe_1.ZWaveErrorCodes.ConfigurationCC_FirstParameterNumber) {
|
|
1009
|
+
if (e instanceof ConfigurationCCError
|
|
1010
|
+
&& e.code
|
|
1011
|
+
=== safe_1.ZWaveErrorCodes.ConfigurationCC_FirstParameterNumber) {
|
|
1010
1012
|
// Continue iterating with the next param
|
|
1011
1013
|
if (e.argument - 1 > param)
|
|
1012
1014
|
param = e.argument - 1;
|
|
@@ -1091,7 +1093,8 @@ let ConfigurationCC = exports.ConfigurationCC = class ConfigurationCC extends Co
|
|
|
1091
1093
|
const { nextParameter, ...properties } = props;
|
|
1092
1094
|
let logMessage;
|
|
1093
1095
|
if (properties.valueSize === 0) {
|
|
1094
|
-
logMessage =
|
|
1096
|
+
logMessage =
|
|
1097
|
+
`Parameter #${param} is unsupported. Next parameter: ${nextParameter}`;
|
|
1095
1098
|
}
|
|
1096
1099
|
else {
|
|
1097
1100
|
let name;
|
|
@@ -1110,7 +1113,8 @@ let ConfigurationCC = exports.ConfigurationCC = class ConfigurationCC extends Co
|
|
|
1110
1113
|
() => undefined);
|
|
1111
1114
|
}
|
|
1112
1115
|
}
|
|
1113
|
-
logMessage =
|
|
1116
|
+
logMessage =
|
|
1117
|
+
`received information for parameter #${param}:`;
|
|
1114
1118
|
if (name) {
|
|
1115
1119
|
logMessage += `
|
|
1116
1120
|
parameter name: ${name}`;
|
|
@@ -1254,8 +1258,8 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1254
1258
|
*/
|
|
1255
1259
|
extendParamInformation(applHost, parameter, valueBitMask, info) {
|
|
1256
1260
|
// Don't trust param information that a node reports if we have already loaded it from a config file
|
|
1257
|
-
if (valueBitMask === undefined
|
|
1258
|
-
this.paramExistsInConfigFile(applHost, parameter)) {
|
|
1261
|
+
if (valueBitMask === undefined
|
|
1262
|
+
&& this.paramExistsInConfigFile(applHost, parameter)) {
|
|
1259
1263
|
return;
|
|
1260
1264
|
}
|
|
1261
1265
|
// Retrieve the base metadata
|
|
@@ -1292,10 +1296,10 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1292
1296
|
*/
|
|
1293
1297
|
getPartialParamInfos(applHost, parameter) {
|
|
1294
1298
|
const valueDB = this.getValueDB(applHost);
|
|
1295
|
-
return valueDB.findMetadata((id) => id.commandClass === this.ccId
|
|
1296
|
-
(id.endpoint ?? 0) === this.endpointIndex
|
|
1297
|
-
id.property === parameter
|
|
1298
|
-
id.propertyKey != undefined);
|
|
1299
|
+
return valueDB.findMetadata((id) => id.commandClass === this.ccId
|
|
1300
|
+
&& (id.endpoint ?? 0) === this.endpointIndex
|
|
1301
|
+
&& id.property === parameter
|
|
1302
|
+
&& id.propertyKey != undefined);
|
|
1299
1303
|
}
|
|
1300
1304
|
/**
|
|
1301
1305
|
* Computes the full value of a parameter after applying a partial param value
|
|
@@ -1311,11 +1315,11 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1311
1315
|
composePartialParamValues(applHost, parameter, partials) {
|
|
1312
1316
|
const valueDB = this.getValueDB(applHost);
|
|
1313
1317
|
// Add the other values together
|
|
1314
|
-
const otherValues = valueDB.findValues((id) => id.commandClass === this.ccId
|
|
1315
|
-
(id.endpoint ?? 0) === this.endpointIndex
|
|
1316
|
-
id.property === parameter
|
|
1317
|
-
id.propertyKey != undefined
|
|
1318
|
-
!partials.some((p) => id.propertyKey === p.bitMask));
|
|
1318
|
+
const otherValues = valueDB.findValues((id) => id.commandClass === this.ccId
|
|
1319
|
+
&& (id.endpoint ?? 0) === this.endpointIndex
|
|
1320
|
+
&& id.property === parameter
|
|
1321
|
+
&& id.propertyKey != undefined
|
|
1322
|
+
&& !partials.some((p) => id.propertyKey === p.bitMask));
|
|
1319
1323
|
let ret = 0;
|
|
1320
1324
|
for (const { propertyKey: bitMask, value: partialValue, } of otherValues) {
|
|
1321
1325
|
ret = (0, safe_1.encodePartial)(ret, partialValue, bitMask);
|
|
@@ -1330,8 +1334,8 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1330
1334
|
const valueDB = this.getValueDB(applHost);
|
|
1331
1335
|
// Clear old param information
|
|
1332
1336
|
for (const meta of valueDB.getAllMetadata(this.ccId)) {
|
|
1333
|
-
if (typeof meta.property === "number"
|
|
1334
|
-
(meta.endpoint ?? 0) === this.endpointIndex) {
|
|
1337
|
+
if (typeof meta.property === "number"
|
|
1338
|
+
&& (meta.endpoint ?? 0) === this.endpointIndex) {
|
|
1335
1339
|
// this is a param information, delete it
|
|
1336
1340
|
valueDB.setMetadata(meta, undefined,
|
|
1337
1341
|
// Don't emit the added/updated events, as this will spam applications with untranslated events
|
|
@@ -1373,8 +1377,8 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1373
1377
|
this.setValue(applHost, exports.ConfigurationCCValues.isParamInformationFromConfig, true);
|
|
1374
1378
|
}
|
|
1375
1379
|
translatePropertyKey(applHost, property, propertyKey) {
|
|
1376
|
-
if (typeof property === "number"
|
|
1377
|
-
(propertyKey == undefined || typeof propertyKey === "number")) {
|
|
1380
|
+
if (typeof property === "number"
|
|
1381
|
+
&& (propertyKey == undefined || typeof propertyKey === "number")) {
|
|
1378
1382
|
// This CC names all configuration parameters differently,
|
|
1379
1383
|
// so no name for the property key is required
|
|
1380
1384
|
return undefined;
|
|
@@ -1383,8 +1387,8 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1383
1387
|
}
|
|
1384
1388
|
translateProperty(applHost, property, propertyKey) {
|
|
1385
1389
|
// Try to retrieve the configured param label
|
|
1386
|
-
if (typeof property === "number"
|
|
1387
|
-
(propertyKey == undefined || typeof propertyKey === "number")) {
|
|
1390
|
+
if (typeof property === "number"
|
|
1391
|
+
&& (propertyKey == undefined || typeof propertyKey === "number")) {
|
|
1388
1392
|
const paramInfo = this.getParamInformation(applHost, property, propertyKey);
|
|
1389
1393
|
if (paramInfo.label)
|
|
1390
1394
|
return paramInfo.label;
|
|
@@ -1445,19 +1449,19 @@ let ConfigurationCCReport = exports.ConfigurationCCReport = class ConfigurationC
|
|
|
1445
1449
|
this.extendParamInformation(applHost, this.parameter, undefined, {
|
|
1446
1450
|
valueSize: this.valueSize,
|
|
1447
1451
|
});
|
|
1448
|
-
if (this.version < 3
|
|
1449
|
-
!this.paramExistsInConfigFile(applHost, this.parameter)
|
|
1450
|
-
oldParamInformation.min == undefined
|
|
1451
|
-
oldParamInformation.max == undefined) {
|
|
1452
|
-
const isSigned = oldParamInformation.format == undefined
|
|
1453
|
-
oldParamInformation.format
|
|
1454
|
-
safe_1.ConfigValueFormat.SignedInteger;
|
|
1452
|
+
if (this.version < 3
|
|
1453
|
+
&& !this.paramExistsInConfigFile(applHost, this.parameter)
|
|
1454
|
+
&& oldParamInformation.min == undefined
|
|
1455
|
+
&& oldParamInformation.max == undefined) {
|
|
1456
|
+
const isSigned = oldParamInformation.format == undefined
|
|
1457
|
+
|| oldParamInformation.format
|
|
1458
|
+
=== safe_1.ConfigValueFormat.SignedInteger;
|
|
1455
1459
|
this.extendParamInformation(applHost, this.parameter, undefined, (0, safe_1.getIntegerLimits)(this.valueSize, isSigned));
|
|
1456
1460
|
}
|
|
1457
1461
|
}
|
|
1458
1462
|
// We may have to re-interpret the value as unsigned, depending on the cached value format
|
|
1459
|
-
if (cachedValueFormat != undefined
|
|
1460
|
-
cachedValueFormat !== safe_1.ConfigValueFormat.SignedInteger) {
|
|
1463
|
+
if (cachedValueFormat != undefined
|
|
1464
|
+
&& cachedValueFormat !== safe_1.ConfigValueFormat.SignedInteger) {
|
|
1461
1465
|
// Re-interpret the value with the new format
|
|
1462
1466
|
this.value = reInterpretSignedValue(this.value, this.valueSize, cachedValueFormat);
|
|
1463
1467
|
}
|
|
@@ -1512,8 +1516,8 @@ let ConfigurationCCGet = exports.ConfigurationCCGet = class ConfigurationCCGet e
|
|
|
1512
1516
|
}
|
|
1513
1517
|
else {
|
|
1514
1518
|
this.parameter = options.parameter;
|
|
1515
|
-
this.allowUnexpectedResponse =
|
|
1516
|
-
|
|
1519
|
+
this.allowUnexpectedResponse = options.allowUnexpectedResponse
|
|
1520
|
+
?? false;
|
|
1517
1521
|
}
|
|
1518
1522
|
}
|
|
1519
1523
|
serialize() {
|
|
@@ -1550,14 +1554,15 @@ let ConfigurationCCSet = exports.ConfigurationCCSet = class ConfigurationCCSet e
|
|
|
1550
1554
|
// Because we don't want to test the behavior, we enforce that it MUST not be set
|
|
1551
1555
|
// on legacy nodes
|
|
1552
1556
|
if (options.resetToDefault && this.version <= 3) {
|
|
1553
|
-
throw new safe_1.ZWaveError(`The resetToDefault flag MUST not be used on nodes implementing ConfigurationCC V3 or less!`, safe_1.ZWaveErrorCodes
|
|
1557
|
+
throw new safe_1.ZWaveError(`The resetToDefault flag MUST not be used on nodes implementing ConfigurationCC V3 or less!`, safe_1.ZWaveErrorCodes
|
|
1558
|
+
.ConfigurationCC_NoResetToDefaultOnLegacyDevices);
|
|
1554
1559
|
}
|
|
1555
1560
|
this.resetToDefault = !!options.resetToDefault;
|
|
1556
1561
|
if (!options.resetToDefault) {
|
|
1557
1562
|
// TODO: Default to the stored value size
|
|
1558
1563
|
this.valueSize = options.valueSize;
|
|
1559
|
-
this.valueFormat =
|
|
1560
|
-
|
|
1564
|
+
this.valueFormat = options.valueFormat
|
|
1565
|
+
?? safe_1.ConfigValueFormat.SignedInteger;
|
|
1561
1566
|
this.value = options.value;
|
|
1562
1567
|
}
|
|
1563
1568
|
}
|
|
@@ -1567,12 +1572,12 @@ let ConfigurationCCSet = exports.ConfigurationCCSet = class ConfigurationCCSet e
|
|
|
1567
1572
|
const payloadLength = 2 + valueSize;
|
|
1568
1573
|
this.payload = Buffer.alloc(payloadLength, 0);
|
|
1569
1574
|
this.payload[0] = this.parameter;
|
|
1570
|
-
this.payload[1] =
|
|
1571
|
-
|
|
1575
|
+
this.payload[1] = (this.resetToDefault ? 128 : 0)
|
|
1576
|
+
| (valueSize & 0b111);
|
|
1572
1577
|
if (!this.resetToDefault) {
|
|
1573
1578
|
// Make sure that the given value fits into the value size
|
|
1574
|
-
if (typeof this.value === "number"
|
|
1575
|
-
!isSafeValue(this.value, valueSize, this.valueFormat)) {
|
|
1579
|
+
if (typeof this.value === "number"
|
|
1580
|
+
&& !isSafeValue(this.value, valueSize, this.valueFormat)) {
|
|
1576
1581
|
// If there is a value size configured, check that the given value is compatible
|
|
1577
1582
|
throwInvalidValueError(this.value, this.parameter, valueSize, this.valueFormat);
|
|
1578
1583
|
}
|
|
@@ -1636,8 +1641,8 @@ let ConfigurationCCBulkSet = exports.ConfigurationCCBulkSet = class Configuratio
|
|
|
1636
1641
|
}
|
|
1637
1642
|
else {
|
|
1638
1643
|
this._valueSize = options.valueSize;
|
|
1639
|
-
this._valueFormat =
|
|
1640
|
-
|
|
1644
|
+
this._valueFormat = options.valueFormat
|
|
1645
|
+
?? safe_1.ConfigValueFormat.SignedInteger;
|
|
1641
1646
|
this._values = options.values;
|
|
1642
1647
|
}
|
|
1643
1648
|
}
|
|
@@ -1666,10 +1671,9 @@ let ConfigurationCCBulkSet = exports.ConfigurationCCBulkSet = class Configuratio
|
|
|
1666
1671
|
this.payload = Buffer.alloc(payloadLength, 0);
|
|
1667
1672
|
this.payload.writeUInt16BE(this.parameters[0], 0);
|
|
1668
1673
|
this.payload[2] = this.parameters.length;
|
|
1669
|
-
this.payload[3] =
|
|
1670
|
-
(this.
|
|
1671
|
-
|
|
1672
|
-
(valueSize & 0b111);
|
|
1674
|
+
this.payload[3] = (this._resetToDefault ? 128 : 0)
|
|
1675
|
+
| (this.handshake ? 64 : 0)
|
|
1676
|
+
| (valueSize & 0b111);
|
|
1673
1677
|
if (!this._resetToDefault) {
|
|
1674
1678
|
for (let i = 0; i < this.parameters.length; i++) {
|
|
1675
1679
|
const value = this._values[i];
|
|
@@ -1741,8 +1745,9 @@ let ConfigurationCCBulkReport = exports.ConfigurationCCBulkReport = class Config
|
|
|
1741
1745
|
for (let [parameter, value] of this._values.entries()) {
|
|
1742
1746
|
// Check if the initial assumption of SignedInteger holds true
|
|
1743
1747
|
const oldParamInformation = this.getParamInformation(applHost, parameter);
|
|
1744
|
-
if (oldParamInformation.format != undefined
|
|
1745
|
-
oldParamInformation.format
|
|
1748
|
+
if (oldParamInformation.format != undefined
|
|
1749
|
+
&& oldParamInformation.format
|
|
1750
|
+
!== safe_1.ConfigValueFormat.SignedInteger) {
|
|
1746
1751
|
// Re-interpret the value with the new format
|
|
1747
1752
|
value = reInterpretSignedValue(value, this._valueSize, oldParamInformation.format);
|
|
1748
1753
|
this._values.set(parameter, value);
|
|
@@ -1968,8 +1973,8 @@ let ConfigurationCCInfoReport = exports.ConfigurationCCInfoReport = class Config
|
|
|
1968
1973
|
// are split into multiple partial parameters. We need to set the description for
|
|
1969
1974
|
// all of them. However, these can get very long, so we put the reported
|
|
1970
1975
|
// description on the first partial param, and refer to it from the others
|
|
1971
|
-
const partialParams = this.getPartialParamInfos(applHost, this.parameter).sort((a, b) => (a.propertyKey ?? 0)
|
|
1972
|
-
(b.propertyKey ?? 0));
|
|
1976
|
+
const partialParams = this.getPartialParamInfos(applHost, this.parameter).sort((a, b) => (a.propertyKey ?? 0)
|
|
1977
|
+
- (b.propertyKey ?? 0));
|
|
1973
1978
|
if (partialParams.length === 0) {
|
|
1974
1979
|
this.extendParamInformation(applHost, this.parameter, undefined, {
|
|
1975
1980
|
description: this.info,
|
|
@@ -2092,8 +2097,7 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2092
2097
|
this.nextParameter = this.payload.readUInt16BE(this.payload.length - 2);
|
|
2093
2098
|
}
|
|
2094
2099
|
else {
|
|
2095
|
-
this.nextParameter =
|
|
2096
|
-
this.payload.readUInt16BE(nextParameterOffset);
|
|
2100
|
+
this.nextParameter = this.payload.readUInt16BE(nextParameterOffset);
|
|
2097
2101
|
// Ensure the payload contains a byte for the 2nd option flags
|
|
2098
2102
|
(0, safe_1.validatePayload)(this.payload.length >= nextParameterOffset + 3);
|
|
2099
2103
|
const options1 = this.payload[2];
|
|
@@ -2165,9 +2169,9 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2165
2169
|
while (mask <= bits) {
|
|
2166
2170
|
if (
|
|
2167
2171
|
// Only create partials that exist
|
|
2168
|
-
!!(mask & bits)
|
|
2172
|
+
!!(mask & bits)
|
|
2169
2173
|
// Do not override param information from a config file
|
|
2170
|
-
!this.paramExistsInConfigFile(applHost, this.parameter, mask)) {
|
|
2174
|
+
&& !this.paramExistsInConfigFile(applHost, this.parameter, mask)) {
|
|
2171
2175
|
const paramInfo = (0, safe_1.stripUndefined)({
|
|
2172
2176
|
...baseInfo,
|
|
2173
2177
|
min: 0,
|
|
@@ -2185,14 +2189,14 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2185
2189
|
return true;
|
|
2186
2190
|
}
|
|
2187
2191
|
serialize() {
|
|
2188
|
-
this.payload = Buffer.allocUnsafe(3
|
|
2189
|
-
3 * this.valueSize
|
|
2190
|
-
2);
|
|
2192
|
+
this.payload = Buffer.allocUnsafe(3 // preamble
|
|
2193
|
+
+ 3 * this.valueSize // min, max, default value
|
|
2194
|
+
+ 2);
|
|
2191
2195
|
this.payload.writeUInt16BE(this.parameter, 0);
|
|
2192
|
-
const options1 = (this.altersCapabilities ? 128 : 0)
|
|
2193
|
-
(this.isReadonly ? 64 : 0)
|
|
2194
|
-
((this.valueFormat & 0b111) << 3)
|
|
2195
|
-
(this.valueSize & 0b111);
|
|
2196
|
+
const options1 = (this.altersCapabilities ? 128 : 0)
|
|
2197
|
+
| (this.isReadonly ? 64 : 0)
|
|
2198
|
+
| ((this.valueFormat & 0b111) << 3)
|
|
2199
|
+
| (this.valueSize & 0b111);
|
|
2196
2200
|
this.payload[2] = options1;
|
|
2197
2201
|
let offset = 3;
|
|
2198
2202
|
if (this.valueSize > 0) {
|
|
@@ -2205,7 +2209,8 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2205
2209
|
}
|
|
2206
2210
|
this.payload.writeUInt16BE(this.nextParameter, offset);
|
|
2207
2211
|
if (this.version >= 4) {
|
|
2208
|
-
const options2 = (this.isAdvanced ? 0b1 : 0)
|
|
2212
|
+
const options2 = (this.isAdvanced ? 0b1 : 0)
|
|
2213
|
+
| (this.noBulkSupport ? 0b10 : 0);
|
|
2209
2214
|
this.payload = Buffer.concat([
|
|
2210
2215
|
this.payload,
|
|
2211
2216
|
Buffer.from([options2]),
|