pyWisp communication frame More...
#include <frameregistry.h>
Public Member Functions | |
| Frame (uint8_t id=0) | |
| construct Frame with given id | |
| template<typename T > | |
| Frame & | pack (T value) |
| pack value into Frame | |
| template<typename T > | |
| void | unPack (T &value) |
| unpack into value from Frame | |
| template<typename T > | |
| T | unpack () |
| return unpacked value from Frame | |
Public Attributes | |
| Buffer< uint8_t > | b = 128 |
| buffer containing the Frame payload | |
| uint8_t | id {} |
| buffer id: [0..63] | |
pyWisp communication frame
|
inline |
pack value into Frame
use pack<typename>(value) to be explicit
|
inline |
unpack into value from Frame
use unPack<typename>(location) to be explicit
|
inline |
return unpacked value from Frame
can only be used explicitly as unpack<typename>