FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSystem_Refresh ( kSystem  system)

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.
Returns
Operation status.