EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
every Communication from an EnOcean Device to another one consist out of one more Telegrams. The eoTelegram class contains the payload Data from one Telegram. More...
#include <eoTelegramERP2.h>
Public Member Functions | |
eoTelegramERP2 (const eoTelegramERP2 &telegram) | |
eoTelegramERP2 (uint16_t size) | |
virtual void | Clear () |
virtual eoReturn | copyTo (eoTelegramERP2 &msg) const |
virtual eoReturn | copyTo (eoTelegram &msg) const |
virtual eoReturn | copyTo (eoMessage &msg) const |
virtual eoReturn | SetDataLength (uint16_t dataLen, bool reallocate=false) |
uint8_t | GetOptionalDataLength () const |
eoReturn | SetOptionalDataLength (uint8_t u8Length) |
uint8_t | GetRepeaterCount (void) const |
eoReturn | SetRepeaterCount (uint8_t repCounter) |
Public Member Functions inherited from eoTelegram | |
eoTelegram (const eoTelegram &telegram) | |
eoTelegram (uint16_t size) | |
eoReturn | copyTo (eoMaintenanceMessage &msg) const |
Public Attributes | |
uint16_t | sourceIDMSB |
The Most significant 16bytes of a 48bit telegram. | |
SourceIDLength | sourceIDLength |
DestinationIDType | destIDLength |
uint8_t | optionalData [15] |
Public Attributes inherited from eoTelegram | |
int8_t | dBm |
strength of the last received Telegram | |
uint8_t | subtelCount |
number of Subtelegrams | |
Additional Inherited Members |
every Communication from an EnOcean Device to another one consist out of one more Telegrams. The eoTelegram class contains the payload Data from one Telegram.
a Telegram coming from a Device
eoTelegramERP2::eoTelegramERP2 | ( | const eoTelegramERP2 & | telegram | ) |
Copy Constructor
telegram |
eoTelegramERP2::eoTelegramERP2 | ( | uint16_t | size | ) |
Creates a new Telegram with the maximal datalength size
size | datalength |
|
virtual |
|
virtual |
Copies the content of this eoMessage to another eoMessage.
Copies the content of this eoMessage to another eoMessage.
Reimplemented from eoTelegram.
|
virtual |
Gets the dataLength, when reallocate is set to true, a new data Buffer is allocated if the new Size is bigger then the max Size
dataLen | new dataLen Size |
reallocate | Enables new allocation |
Reimplemented from eoAbstractMessage.