-23-
v7.1
Node Discovery
8.2. Searching specific nodes
Another possibility for discovering a node is searching for a specific one. This search is based on using the Node
Identifier. The NI of the node to discover is used as the input in the API function responsible of this purpose.
The Node Identifier can be set calling the
setNodeIdentifier()
function:
{
xbee868LP.setNodeIdentifier(“node01”);
}
Searching a specific node is done by the
nodeSearch()
function. It is necessary to indicate the Node Identifier to
search and the buffer where the MAC address is stored.
Example of use:
{
uint8_t mac[8];
xbee868LP.nodeSearch(“node01”, mac);
}
Related variables
mac[0-7]
→
Stores the 64-bit address of the searched node
•
Node search example:
http://www.libelium.com/development/waspmote/examples/868lp-10a-node-search-tx
http://www.libelium.com/development/waspmote/examples/868lp-10b-node-search-rx
8.3. Node discovery to a specific node
When executing a Node Discovery all the nodes respond to it. If its Node Identifier is known, a Node Discovery
using its
NI
as an input can be executed.
Example of use
{
xbee868LP.scanNetwork(“node01”);
}
Related variables
totalScannedBrothers
→
stores the number of discovered brothers. Must be ‘1’.
scannedBrothers
→
Node
structure array that stores the info