nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
Nrf::MatterBridgedDevice Class Referenceabstract

#include <matter_bridged_device.h>

Inherited by GenericSwitchDevice, HumiditySensorDevice, OnOffLightDevice, OnOffLightSwitchDevice, and TemperatureSensorDevice.

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

 MatterBridgedDevice (const char *uniqueID, const char *nodeLabel)
 
virtual ~MatterBridgedDevice ()
 
void Init (chip::EndpointId endpoint)
 
chip::EndpointId GetEndpointId () const
 
virtual uint16_t GetDeviceType () const =0
 
virtual CHIP_ERROR HandleRead (chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, uint16_t maxReadLength)=0
 
virtual CHIP_ERROR HandleWrite (chip::ClusterId clusterId, chip::AttributeId attributeId, uint8_t *buffer, size_t size)=0
 
virtual CHIP_ERROR HandleAttributeChange (chip::ClusterId clusterId, chip::AttributeId attributeId, void *data, size_t dataSize)=0
 
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 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 {}
 

The documentation for this class was generated from the following file: