#include <Device.h>
|
static bool | setup () |
|
static bool | add (const char *name, Device *pointer) |
| Registers an instance of Device, i.e. a devuce plugin in the static store More...
|
|
static String | list (String separator=", ") |
| Returns a String with alist of registered device plugins, appending " [disabled]" if needed. More...
|
|
static bool | new_packet (RawTimings &raw, Pulsetrain &train, Meaning &meaning) |
| Static, passes all 3 forms of an incoming packet to each non-disabled device plugin. More...
|
|
static bool | transmit (const String &plugin_name, const String &toTransmit) |
| static, passes a String to a named device's tx() function More...
|
|
Definition at line 32 of file Device.h.
◆ setup()
◆ add()
bool Device::add |
( |
const char * |
name, |
|
|
Device * |
pointer |
|
) |
| |
|
static |
Registers an instance of Device, i.e. a devuce plugin in the static store
- Parameters
-
name | (char*) Name of plugin, maximum MAX_DEVICE_NAME_LEN characters |
pointer | Pointer to the plugin instance |
- Returns
false
if store already holds info on MAX_DEVICES plugins
Definition at line 40 of file Device.cpp.
◆ list()
String Device::list |
( |
String |
separator = ", " | ) |
|
|
static |
Returns a String with alist of registered device plugins, appending " [disabled]" if needed.
- Parameters
-
separator | Between the names, e.g. ", " |
- Returns
- The list
Definition at line 56 of file Device.cpp.
◆ new_packet()
Static, passes all 3 forms of an incoming packet to each non-disabled device plugin.
- Parameters
-
raw | incoming packet |
train | incoming packet |
meaning | incoming packet |
- Returns
true
as soon as one of the plugin rx functions returns true
, false
otherwise
Definition at line 22 of file Device.cpp.
◆ transmit() [1/2]
bool Device::transmit |
( |
const String & |
plugin_name, |
|
|
const String & |
toTransmit |
|
) |
| |
|
static |
static, passes a String to a named device's tx()
function
- Parameters
-
plugin_name | name of plugin |
toTransmit | String to be passed to tx() |
- Returns
Definition at line 76 of file Device.cpp.
◆ receive()
virtual, to be overridden in de individual plugins
- Parameters
-
raw | incoming packet |
train | incoming packet |
meaning | incoming packet |
- Returns
false
if not overridden
Definition at line 92 of file Device.cpp.
◆ transmit() [2/2]
bool Device::transmit |
( |
const String & |
toTransmit | ) |
|
|
virtual |
virtual, to be overridden in de individual plugins
- Parameters
-
toTransmit | String for plugin to make sense of and be transmitted |
- Returns
false
if not overridden
Definition at line 99 of file Device.cpp.
◆ pointer
◆ name
◆ len
The documentation for this class was generated from the following files:
- /home/runner/work/OOKwiz/OOKwiz/main/src/Device.h
- /home/runner/work/OOKwiz/OOKwiz/main/src/Device.cpp