本文整理了Java中com.digi.xbee.api.XBeeNetwork.discoverDevice()
方法的一些代码示例,展示了XBeeNetwork.discoverDevice()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XBeeNetwork.discoverDevice()
方法的具体详情如下:
包路径:com.digi.xbee.api.XBeeNetwork
类名称:XBeeNetwork
方法名:discoverDevice
[英]Discovers and reports the first remote XBee device that matches the supplied identifier.
This method blocks until the device is discovered or the configured timeout expires. To configure the discovery timeout, use the method #setDiscoveryTimeout(long).
To configure the discovery options, use the #setDiscoveryOptions(Set) method.
[中]发现并报告与提供的标识符匹配的第一个远程XBee设备。
此方法会一直阻止,直到发现设备或配置的超时过期。要配置查找超时,请使用方法#setDiscoveryTimeout(long)。
要配置发现选项,请使用#setDiscoveryOptions(Set)方法。
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
代码示例来源:origin: digidotcom/XBeeJavaLibrary
RemoteXBeeDevice remoteDevice = xbeeNetwork.discoverDevice(REMOTE_NODE_IDENTIFIER);
if (remoteDevice == null) {
System.out.println("Couldn't find the remote XBee device with '" + REMOTE_NODE_IDENTIFIER + "' Node Identifier.");
内容来源于网络,如有侵权,请联系作者删除!