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

Serial Event base class. Use the parse Packet function to generate the right packet type. More...

#include <eoSerialEvents.h>

Inheritance diagram for eoSerialEvent:

Public Member Functions

SA_EVENT_TYPE getEventType () const
 Returns the event type. Can be used safely to cast the packet. More...
 

Static Public Member Functions

static eoSerialEventparsePacket (eoPacket &packet)
 Parses packet, checks if it is a serial event. More...
 

Protected Member Functions

eoPacketpreparePacket (uint8_t u8Length) const
 

Protected Attributes

SA_EVENT_TYPE event
 

Detailed Description

Serial Event base class. Use the parse Packet function to generate the right packet type.

Member Function Documentation

◆ getEventType()

SA_EVENT_TYPE eoSerialEvent::getEventType ( ) const
inline

Returns the event type. Can be used safely to cast the packet.

Returns
evenType as defined in the ESP3 spec.

◆ parsePacket()

static eoSerialEvent* eoSerialEvent::parsePacket ( eoPacket packet)
static

Parses packet, checks if it is a serial event.

Parameters
packetPacket to parse
Returns
null if packet is not an serial event