![]() |
nRF Connect SDK API 3.3.99
|
#include <onoff_light.h>
Inherits Nrf::MatterBridgedDevice.
Public Types | |
| enum | DeviceType : uint16_t { BridgedNode = 0x0013 , OnOffLight = 0x0100 , OnOffLightSwitch = 0x0103 , TemperatureSensor = 0x0302 , HumiditySensor = 0x0307 , GenericSwitch = 0x000F } |
| using | IdentifyType = chip::app::Clusters::Identify::IdentifyTypeEnum |
Public Member Functions | |
| OnOffLightDevice (const char *uniqueID, const char *nodeLabel) | |
| bool | GetOnOff () |
| void | Toggle () |
| uint16_t | GetDeviceType () const override |
| CHIP_ERROR | HandleRead (chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) override |
| CHIP_ERROR | HandleReadOnOff (chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) |
| CHIP_ERROR | HandleReadGroups (chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) |
| CHIP_ERROR | HandleWrite (chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, size_t size) override |
| CHIP_ERROR | HandleAttributeChange (chip::ClusterId clusterId, chip::AttributeId attributeId, void *data, size_t dataSize) override |
| void | Init (chip::EndpointId endpoint) |
| chip::EndpointId | GetEndpointId () const |
| CHIP_ERROR | CopyAttribute (const void *attribute, size_t attributeSize, void *buffer, uint16_t maxBufferSize) |
| CHIP_ERROR | HandleWriteDeviceBasicInformation (chip::ClusterId clusterId, chip::AttributeId attributeId, void *data, size_t dataSize) |
| CHIP_ERROR | HandleReadBridgedDeviceBasicInformation (chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) |
| CHIP_ERROR | HandleReadIdentify (chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength) |
| CHIP_ERROR | HandleWriteIdentify (chip::AttributeId attributeId, void *data, size_t dataSize) |
| bool | GetIsReachable () const |
| const char * | GetUniqueID () const |
| const char * | GetNodeLabel () const |
Static Public Member Functions | |
| static constexpr uint16_t | GetOnOffClusterRevision () |
| static constexpr uint32_t | GetOnOffFeatureMap () |
| static constexpr uint16_t | GetGroupsClusterRevision () |
| static constexpr uint32_t | GetGroupsFeatureMap () |
| static constexpr uint8_t | GetGroupsNameSupportMap () |
| static constexpr uint16_t | GetBridgedDeviceBasicInformationClusterRevision () |
| static constexpr uint32_t | GetBridgedDeviceBasicInformationFeatureMap () |
| static constexpr uint16_t | GetIdentifyClusterRevision () |
| static constexpr uint32_t | GetIdentifyClusterFeatureMap () |
Data Fields | |
| EmberAfEndpointType * | mEp |
| const EmberAfDeviceType * | mDeviceTypeList |
| size_t | mDeviceTypeListSize |
| chip::DataVersion * | mDataVersion |
| size_t | mDataVersionSize |
Static Public Attributes | |
| static constexpr uint8_t | kDefaultDynamicEndpointVersion = 3 |
| static constexpr uint8_t | kNodeLabelSize = 32 |
| static constexpr uint8_t | kUniqueIDSize = chip::DeviceLayer::ConfigurationManager::kMaxUniqueIDLength |
| static constexpr uint8_t | kDescriptorAttributeArraySize = 254 |
Protected Member Functions | |
| void | SetIsReachable (bool isReachable) |
| void | SetNodeLabel (void *data, size_t size) |
Protected Attributes | |
| chip::EndpointId | mEndpointId {} |