PreviousNext
amIBonded
Help > OS functions > Bonding – Node > amIBonded

Function

 

Is the Node bonded?

Purpose

 

Test whether the Node is bonded on Node's side

Syntax

 

bit amIBonded()

Parameters

 

  –

Return value

 

     1 – Node is bonded (after bondRequestAdvanced, not being unbonded by removeBond)

     0 – Node is not bonded:

         No bondRequestAdvanced has ever been successfully executed

         After removeBond

Output values

 

 –

Preconditions

 

For IQMESH Node only (setNodeMode must be called first).

Remarks

 

 –

Side effects

 

 –

See also

 

bondRequestAdvanced, removeBond, removeBondAddress

Example

 

while (!amIBonded())      // Request for beeing bonded (if not bonded yet)

{

  bondRequestAdvanced();  // Repeatedly try to bond

  clrwdt();               // If WDT active

}                          // Until successful