anyKode Marilou
ContentsIndexHome
PreviousUpNext
DevicesGroup::AddDevice

AddDevice adds a device to the group.

C++
bool AddDevice(Device * pDevice);
Parameters 
Description 
Device * pDevice 
[in] device to be added to the group 

True if the device could be added to the group, false otherwise.

AddDevice adds the device to the group. A device is obtained through a call to QueryDeviceXXXX of the RobotPHX class. The addition of a device is subject to restrictions:

  • The number of devices contained within the group must be less than _MODA_MAXGROUPDEVICES
  • The device class must be same than the group class (ActiveEntityClasses)
  • The device must have the same ModaCPP::Connection as the group
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!