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
Constructor.
- Parameters:
-
| _network | Which network to syncrhonize over |
Member Function Documentation
| void Sync::begin |
( |
uint16_t |
_to_node | ) |
[inline] |
Begin the object.
- Parameters:
-
| _to_node | Which node we are syncing with |
template<class T >
| void Sync::register_me |
( |
T & |
_data | ) |
[inline] |
Declare the shared data set.
- Parameters:
-
| _data | Location of shared data to be syncrhonized |
The documentation for this class was generated from the following file: