Newly Optimized RF24Network Layer  v1.0.7
2014-2015 - Optimized RF24 Network Layer for NRF24L01 radios
Public Member Functions | List of all members
Sync Class Reference

Synchronizes a shared set of variables between multiple nodes. More...

#include <Sync.h>

Public Member Functions

 Sync (RF24Network &_network)
 Constructor. More...
 
void begin (uint16_t _to_node)
 Begin the object. More...
 
template<class T >
void register_me (T &_data)
 Declare the shared data set. More...
 
void reset (void)
 Reset the internal copy of the shared data set. More...
 
void update (void)
 Update the network and the shared data set. More...
 

Detailed Description

Synchronizes a shared set of variables between multiple nodes.

Constructor & Destructor Documentation

Sync::Sync ( RF24Network _network)
inline

Constructor.

Parameters
_networkWhich network to syncrhonize over

Member Function Documentation

void Sync::begin ( uint16_t  _to_node)
inline

Begin the object.

Parameters
_to_nodeWhich node we are syncing with
template<class T >
void Sync::register_me ( T &  _data)
inline

Declare the shared data set.

Parameters
_dataLocation of shared data to be syncrhonized
void Sync::reset ( void  )
inline

Reset the internal copy of the shared data set.

void Sync::update ( void  )

Update the network and the shared data set.