EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
This is an example Integration for the AN513: Robust EnOcean networks
The Source Code of this Tutorial can be found here: WatcherMain.cpp
The eoWatcher class contains the function to detect possible security issues. It contains functions for a general security Detection (e.g. DOS) and device specific (e.g. REPLAY)
Using the
function one can add a specific device to check. If you set maxPerdiodTime and minPerdiodTime you assume that your device sends atleast every minPeriodTime and max maxPeriodTime.
Using the CheckSecurity you can check for securitiy issues using the information of the currently received telegram.
In the WatcherMain.cpp we use one instance of the eoWatcher Class to handle the possible Security Issue of our Gateway.
The exampe Function HandleSecResult(EO_SEC_WATCH_RESULT watchRes) would handle the different threats.
We add the handle function in the mainLoop of the application.