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

creates Profiles More...

#include <eoProfileFactory.h>

Static Public Member Functions

static eoProfileCreateProfile (const eoMessage &msg)
 Returns eoProfile based on TEACH_IN Message. More...
 
static eoProfileCreateProfile (const uint8_t rorg, const uint8_t func, const uint8_t type)
 Returns eoProfile based on the specified rorg,func and type. More...
 

Detailed Description

creates Profiles

this helper class, helps you to create an EoProfile.

Member Function Documentation

◆ CreateProfile() [1/2]

static eoProfile* eoProfileFactory::CreateProfile ( const eoMessage msg)
static

Returns eoProfile based on TEACH_IN Message.

This helper function, will parse the TEACH_IN Message and when the profile is supported a pointer to the eoProfile or otherwise a null Pointer.

For Generic Profiles, the GP_TI Message will parsed, and a new eoGenericProfile will be returned.

Parameters
msgTEACH_IN Message to parse
Returns
a Pointer to the right eoProfile or NULL
Examples:
profile_examples.cpp, Security_example.cpp, sendTelegram_example.cpp, tutorial3.cpp, and vld_example.cpp.

◆ CreateProfile() [2/2]

static eoProfile* eoProfileFactory::CreateProfile ( const uint8_t  rorg,
const uint8_t  func,
const uint8_t  type 
)
static

Returns eoProfile based on the specified rorg,func and type.

This helper function, returns the specified eoProfile based on the rorg,func and type information or a null pointer if it is not supported.

Parameters
rorgsee [EEP]
funcsee [EEP]
typesee [EEP]
Returns
a Pointer to the right eoProfile or NULL