nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
Nrf::BridgeManager Class Reference

#include <bridge_manager.h>

Public Types

using LoadStoredBridgedDevicesCallback = CHIP_ERROR (*)()
 

Public Member Functions

CHIP_ERROR Init (LoadStoredBridgedDevicesCallback loadStoredBridgedDevicesCb)
 Initialize BridgeManager instance.
 
CHIP_ERROR AddBridgedDevices (MatterBridgedDevice *devices[], BridgedDeviceDataProvider *dataProvider, uint8_t deviceListSize, uint8_t devicesPairIndexes[])
 Add devices which are supposed to be bridged to the Bridge Manager.
 
CHIP_ERROR AddBridgedDevices (MatterBridgedDevice *devices[], BridgedDeviceDataProvider *dataProvider, uint8_t deviceListSize, uint8_t devicesPairIndexes[], uint16_t endpointIds[])
 Add devices which are supposed to be bridged to the Bridge Manager using specific index and endpoint id.
 
CHIP_ERROR RemoveBridgedDevice (uint16_t endpoint, uint8_t &devicesPairIndex)
 Remove bridged device.
 
CHIP_ERROR GetDevicesIndexes (uint8_t *indexes, uint8_t maxSize, uint8_t &count)
 Get bridged devices indexes.
 
BridgedDeviceDataProviderGetProvider (chip::EndpointId endpoint, uint16_t &deviceType)
 Get the data provider stored on the specified endpoint.
 
const char * GetNodeLabel (chip::EndpointId endpoint)
 Get the node label of the bridged device on the specified endpoint.
 

Static Public Member Functions

static CHIP_ERROR HandleRead (uint16_t index, chip::ClusterId clusterId, const EmberAfAttributeMetadata *attributeMetadata, uint8_t *buffer, uint16_t maxReadLength)
 
static CHIP_ERROR HandleWrite (uint16_t index, chip::ClusterId clusterId, const EmberAfAttributeMetadata *attributeMetadata, uint8_t *buffer)
 
static void HandleUpdate (BridgedDeviceDataProvider &dataProvider, chip::ClusterId clusterId, chip::AttributeId attributeId, void *data, size_t dataSize)
 
static void HandleCommand (BridgedDeviceDataProvider &dataProvider, chip::ClusterId clusterId, chip::CommandId commandId, Nrf::Matter::BindingHandler::InvokeCommand invokeCommand)
 
static BridgeManagerInstance ()
 

Static Public Attributes

static constexpr uint8_t kMaxBridgedDevices = CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT
 
static constexpr uint8_t kMaxBridgedDevicesPerProvider = CONFIG_BRIDGE_MAX_BRIDGED_DEVICES_NUMBER_PER_PROVIDER
 
static constexpr chip::EndpointId kAggregatorEndpointId = CONFIG_BRIDGE_AGGREGATOR_ENDPOINT_ID
 

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