EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
The Source Code of the Tutorial can be found here: tutorial2.cpp
This Tutorial will help you to understand how to load configurations, use the eoProfile::GetValue Function and how to send Telegrams.
In this example Application we've a configuration which contains the Information about a Temperature Sensor sending an EEP2.1-A5-02-05 4BS Telegram.
This Application will send a 1BS "Warning" Telegram, if we reach a temperature over 30 Degree Celsius.
Here is the example Configuration File:
As you can see all number values are stored in Hex, and must of the Configuration is self explaining.
If you've a Temperature Sensor at your dispose, and want to test this application you've to change both fields containg the ID:0x100867a, to your device ID.
After including the eoLink Header File and opening the connection the eoGateway the eoStorageManager has to load the eoGateway Configuration.
Loading and Storing use the same Object Information.
The next Step is to prepare the warning Telegram with a certain RORG and some data. We choose 1BS and 0xFF as data.
As in the previous example we use the return flags to check if we got Information about a Profile.
When we receive a temperature over 30 degree, we use eoGateway::Send() to send our definied 1BS Telegram.