From d77b8990fe042809250a40d0b5ae4a47ab6ea877 Mon Sep 17 00:00:00 2001 From: Alexandru Tiniuc Date: Wed, 16 Aug 2023 10:19:22 +0100 Subject: [PATCH 1/2] fix hwmode to be hex string --- knx_iot_virtual_pb.c | 2 +- knx_iot_virtual_sa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/knx_iot_virtual_pb.c b/knx_iot_virtual_pb.c index 799c88a..285d8c5 100644 --- a/knx_iot_virtual_pb.c +++ b/knx_iot_virtual_pb.c @@ -435,7 +435,7 @@ app_init(void) /* set the hardware type*/ - oc_core_set_device_hwt(0, "LW0001"); + oc_core_set_device_hwt(0, "0001"); /* set the model */ oc_core_set_device_model(0, "KNX virtual - PB"); diff --git a/knx_iot_virtual_sa.c b/knx_iot_virtual_sa.c index c5f379b..5a8ff9c 100644 --- a/knx_iot_virtual_sa.c +++ b/knx_iot_virtual_sa.c @@ -479,7 +479,7 @@ app_init(void) /* set the hardware type*/ - oc_core_set_device_hwt(0, "LW0001"); + oc_core_set_device_hwt(0, "0001"); /* set the model */ oc_core_set_device_model(0, "KNX virtual - SA"); From 0824ee540104b7e4e2cb932d7a0cd63ed9818313 Mon Sep 17 00:00:00 2001 From: Alexandru Tiniuc Date: Wed, 16 Aug 2023 14:10:11 +0100 Subject: [PATCH 2/2] update version to 0.2.0 --- knx_iot_virtual_pb.c | 6 +++--- knx_iot_virtual_pb.cpp | 2 +- knx_iot_virtual_sa.c | 6 +++--- knx_iot_virtual_sa.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/knx_iot_virtual_pb.c b/knx_iot_virtual_pb.c index 285d8c5..ede98a2 100644 --- a/knx_iot_virtual_pb.c +++ b/knx_iot_virtual_pb.c @@ -409,7 +409,7 @@ void app_str_to_upper(char *str){ * - base path * - knx spec version * - hardware version : [0, 1, 3] - * - firmware version : [0, 1, 9] + * - firmware version : [0, 2, 0] * - hardware type : LW0001 * - device model : KNX virtual - PB * @@ -430,8 +430,8 @@ app_init(void) oc_core_set_device_hwv(0, 0, 1, 3); - /* set the firmware version 0.1.9 */ - oc_core_set_device_fwv(0, 0, 1, 9); + /* set the firmware version 0.2.0 */ + oc_core_set_device_fwv(0, 0, 2, 0); /* set the hardware type*/ diff --git a/knx_iot_virtual_pb.cpp b/knx_iot_virtual_pb.cpp index 1cb59fb..3f052e6 100644 --- a/knx_iot_virtual_pb.cpp +++ b/knx_iot_virtual_pb.cpp @@ -915,7 +915,7 @@ void MyFrame::OnAbout(wxCommandEvent& event) strcat(text,"model : KNX virtual - PB\n"); strcat(text,"hardware type : LW0001\n"); strcat(text,"hardware version : [0, 1, 3]\n"); - strcat(text,"firmware version : [0, 1, 9]\n\n"); + strcat(text,"firmware version : [0, 2, 0]\n\n"); strcat(text, "data points:\n"); strcat(text,"url:/p/o_1_1 rt:urn:knx:dpa.421.61 if:if.s inst:1 name:OnOff_1\n"); diff --git a/knx_iot_virtual_sa.c b/knx_iot_virtual_sa.c index 5a8ff9c..c60450c 100644 --- a/knx_iot_virtual_sa.c +++ b/knx_iot_virtual_sa.c @@ -453,7 +453,7 @@ void app_str_to_upper(char *str){ * - base path * - knx spec version * - hardware version : [0, 1, 3] - * - firmware version : [0, 1, 9] + * - firmware version : [0, 2, 0] * - hardware type : LW0001 * - device model : KNX virtual - SA * @@ -474,8 +474,8 @@ app_init(void) oc_core_set_device_hwv(0, 0, 1, 3); - /* set the firmware version 0.1.9 */ - oc_core_set_device_fwv(0, 0, 1, 9); + /* set the firmware version 0.2.0 */ + oc_core_set_device_fwv(0, 0, 2, 0); /* set the hardware type*/ diff --git a/knx_iot_virtual_sa.cpp b/knx_iot_virtual_sa.cpp index c90fc46..d440c89 100644 --- a/knx_iot_virtual_sa.cpp +++ b/knx_iot_virtual_sa.cpp @@ -939,7 +939,7 @@ void MyFrame::OnAbout(wxCommandEvent& event) strcat(text,"model : KNX virtual - SA\n"); strcat(text,"hardware type : LW0001\n"); strcat(text,"hardware version : [0, 1, 3]\n"); - strcat(text,"firmware version : [0, 1, 9]\n\n"); + strcat(text,"firmware version : [0, 2, 0]\n\n"); strcat(text, "data points:\n"); strcat(text,"url:/p/o_1_1 rt:urn:knx:dpa.417.61 if:if.a inst:1 name:OnOff_1\n");