本文整理了Java中com.zsmartsystems.zigbee.ZigBeeCommand.getClusterId()
方法的一些代码示例,展示了ZigBeeCommand.getClusterId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeCommand.getClusterId()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeCommand
类名称:ZigBeeCommand
方法名:getClusterId
[英]Gets the cluster ID.
[中]获取群集ID。
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
@Override
public Future<CommandResult> answer(InvocationOnMock invocation) {
ZigBeeCommand command = (ZigBeeCommand) invocation.getArguments()[0];
ZigBeeTransactionFuture commandFuture = new ZigBeeTransactionFuture();
CommandResult result = new CommandResult(responses.get(command.getClusterId()));
commandFuture.set(result);
return commandFuture;
}
}).when(networkManager).sendTransaction(ArgumentMatchers.any(ZigBeeCommand.class),
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
@Override
public Future<CommandResult> answer(InvocationOnMock invocation) {
ZigBeeCommand command = (ZigBeeCommand) invocation.getArguments()[0];
ZigBeeTransactionFuture commandFuture = new ZigBeeTransactionFuture();
CommandResult result = new CommandResult(responses.get(command.getClusterId()));
commandFuture.set(result);
return commandFuture;
}
}).when(networkManager).sendTransaction(ArgumentMatchers.any(ZigBeeCommand.class),
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
assertEquals((Integer) Integer.parseInt(tokens.get("TID"), 16), command.getTransactionId());
assertEquals((Integer) Integer.parseInt(tokens.get("cluster"), 16), command.getClusterId());
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
assertEquals(Integer.valueOf(0x19), command.getClusterId());
assertTrue(command instanceof ImageNotifyCommand);
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
apsFrame.setCluster(command.getClusterId());
apsFrame.setApsCounter(apsCounter.getAndIncrement() & 0xff);
apsFrame.setSecurityEnabled(command.getApsSecurity());
内容来源于网络,如有侵权,请联系作者删除!