Search in sources :

Example 1 with ViewGroupCommand

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

Example 2 with ViewGroupCommand

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

Aggregations

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