how to inform copperlan about changes in listed devices I/Os

how to inform copperlan about changes in listed devices I/Os

Postby ComBoy » 12 Mar 2012, 12:20

I have a host device that adds plugin devices dynamically at runtime.
how do i inform the CHAI to update the device list so thecopperManager displays the new devices and inputs?

comboy
ComBoy
 
Posts: 3
Joined: 09 Mar 2012, 15:27

Re: how to inform copperlan about changes in listed devices

Postby CopperPhil » 12 Mar 2012, 13:29

It is very simple, just call ICHAI::RedeclareAllDevices() once you have finished you changes.

Each time you add, remove local device, change its name, its capabilities, its number of inputs or outputs, actually each time you make some changes in the local device tree after getting connected to the network, you can commit these changes using ICHAI::RedeclareAllDevices().

:!: The current documentation is wrong. The sentence "Using this method in connected mode implies usage of IBaseLocalDevice::Declare()" will be changed in "Using this method in connected mode implies usage of ICHAI::RedeclareAllDevices() to commit changes."
CopperPhil
 
Posts: 480
Joined: 30 Mar 2011, 15:02
Location: Brussels


Return to Generalities

cron