/** * Get the unique id from the node. * * @return the unique id * @throws ProtocolException */ public long getUniqueId() throws ProtocolException { return getUniqueId(false); }
/** * Returns the provided node as AccessoryNode instance of null if the node is not an AccessoryNode. * * @param address * the node address * @return the AccessoryNode instance */ public AccessoryNode getAccessoryNode(byte[] address) { BidibNode bidibNode = findNode(address); try { if (NodeUtils.hasAccessoryFunctions(bidibNode.getUniqueId())) { AccessoryNode accessoryNode = new AccessoryNode(bidibNode); LOGGER.debug("prepared accessory node: {}", accessoryNode); return accessoryNode; } } catch (Exception ex) { LOGGER.warn("Get accessory node failed.", ex); } LOGGER .warn("The requested node is not an AccessoryNode, node: {}, address: {}", bidibNode, NodeUtils.formatAddress(address)); return null; }
if (ProductUtils.isMultiDecoder(getUniqueId())) { bulkWindowSize = 2;