From 7960bd5e6be06629438366fb08b9a6143a44bc58 Mon Sep 17 00:00:00 2001 From: Wouter Date: Thu, 26 Oct 2023 11:45:46 +0100 Subject: [PATCH] add at listing in publisher and recipient table --- knx_iot_virtual_pb.cpp | 8 ++++++++ knx_iot_virtual_sa.cpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/knx_iot_virtual_pb.cpp b/knx_iot_virtual_pb.cpp index 3f052e6..24f9367 100644 --- a/knx_iot_virtual_pb.cpp +++ b/knx_iot_virtual_pb.cpp @@ -630,6 +630,10 @@ void MyFrame::OnPublisherTable(wxCommandEvent& event) sprintf(line, " path: '%s' ", oc_string(entry->path)); strcat(text, line); } + if (oc_string_len(entry->at) > 0){ + sprintf(line, " at: '%s' ", oc_string(entry->at)); + strcat(text, line); + } if ( entry->ga_len > 0) { strcpy(line," ga : ["); for (int i = 0; i < entry->ga_len; i++) { @@ -702,6 +706,10 @@ void MyFrame::OnRecipientTable(wxCommandEvent& event) sprintf(line, " path: '%s' ", oc_string(entry->path)); strcat(text, line); } + if (oc_string_len(entry->at) > 0){ + sprintf(line, " at: '%s' ", oc_string(entry->at)); + strcat(text, line); + } if ( entry->ga_len > 0) { strcpy(line," ga : ["); for (int i = 0; i < entry->ga_len; i++) { diff --git a/knx_iot_virtual_sa.cpp b/knx_iot_virtual_sa.cpp index d440c89..69128ec 100644 --- a/knx_iot_virtual_sa.cpp +++ b/knx_iot_virtual_sa.cpp @@ -654,6 +654,10 @@ void MyFrame::OnPublisherTable(wxCommandEvent& event) sprintf(line, " path: '%s' ", oc_string(entry->path)); strcat(text, line); } + if (oc_string_len(entry->at) > 0){ + sprintf(line, " at: '%s' ", oc_string(entry->at)); + strcat(text, line); + } if ( entry->ga_len > 0) { strcpy(line," ga : ["); for (int i = 0; i < entry->ga_len; i++) { @@ -726,6 +730,10 @@ void MyFrame::OnRecipientTable(wxCommandEvent& event) sprintf(line, " path: '%s' ", oc_string(entry->path)); strcat(text, line); } + if (oc_string_len(entry->at) > 0){ + sprintf(line, " at: '%s' ", oc_string(entry->at)); + strcat(text, line); + } if ( entry->ga_len > 0) { strcpy(line," ga : ["); for (int i = 0; i < entry->ga_len; i++) {