EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoChainedMessage Class Reference

#include <eoChainedMessage.h>

Inheritance diagram for eoChainedMessage:
Collaboration diagram for eoChainedMessage:

Public Member Functions

 eoChainedMessage (uint16_t maxSize)
 
eoReturn ProcessChunks ()
 
- Public Member Functions inherited from eoMessage
virtual eoReturn copyTo (eoMessage &msg) const
 
virtual void Clear ()
 
 eoMessage (uint16_t size=1)
 
 eoMessage (const eoTelegram &tel)
 
- Public Member Functions inherited from eoAbstractMessage
virtual eoReturn SetDataLength (uint16_t dataLen, bool reallocate=false)
 
virtual uint16_t GetDataLength () const
 
uint16_t GetMaxLength () const
 

Public Attributes

bool received
 Message has been processed.
 
uint8_t telCount
 Telegram Count for Messages.
 
uint8_t expectedTelCount
 Expected Telegram Count for Messages.
 
uint8_t seq
 Sequence of the chained message. Sequence is type of message identifier.
 
uint16_t expectedDataLength
 Expected data length of the chained message. Information should be contained in the header.
 
uint16_t sizeN
 Actual Payload Data size.
 
uint32_t timeStamp
 Time stamp of the first telegram. Used for Time-out functionality.
 
std::vector< eoChunkMessagedataChunks
 All Messages parts are located in the dataChunks array.
 
- Public Attributes inherited from eoMessage
uint8_t RORG
 RORG as specified by EnOcean.
 
uint8_t status
 status Information from device
 
uint8_t securityLevel
 Security level of the message.
 
uint32_t sourceID
 SourceID. More...
 
uint32_t destinationID
 the destination ID
 
- Public Attributes inherited from eoAbstractMessage
uint8_t * data
 Data Pointer.
 
uint16_t dataLength
 Payload data length.
 
uint16_t maxLength
 

Additional Inherited Members

- Protected Member Functions inherited from eoAbstractMessage
 eoAbstractMessage (uint16_t size=1)
 

Detailed Description

chainedMessage Helper Class, will be copied to normal eoMessage, when we finished receiving

Constructor & Destructor Documentation

◆ eoChainedMessage()

eoChainedMessage::eoChainedMessage ( uint16_t  maxSize)

Constructor.

Parameters
maxSizedefining the maximum size in bytes.

Member Function Documentation

◆ ProcessChunks()

eoReturn eoChainedMessage::ProcessChunks ( )

The Chunk messages will be processed and saved into the ChainedMessagedatabuffer

Returns