Skip to content

Commit

Permalink
Add neighbors console command (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored Oct 3, 2021
1 parent fce04ed commit 357abdf
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import com.zsmartsystems.zigbee.console.ZigBeeConsoleGroupCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleInstallKeyCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleLinkKeyCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleNeighborsListCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleNetworkBackupCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleNetworkJoinCommand;
import com.zsmartsystems.zigbee.console.ZigBeeConsoleNetworkLeaveCommand;
Expand All @@ -63,20 +64,20 @@
public class GeneralZigBeeConsoleCommandProvider implements ZigBeeConsoleCommandProvider {

@SuppressWarnings("null")
public static final List<ZigBeeConsoleCommand> GENERAL_COMMANDS = unmodifiableList(
asList(new ZigBeeConsoleAttributeReadCommand(), new ZigBeeConsoleAttributeSupportedCommand(),
new ZigBeeConsoleAttributeWriteCommand(), new ZigBeeConsoleBindCommand(),
new ZigBeeConsoleBindingTableCommand(), new ZigBeeConsoleChannelCommand(),
new ZigBeeConsoleCommandsSupportedCommand(), new ZigBeeConsoleDescribeEndpointCommand(),
new ZigBeeConsoleDescribeNodeCommand(), new ZigBeeConsoleDeviceFingerprintCommand(),
new ZigBeeConsoleDeviceInformationCommand(), new ZigBeeConsoleGroupCommand(),
new ZigBeeConsoleInstallKeyCommand(), new ZigBeeConsoleLinkKeyCommand(),
new ZigBeeConsoleNetworkBackupCommand(), new ZigBeeConsoleNetworkJoinCommand(),
new ZigBeeConsoleNetworkLeaveCommand(), new ZigBeeConsoleNodeListCommand(),
new ZigBeeConsoleOtaUpgradeCommand(), new ZigBeeConsoleSceneCommand(),
new ZigBeeConsoleReportingConfigCommand(), new ZigBeeConsoleReportingSubscribeCommand(),
new ZigBeeConsoleReportingUnsubscribeCommand(), new ZigBeeConsoleRoutingTableCommand(),
new ZigBeeConsoleUnbindCommand(), new ZigBeeConsoleWindowCoveringCommand()));
public static final List<ZigBeeConsoleCommand> GENERAL_COMMANDS = unmodifiableList(asList(
new ZigBeeConsoleAttributeReadCommand(), new ZigBeeConsoleAttributeSupportedCommand(),
new ZigBeeConsoleAttributeWriteCommand(), new ZigBeeConsoleBindCommand(),
new ZigBeeConsoleBindingTableCommand(), new ZigBeeConsoleChannelCommand(),
new ZigBeeConsoleCommandsSupportedCommand(), new ZigBeeConsoleDescribeEndpointCommand(),
new ZigBeeConsoleDescribeNodeCommand(), new ZigBeeConsoleDeviceFingerprintCommand(),
new ZigBeeConsoleDeviceInformationCommand(), new ZigBeeConsoleGroupCommand(),
new ZigBeeConsoleInstallKeyCommand(), new ZigBeeConsoleLinkKeyCommand(),
new ZigBeeConsoleNeighborsListCommand(), new ZigBeeConsoleNetworkBackupCommand(),
new ZigBeeConsoleNetworkJoinCommand(), new ZigBeeConsoleNetworkLeaveCommand(),
new ZigBeeConsoleNodeListCommand(), new ZigBeeConsoleOtaUpgradeCommand(), new ZigBeeConsoleSceneCommand(),
new ZigBeeConsoleReportingConfigCommand(), new ZigBeeConsoleReportingSubscribeCommand(),
new ZigBeeConsoleReportingUnsubscribeCommand(), new ZigBeeConsoleRoutingTableCommand(),
new ZigBeeConsoleUnbindCommand(), new ZigBeeConsoleWindowCoveringCommand()));

private Map<String, ZigBeeConsoleCommand> generalCommands = GENERAL_COMMANDS.stream()
.collect(toMap(ZigBeeConsoleCommand::getCommand, identity()));
Expand Down

0 comments on commit 357abdf

Please sign in to comment.