a class to describe an EnOcean Device
More...
#include <eoDevice.h>
a class to describe an EnOcean Device
this class contains all Information to handle a Device.
- Examples:
- deviceManager_example.cpp, and Security_example.cpp.
◆ eoDevice()
eoDevice::eoDevice |
( |
uint32_t |
id | ) |
|
Constructor.
- Parameters
-
id | EnOcean ID of the device. |
◆ GetMaintenanceKey()
eoReturn eoDevice::GetMaintenanceKey |
( |
uint8_t |
keyNumber, |
|
|
uint8_t |
key[16] |
|
) |
| |
Get a specific maintenance key.
- Parameters
-
Key | to get [1-15] |
key | array, in which the get key function writes |
- Returns
- OK or error code
◆ GetProfile()
◆ Serialize()
uint8_t eoDevice::Serialize |
( |
eoArchive & |
arch | ) |
|
|
virtual |
◆ SetMaintenanceKey()
eoReturn eoDevice::SetMaintenanceKey |
( |
uint8_t |
keyNumber, |
|
|
uint8_t |
key[16] |
|
) |
| |
Set a specific maintenance key which will be used fore secure communication.
- Parameters
-
Key | to get [1-15] |
key | array, in which the get key function writes |
- Returns
- OK or error code
◆ SetProfile() [1/2]
Sets an additional profile for the device.
If the same profile (RORG-FUNC-TYPE) identically , nothing happens. If a profile with the same RORG exist, the other one gets deleted.
If no profile with the same RORG exists for this device, an additional profile is created.
- Parameters
-
- Note
- this behavior changed in EoLink 1.11.0.0,
- Returns
- eoReturn::EO_OK or eoReturn::WRONG_PARAM if the passed profile has the same EEP
◆ SetProfile() [2/2]
eoReturn eoDevice::SetProfile |
( |
const uint8_t |
rorg, |
|
|
const uint8_t |
func, |
|
|
const uint8_t |
type |
|
) |
| |
Sets an additional profile for the device.
If the same profile (RORG-FUNC-TYPE) identically , nothing happens. If a profile with the same RORG exist, the other one gets deleted.
If no profile with the same RORG exists for this device, an additional profile is created.
If no profile can be created an error while be returned.
- Parameters
-
rorg | EEP RORG |
func | EEP Func |
type | EEP Type |
- Returns
- eoReturn::EO_OK or eoReturn::NOT_SUPPORTED
◆ dBm
◆ ID
ID of the Device
- Examples:
- deviceManager_example.cpp, Gateway_example.cpp, Gateway_SubtypeExample.cpp, GatewayFiltered_example.cpp, genericProfile_examples.cpp, tutorial1.cpp, tutorial2.cpp, tutorial3.cpp, tutorial6.cpp, vld_example.cpp, and WatcherMain.cpp.
◆ secIn
Security Information for decryption
◆ secOut