9#include "matter_bridged_device.h"
18 uint16_t
GetDeviceType()
const override {
return Nrf::MatterBridgedDevice::DeviceType::OnOffLight; }
19 CHIP_ERROR
HandleRead(chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer,
20 uint16_t maxReadLength)
override;
21 CHIP_ERROR
HandleReadOnOff(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength);
22 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;
25 size_t dataSize)
override;
35 bool mGlobalSceneControl{
false };
37 int16_t mOffWaitTime{ 0 };
38 chip::app::Clusters::OnOff::StartUpOnOffEnum mStartUpOnOff{
39 chip::app::Clusters::OnOff::StartUpOnOffEnum::kUnknownEnumValue
static constexpr uint8_t GetGroupsNameSupportMap()
Definition: onoff_light.h:31
CHIP_ERROR HandleReadGroups(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength)
static constexpr uint32_t GetOnOffFeatureMap()
Definition: onoff_light.h:28
CHIP_ERROR HandleReadOnOff(chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength)
uint16_t GetDeviceType() const override
Definition: onoff_light.h:18
bool GetOnOff()
Definition: onoff_light.h:15
static constexpr uint32_t GetGroupsFeatureMap()
Definition: onoff_light.h:30
CHIP_ERROR HandleRead(chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) override
static constexpr uint16_t GetGroupsClusterRevision()
Definition: onoff_light.h:29
void Toggle()
Definition: onoff_light.h:16
static constexpr uint16_t GetOnOffClusterRevision()
Definition: onoff_light.h:27
CHIP_ERROR HandleWrite(chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, size_t size) override
OnOffLightDevice(const char *nodeLabel)
CHIP_ERROR HandleAttributeChange(chip::ClusterId clusterId, chip::AttributeId attributeId, void *data, size_t dataSize) override
Definition: onoff_light.h:11