![]() |
rasProject_01 / weSweetHome
R. 146 2026-09-26
process control / RasPi software by weinert-automation
|
Structure for a defined remote command. More...
#include <sweetHome.h>
Data Fields | |
| char | command [22] |
| The command mnemonic. | |
| uint32_t | mask |
| The command value. | |
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.
| char command[22] |
The command mnemonic.
The maximum length is 20 characters. Usual values are 6..13 as in "raisePPSpower" or "onPlg01", e.g..
| uint32_t mask |
The command value.
The values used have usually 1 bit set. So commands given can be set in / ORed into a mask to be cleared a after been executed or obsoleted. command value (usually 1 bit set)