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

Function

 

Remove the Node from the network

Purpose

 

Exclude the Node from the network on Node's side.

Syntax

 

void removeBond()

Parameters

 

  –

Return value

 

  –

Output values

 

     Information about removing a bond is recorded in EEPROM.

     The amIBonded function starts to return value == 0 whenever is called until the Node is bonded again via bondRequestAdvanced.

     The Coordinator is not affected at all.

Preconditions

 

  –

Remarks

 

     For rebonding use bondRequestAdvanced again.

     removeBond relates to the Node only and removeBondedNode and rebondNode relate to the Coordinator only. The other side is not informed by OS about changes made by these functions. If synchronization is needed it should be done by the application.

Side effects

 

  –

See also

 

bondRequestAdvanced, amIBonded, rebondNode

Example

 

removeBond();   // Remove the bond