|
EnOcean Link
1.14.2.0
Middleware to Connect EnOcean easily to other Projects
|
Remote Commissioning interface class. More...
#include <eoReCom.h>
Public Member Functions | |
| eoReCom (eoGateway *gateway) | |
| bool | GetShallBeRepeated () const |
| void | SetShallBeRepeated (bool repeat) |
| bool | GetKeyToUse () const |
| void | SetKeyToUse (uint8_t key) |
| eoReturn | GetMetadata (uint32_t destinationID) |
| eoReturn | ParseGetMetadataResponse (QUERY_METADATA_RESPONSE &response) const |
| eoReturn | GetLinkTable (QUERY_LINK_TABLE const &query, uint32_t const destinationID) |
| eoReturn | ParseGetLinkTableResponse (std::vector< LINK_TABLE > &response, RECOM_TABLE_DIR &tableDir) const |
| eoReturn | SetLinkTable (std::vector< LINK_TABLE > const &query, RECOM_TABLE_DIR tableDir, uint32_t destinationID) |
| eoReturn | GetGPLinkTable (GP_LINK_TABLE const &query, uint32_t destinationID) |
| eoReturn | ParseGetGPLinkTableResponse (GP_LINK_TABLE &query) const |
| eoReturn | SetGPLinkTable (GP_LINK_TABLE const &query, uint32_t destinationID) |
| eoReturn | RemoteSetLearnMode (QUERY_SET_LEARN_MODE const &learnMode, uint32_t destinationID) |
| eoReturn | TriggerOutboundTeachRequest (uint8_t channel, uint32_t destinationID) |
| eoReturn | GetDeviceConfig (QUERY_DEVICE_CONFIG const &deviceConf, uint32_t destinationID) |
| eoReturn | ParseDeviceConfigResponse (std::vector< DEVICE_CONFIG > &deviceConf) const |
| eoReturn | SetDeviceConfig (std::vector< DEVICE_CONFIG > const &deviceConf, uint32_t destinationID) |
| eoReturn | GetLinkBasedConfig (QUERY_LINK_BASED_CONFIG const &linkConfig, uint32_t destinationID) |
| eoReturn | SetLinkBasedConfig (std::vector< LINK_BASED_CONFIG > const &linkConfig, uint32_t destinationID) |
| eoReturn | ParseLinkBasedConfigResponse (std::vector< LINK_BASED_CONFIG > &linkConfig) const |
| eoReturn | ApplyChanges (QUERY_APPLY_CHANGES const &changes, uint32_t destinationID) |
| eoReturn | ResetDefaults (QUERY_RESET_DEFAULTS const &defaults, uint32_t destinationID) |
| eoReturn | RadioLinkTest (QUERY_RADIO_LINK_TEST const &radioLink, uint32_t destinationID) |
| eoReturn | GetProductID (uint32_t destinationID=BROADCAST_ID) |
| eoReturn | ParseGetProductIDResponse (QUERY_PRODUCT_ID_RESPONSE &response) const |
| eoReturn | GetRepeater (uint32_t destinationID) |
| eoReturn | ParseGetRepeaterResponse (REPEATER_FUNCTIONS &response) const |
| eoReturn | SetRepeater (REPEATER_FUNCTIONS const &repeaterFunc, uint32_t destinationID) |
| eoReturn | SetRepeaterFilter (QUERY_SET_REPEATER_FILTER const &repeaterFunc, uint32_t destinationID) |
Remote Commissioning interface class.
This helper class, allows sending and parsing of different Remote Commissioning commands. The command parameter are wrapped in different parameter helper structs. For a detailed explanation of remote commissioning please consult the ReCom Spec.
| eoReCom::eoReCom | ( | eoGateway * | gateway | ) |
Constructor.
| gateway | eoGateway to be used for remote commissioning. |
| eoReturn eoReCom::ApplyChanges | ( | QUERY_APPLY_CHANGES const & | changes, |
| uint32_t | destinationID | ||
| ) |
Apply changes command. Unicast: yes Broadcast: no Command has paired response: no
| changes | QUERY_APPLY_CHANGES structure |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetDeviceConfig | ( | QUERY_DEVICE_CONFIG const & | deviceConf, |
| uint32_t | destinationID | ||
| ) |
Get device configuration query. Unicast: yes Broadcast: no Command has paired response: yes
| deviceConf | device configuration query arguments |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetGPLinkTable | ( | GP_LINK_TABLE const & | query, |
| uint32_t | destinationID | ||
| ) |
Get GP Link table command. Unicast: yes Broadcast: no Device response to command: yes
| query | GP_LINK_TABLE |
| destinationID | ID of the recom device to modify |
|
inline |
If greater 0, use the key x to encrypt
| eoReturn eoReCom::GetLinkBasedConfig | ( | QUERY_LINK_BASED_CONFIG const & | linkConfig, |
| uint32_t | destinationID | ||
| ) |
Get link based configuration query. Unicast: yes Broadcast: no Command has paired response: yes
| linkConfig | QUERY_LINK_BASED_CONFIG structure |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetLinkTable | ( | QUERY_LINK_TABLE const & | query, |
| uint32_t const | destinationID | ||
| ) |
Get link table command. Unicast: yes Broadcast: no Command has paired response: yes
| query | QUERY_LINK_TABLE structure |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetMetadata | ( | uint32_t | destinationID | ) |
Get link table metadata command. Unicast: yes Broadcast: no Command has paired response: yes
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetProductID | ( | uint32_t | destinationID = BROADCAST_ID | ) |
Get prodcut ID. Unicast: yes Broadcast: yes Command has paired response: yes
| destinationID | The device ID of the end device |
| eoReturn eoReCom::GetRepeater | ( | uint32_t | destinationID | ) |
Get repeater functions query. Unicast: yes Broadcast: no Command has paired response: yes
| destinationID | The device ID of the end device |
|
inline |
If true the send telegrams are set in such a state that they can be repeated
| eoReturn eoReCom::ParseDeviceConfigResponse | ( | std::vector< DEVICE_CONFIG > & | deviceConf | ) | const |
Parses the device config response
| deviceConf | vector to store the response, new elements will be pushed to the back of the vector |
| eoReturn eoReCom::ParseGetGPLinkTableResponse | ( | GP_LINK_TABLE & | query | ) | const |
Parses the GP Link table response
| query | response parsed |
| eoReturn eoReCom::ParseGetLinkTableResponse | ( | std::vector< LINK_TABLE > & | response, |
| RECOM_TABLE_DIR & | tableDir | ||
| ) | const |
With this command the actor parse the remote commission message into a LINK_TABLE structure. Unicast: yes Broadcast: no Command has paired response: yes
| [out] | response | Link Table response will be added to this pointer |
| [out] | tableDir | The table direction of the returned entries |
| eoReturn eoReCom::ParseGetMetadataResponse | ( | QUERY_METADATA_RESPONSE & | response | ) | const |
With this command the actor parse the remote commission message into a QUERY_METADATA_RESPONSE structure. Unicast: yes Broadcast: no Command has paired response: yes
| [out] | response | Metadata response |
| eoReturn eoReCom::ParseGetProductIDResponse | ( | QUERY_PRODUCT_ID_RESPONSE & | response | ) | const |
With this command the actor parse the remote commission message into a QUERY_PRODUCT_ID_RESPONSE structure. Unicast: yes Broadcast: yes Command has paired response: yes
| [out] | response | QUERY_PRODUCT_ID_RESPONSE structure |
| eoReturn eoReCom::ParseGetRepeaterResponse | ( | REPEATER_FUNCTIONS & | response | ) | const |
With this command the actor parse the remote commission message into a REPEATER_FUNCTIONS structure. Unicast: yes Broadcast: no Command has paired response: yes
| [out] | response | REPEATER_FUNCTIONS structure |
| eoReturn eoReCom::ParseLinkBasedConfigResponse | ( | std::vector< LINK_BASED_CONFIG > & | linkConfig | ) | const |
Parses the device config response
| linkConfig | vector to store the response, new elements will be pushed to the back of the vector |
| eoReturn eoReCom::RadioLinkTest | ( | QUERY_RADIO_LINK_TEST const & | radioLink, |
| uint32_t | destinationID | ||
| ) |
Radio link test control. Unicast: yes Broadcast: no Command has paired response: yes
| radioLink | QUERY_RADIO_LINK_TEST structure |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::RemoteSetLearnMode | ( | QUERY_SET_LEARN_MODE const & | learnMode, |
| uint32_t | destinationID | ||
| ) |
Remote set learn mode. Unicast: yes Broadcast: yes Command has paired response: no
| learnMode | Device learn mode |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::ResetDefaults | ( | QUERY_RESET_DEFAULTS const & | defaults, |
| uint32_t | destinationID | ||
| ) |
Reset to defaults. Unicast: yes Broadcast: yes Command has paired response: no
| defaults | QUERY_RESET_DEFAULTS structure |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::SetDeviceConfig | ( | std::vector< DEVICE_CONFIG > const & | deviceConf, |
| uint32_t | destinationID | ||
| ) |
Set device configuration. Unicast: yes Broadcast: no Command has paired response: no
| deviceConf | list of config parameters |
| destinationID | device ID |
| eoReturn eoReCom::SetGPLinkTable | ( | GP_LINK_TABLE const & | query, |
| uint32_t | destinationID | ||
| ) |
Set link table content command. Unicast: yes Broadcast: yes Command has paired response: no
| query | |
| destinationID |
|
inline |
| if | greater 0, use the key x to encrypt |
| eoReturn eoReCom::SetLinkBasedConfig | ( | std::vector< LINK_BASED_CONFIG > const & | linkConfig, |
| uint32_t | destinationID | ||
| ) |
Set Link based configuration query Unicast: yes Broadcast: no
| linkConfig | vector containing the parameters |
| destinationID |
| eoReturn eoReCom::SetLinkTable | ( | std::vector< LINK_TABLE > const & | query, |
| RECOM_TABLE_DIR | tableDir, | ||
| uint32_t | destinationID | ||
| ) |
Set link table content command. Unicast: yes Broadcast: yes Command has paired response: yes
| query | LINK_TABLE structures in a vector. |
| tableDir | The table direction of the entries |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::SetRepeater | ( | REPEATER_FUNCTIONS const & | repeaterFunc, |
| uint32_t | destinationID | ||
| ) |
Set repeater function. Unicast: yes Broadcast: no Command has paired response: no
| repeaterFunc | paramters to set |
| destinationID | The device ID of the end device |
| eoReturn eoReCom::SetRepeaterFilter | ( | QUERY_SET_REPEATER_FILTER const & | repeaterFunc, |
| uint32_t | destinationID | ||
| ) |
Set repeater function. Unicast: yes Broadcast: no Command has paired response: no
| repeaterFunc | filter to set |
| destinationID | The device ID of the end device |
|
inline |
| repeat | = if true, the send telegrams can be repeated |
| eoReturn eoReCom::TriggerOutboundTeachRequest | ( | uint8_t | channel, |
| uint32_t | destinationID | ||
| ) |
Trigger outbound remote teach request. Unicast: yes Broadcast: no Command has paired response: yes
| channel | Channel selection |
| destinationID | The device ID of the end device |