Skip to content

Commit

Permalink
Write full name incl Arduino Opta for object node name.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jul 26, 2024
1 parent 38abe0d commit e6ff951
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/expansion/AnalogExpansion.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AnalogExpansion : public Expansion
static SharedPtr create(UA_Server *server, UA_NodeId const parent_node_id, uint8_t const exp_num)
{
char display_name[64] = {0};
snprintf(display_name, sizeof(display_name), "Expansion %d: Analog", exp_num);
snprintf(display_name, sizeof(display_name), "Arduino Opta Expansion %d: Analog", exp_num);

char node_name[32] = {0};
snprintf(node_name, sizeof(node_name), "AnaExp_%d", exp_num);
Expand Down
2 changes: 1 addition & 1 deletion src/expansion/DigitalMechExpansion.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DigitalMechExpansion : public DigitalExpansion
static SharedPtr create(UA_Server *server, UA_NodeId const parent_node_id, uint8_t const exp_num)
{
char display_name[64] = {0};
snprintf(display_name, sizeof(display_name), "Expansion %d: Digital (Mechanical)", exp_num);
snprintf(display_name, sizeof(display_name), "Arduino Opta Expansion %d: Digital (Mechanical)", exp_num);

char node_name[32] = {0};
snprintf(node_name, sizeof(node_name), "DigExpSoli_%d", exp_num);
Expand Down
2 changes: 1 addition & 1 deletion src/expansion/DigitalStSolidExpansion.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DigitalStSolidExpansion : public DigitalExpansion
static SharedPtr create(UA_Server *server, UA_NodeId const parent_node_id, uint8_t const exp_num)
{
char display_name[64] = {0};
snprintf(display_name, sizeof(display_name), "Expansion %d: Digital (Solid State)", exp_num);
snprintf(display_name, sizeof(display_name), "Arduino Opta Expansion %d: Digital (Solid State)", exp_num);

char node_name[32] = {0};
snprintf(node_name, sizeof(node_name), "DigExpSoli_%d", exp_num);
Expand Down

0 comments on commit e6ff951

Please sign in to comment.