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