use of com.zsmartsystems.zigbee.zcl.clusters.groups.ViewGroupCommand in project com.zsmartsystems.zigbee by zsmartsystems.
the class ZigBeeApi method viewMembership.
/**
* Views group membership from device.
*
* @param device the device
* @param groupId the group ID
* @return the command result future
*/
public Future<CommandResult> viewMembership(final ZigBeeEndpoint device, final int groupId) {
final ViewGroupCommand command = new ViewGroupCommand();
command.setGroupId(groupId);
command.setDestinationAddress(device.getEndpointAddress());
return networkManager.unicast(command, new ZclTransactionMatcher());
}
use of com.zsmartsystems.zigbee.zcl.clusters.groups.ViewGroupCommand in project com.zsmartsystems.zigbee by zsmartsystems.
the class ZclGroupsCluster method viewGroupCommand.
/**
* The View Group Command
*
* @param groupId {@link Integer} Group ID
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> viewGroupCommand(Integer groupId) {
ViewGroupCommand command = new ViewGroupCommand();
// Set the fields
command.setGroupId(groupId);
return send(command);
}
Aggregations