Skip to content

Commit cbca917

Browse files
adigieArekBalysNordic
authored andcommitted
applications: matter_bridge: Update clusters revisions
Update bridged device On/Off and Switch clusters revisions. Signed-off-by: Adrian Gielniewski <[email protected]>
1 parent a38b1d6 commit cbca917

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

applications/matter_bridge/src/bridged_device_types/generic_switch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GenericSwitchDevice : public Nrf::MatterBridgedDevice {
3636
private:
3737
CHIP_ERROR HandleReadSwitch(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength);
3838

39-
static constexpr uint16_t GetSwitchClusterRevision() { return 1; }
39+
static constexpr uint16_t GetSwitchClusterRevision() { return 2; }
4040
/* According to the Matter 1.2 specification: Bit 1 -> MomentarySwitch in the Switch Cluster section. */
4141
static constexpr uint32_t GetSwitchClusterFeatureMap() { return 2; }
4242
static constexpr uint32_t GetSwitchClusterNumberOfPositions() { return 2; }

applications/matter_bridge/src/bridged_device_types/onoff_light.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ class OnOffLightDevice : public Nrf::MatterBridgedDevice {
2020
uint16_t maxReadLength) override;
2121
CHIP_ERROR HandleReadOnOff(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength);
2222
CHIP_ERROR HandleReadGroups(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength);
23-
CHIP_ERROR HandleWrite(chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, size_t size) override;
23+
CHIP_ERROR HandleWrite(chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer,
24+
size_t size) override;
2425
CHIP_ERROR HandleAttributeChange(chip::ClusterId clusterId, chip::AttributeId attributeId, void *data,
2526
size_t dataSize) override;
2627

27-
static constexpr uint16_t GetOnOffClusterRevision() { return 5; }
28+
static constexpr uint16_t GetOnOffClusterRevision() { return 6; }
2829
static constexpr uint32_t GetOnOffFeatureMap() { return 1; }
2930
static constexpr uint16_t GetGroupsClusterRevision() { return 4; }
3031
static constexpr uint32_t GetGroupsFeatureMap() { return 1; }

applications/matter_bridge/src/bridged_device_types/onoff_light_switch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class OnOffLightSwitchDevice : public Nrf::MatterBridgedDevice {
3838
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
3939
}
4040

41-
static constexpr uint16_t GetOnOffClusterRevision() { return 4; }
41+
static constexpr uint16_t GetOnOffClusterRevision() { return 6; }
4242
static constexpr uint32_t GetOnOffFeatureMap() { return 1; }
4343
static constexpr uint16_t GetBindingClusterRevision() { return 1; }
4444
static constexpr uint32_t GetBindingFeatureMap() { return 0; }

0 commit comments

Comments
 (0)