1
0
Fork 0

set FCTN name instead of UACN

This commit is contained in:
Kevin Matz 2021-07-30 09:31:16 -04:00
parent 82f5a61cb2
commit 96fa743548
5 changed files with 23 additions and 22 deletions

View File

@ -39,7 +39,7 @@ namespace ACN {
Appliance::Appliance(UUID::uuid cid)
: Component(cid)
{
assignUserName("libESTA ACN Appliance");
fctn_ = "libESTA ACN Appliance";
RlpRegisterVectorHandler(SDT::SDT_PROTOCOL_ID,
std::bind(&Appliance::SdtReceiver, this,

View File

@ -50,26 +50,27 @@ public:
void assignUserName(const std::string s) { uacn_ = s; }
protected:
// EPI 19: ACN Discovery on IP Networks
// 3. Component Name Strings
// Each component shall maintain two text identifier strings intended to
// indicate the function of the component in human readable terms for browsing
// purposes.
/**
* @brief 3.1. Fixed Component Type Name (FCTN)
* shall be a UTF-8 string that is assigned during manufacture.
*/
std::string fctn_;
/**
* @brief 3.2. User Assigned Component Name (UACN)
* shall be a UTF-8 string that may be assigned by the user.
*/
std::string uacn_;
private:
const UUID::uuid cid_;
// EPI 19: ACN Discovery on IP Networks
// 3. Component Name Strings
// Each component shall maintain two text identifier strings intended to
// indicate the function of the component in human readable terms for browsing
// purposes.
/**
* @brief 3.1. Fixed Component Type Name (FCTN)
* shall be a UTF-8 string that is assigned during manufacture.
*/
const std::string fctn_;
/**
* @brief 3.2. User Assigned Component Name (UACN)
* shall be a UTF-8 string that may be assigned by the user.
*/
std::string uacn_;
};
}; // ACN

View File

@ -5,7 +5,7 @@ namespace SACN {
Node::Node(UUID::uuid cid)
: Appliance(cid)
{
assignUserName("libESTA sACN Node");
fctn_ = "libESTA sACN Node";
}
} // SACN

View File

@ -35,7 +35,7 @@ namespace SACN {
Receiver::Receiver(UUID::uuid cid)
: Appliance(cid)
{
assignUserName("libESTA sACN Receiver");
fctn_ = "libESTA sACN Receiver";
RlpRegisterVectorHandler(VECTOR_ROOT_E131_DATA,
std::bind(&Receiver::dataReceiver, this, std::placeholders::_1));

View File

@ -32,7 +32,7 @@ namespace SACN {
Source::Source(UUID::uuid cid)
: Appliance(cid)
{
assignUserName("libESTA sACN Source");
fctn_ = "libESTA sACN Source";
}