PreviousNext
isBondedNode
Help > OS functions > Bonding – Coordinator > isBondedNode

Function

 

Is specified Node in the list of bonded Nodes?

Purpose

 

Test whether the Node is bonded on the Coordinator side

Syntax

 

bit isBondedNode(uns8 address)

Parameters

 

address: Node number

Return value

 

         For Nodes from 1 to 0xEF:

         1 – Node is in the list of bonded Nodes

         0 – Node is not in the list of bonded Nodes

         For Nodes from 0xF0 to 0xFD: 0

         For Nodes from 0xFE to 0xFF: 1

         For address = 0: 0 (Do not use)

Output values

 

  –

Preconditions

 

For IQMESH Coordinator only. (setCoordinatorMode must be called first.)

Remarks

 

  –

Side effects

 

  –

See also

 

removeBondedNode, rebondNode, clearAllBonds

Example

 

if (isBondedNode(28))     // Is Node #28 bonded ?

{                          // Yes:

   ...                     //   Coordinator assumes Node #28 to be bonded

}

else

{                          // No:

   ...                     //   Coordinator assumes Node #28 not to be bonded

}