Once the RCM radio module is configured, what we want to do is to allow it to connect to a network, or establish a new network in case of a coordinator device. To do that we simply call RCM_StartNetworking function. The returned value will tell us, whether we have joined (or established) the network successfully or not.
Complementary, in order to disconnect from the network, we can call RCM_StopNetworking function.
We can always call the RCM_GetNetworkState function to determine the actual networking state.
Many times it is required to know what nodes are in the network - not only in the nearest neighborhood but in the entire reachable network. To provide this information RCM radio modules periodically send to the coordinator a list of all nearest neighbors that they know about. This mechanism is called neighbor indication. In order to make use of these messages, the user can register a callback function, that will be called whenever such message arrives. This is done through the RCM_SetNeighborhoodIndicationCallback function.
The remote nodes can be addressed using 64-bit unique ID (UID) or 16-bit short network address. Sometimes it is feasible to convert one address to another, which generally requires communication with the node using one address and asking it for the other, unless such information is already cached in the RCM stack. To perform such action two functions are provided: RCM_GetUIDFromNwkShort and RCM_GetNwkShortFromUID.
The following example illustrates how to establish the network:
Generated on Fri Aug 31 2018 09:37:14 for RCM API Library by 1.8.7