com.digi.xbee.api.XBeeNetwork.discoverDevice()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中com.digi.xbee.api.XBeeNetwork.discoverDevice()方法的一些代码示例,展示了XBeeNetwork.discoverDevice()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XBeeNetwork.discoverDevice()方法的具体详情如下:
包路径:com.digi.xbee.api.XBeeNetwork
类名称:XBeeNetwork
方法名:discoverDevice

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.");

相关文章

XBeeNetwork类方法