本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNode.getDao()
方法的一些代码示例,展示了ZigBeeNode.getDao()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeNode.getDao()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeNode
类名称:ZigBeeNode
方法名:getDao
[英]Gets a ZigBeeNodeDao representing the node
[中]获取代表该节点的ZigBeeNodeDao
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Serializes the network state.
*
* @param networkState the network state
*/
@Override
public synchronized void serialize(final ZigBeeNetworkManager networkState) {
XStream stream = openStream();
final List<Object> objects = new ArrayList<>();
// objects.add(networkState.getZigBeeNetworkKey());
// objects.add(networkState.getZigBeeLinkKey());
for (ZigBeeNode node : networkState.getNodes()) {
ZigBeeNodeDao nodeDao = node.getDao();
objects.add(nodeDao);
}
final File file = new File(networkId);
try {
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8"));
stream.marshal(objects, new PrettyPrintWriter(writer));
writer.flush();
writer.close();
} catch (IOException e) {
logger.error("Error writing network state", e);
return;
}
logger.info("ZigBee saving network state complete.");
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
ZigBeeNodeDao nodeDao = node.getDao();
destinations.add(nodeDao);
内容来源于网络,如有侵权,请联系作者删除!