rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
Structure for a defined remote command. More...
#include <sweetHome.h>
Data Fields | |
char | command [22] |
command max. 20 characters | |
uint32_t | mask |
command value (usually 1 bit set) | |
Structure for a defined remote command.
This structure combines a command's short / mnemonic name used as query string, like "startPump", and the command's (cmdBits_t) bit value resp. mask usually defined as makro, like START_HWPUMP_COMMAND.
An array cmdLookUp_t cmdLookUp[] (e.g.) is used to define and look-up a command given in a query string. The array's end must be an entry {"", 0}, i.e. empty mnemonic and no command bit.