Search in sources :

Example 1 with RemoveGroupCommand

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());
}
Also used : RemoveGroupCommand(com.zsmartsystems.zigbee.zcl.clusters.groups.RemoveGroupCommand) ZclTransactionMatcher(com.zsmartsystems.zigbee.zcl.ZclTransactionMatcher)

Example 2 with RemoveGroupCommand

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);
}
Also used : RemoveGroupCommand(com.zsmartsystems.zigbee.zcl.clusters.groups.RemoveGroupCommand)

Aggregations

RemoveGroupCommand (com.zsmartsystems.zigbee.zcl.clusters.groups.RemoveGroupCommand)2 ZclTransactionMatcher (com.zsmartsystems.zigbee.zcl.ZclTransactionMatcher)1