nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ CreateDevice()

CHIP_ERROR SimulatedBridgedDeviceFactory::CreateDevice ( int  deviceType,
const char *  nodeLabel,
chip::Optional< uint8_t >  index = chip::Optional< uint8_t >(),
chip::Optional< uint16_t >  endpointId = chip::Optional< uint16_t >() 
)

Create a bridged device.

Parameters
deviceTypethe Matter device type of a bridged device to be created
nodeLabelnode label of a Matter device to be created
indexoptional index object that shall have a valid value set if the value is meant to be used to index assignment, or shall not have a value set if the default index assignment should be used.
endpointIdoptional endpoint id object that shall have a valid value set if the value is meant to be used to endpoint id assignment, or shall not have a value set if the default endpoint id assignment should be used.
Returns
CHIP_NO_ERROR on success
other error code on failure