Accepts RPC commands over bluetooth (RN42)
RPCVariable< T > Class Template Reference
Class to read and set an attached variable using the RPC. More...
#include <RPCVariable.h>
Public Member Functions | |
template<class A > | |
RPCVariable (A *ptr, const char *name) | |
Constructor. | |
T | read () |
Read the variable over RPC. | |
void | write (T value) |
Write a value to the variable over RPC. |
Detailed Description
template<class T>
class RPCVariable< T >
Class to read and set an attached variable using the RPC.
Definition at line 40 of file RPCVariable.h.
Constructor & Destructor Documentation
RPCVariable | ( | A * | ptr, |
const char * | name | ||
) |
Constructor.
- Parameters:
-
ptr Pointer to the variable to make accessible over RPC. Any type of variable can be connected name The name of that this object will be over RPC
Definition at line 50 of file RPCVariable.h.
Member Function Documentation
T read | ( | ) |
Read the variable over RPC.
- Returns:
- The value of the variable
Definition at line 58 of file RPCVariable.h.
void write | ( | T | value ) |
Write a value to the variable over RPC.
- Parameters:
-
The value to be written to the attached variable.
Definition at line 66 of file RPCVariable.h.
Generated on Wed Jul 13 2022 06:00:45 by 1.7.2