RF24Network v1
Public Member Functions

Sync Class Reference

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

#include <Sync.h>

List of all members.

Public Member Functions

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

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

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables