FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSystem_RefreshEx ( kSystem  system,
kBool  forceAll,
kArrayList  removed,
kArrayList  added,
kArrayList  refreshed 
)

Updates client state to reflect any changes that have occurred in the node network.

Nodes can undergo autonomous state changes that require client state to be refreshed (e.g. sensor goes offline). The kSystem_Refresh function resynchronizes client state with the current state of the sensor network.

Calling this function may destroy or modify local node objects. The kSystem_HasChanges function can be used prior to calling kSystem_Refresh, to determine whether a refresh is needed.

Parameters
systemkSystem object.
forceAllForce node refresh.
removedPopulated with nodes removed from the system.
addedPopulated with nodes added to the system.
refreshedPopulated with nodes that were refreshed.
Returns
Operation status.