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

The minimal Interface for an eoWatcher class. More...

#include <eoIWatcher.h>

Inheritance diagram for eoIWatcher:
Collaboration diagram for eoIWatcher:

Public Member Functions

virtual uint32_t CheckSecurity (eoDevice const *const device, eoTelegram const &tel)
 checks the Security of a Device after Receiving a telegram. More...
 
virtual uint8_t Serialize (eoArchive &arch)
 

Public Attributes

uint8_t type
 Type of the eoIWatcher, this is used for the serialization.
 

Detailed Description

The minimal Interface for an eoWatcher class.

The CheckSecurity is called inside Gateway and stored as internal variable. This Interface allows you to implement an own security check algorithm which is called for every received telegram. The function eoIWatcher::CheckSecurity(eoDevice const * const device,eoTelegram const &tel) is always called in the Gateway after receiving a telegram. The result of the function can be accessed using the eoGateway::GetSecWatchResult()

Member Function Documentation

◆ CheckSecurity()

virtual uint32_t eoIWatcher::CheckSecurity ( eoDevice const *const  device,
eoTelegram const &  tel 
)
virtual

checks the Security of a Device after Receiving a telegram.

This function has to be called always after receiving a telegram!

Parameters
devicepointer to eoDevice to Check
tellast received telegram
Returns

Reimplemented in eoWatcher.

◆ Serialize()

virtual uint8_t eoIWatcher::Serialize ( eoArchive arch)
virtual

Serialization Function which will be called by the eoStorageManager This function will be called by the eoArchive(inside of the eoStorageManager) and allows the class to be Serialized.

Parameters
&archArchive where to Load or to Store.

Implements eoISerialize.

Reimplemented in eoWatcher.