MQTT: update test project to reflect latest changes
--- a/tests/projects/mqtt_ssl/beremiz.xml Fri Oct 11 10:46:46 2024 +0200
+++ b/tests/projects/mqtt_ssl/beremiz.xml Fri Oct 11 10:49:07 2024 +0200
@@ -1,7 +1,7 @@
-<?xml version='1.0' encoding='utf-8'?>
-<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="PYRO://192.168.45.1:3000">
- <Libraries Enable_SVGHMI_Library="false"/>
+<?xml version='1.0' encoding='utf-8'?> +<BeremizRoot xmlns:xsd="http://www.w3.org/2001/XMLSchema" URI_location="PYRO://127.0.0.1:3000"> + <Libraries Enable_SVGHMI_Library="false" Enable_Native_Library="true" Enable_Python_Library="false"/> --- a/tests/projects/mqtt_ssl/mqtt_0@mqtt/baseconfnode.xml Fri Oct 11 10:46:46 2024 +0200
+++ b/tests/projects/mqtt_ssl/mqtt_0@mqtt/baseconfnode.xml Fri Oct 11 10:49:07 2024 +0200
@@ -1,2 +1,2 @@
-<?xml version='1.0' encoding='utf-8'?>
-<BaseParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" IEC_Channel="3" Name="mqtt_0"/>
+<?xml version='1.0' encoding='utf-8'?> +<BaseParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" IEC_Channel="3" Name="mqtt_0"/> --- a/tests/projects/mqtt_ssl/mqtt_0@mqtt/confnode.xml Fri Oct 11 10:46:46 2024 +0200
+++ b/tests/projects/mqtt_ssl/mqtt_0@mqtt/confnode.xml Fri Oct 11 10:49:07 2024 +0200
@@ -1,6 +1,6 @@
-<?xml version='1.0' encoding='utf-8'?>
-<MQTTClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Broker_URI="wss://192.168.19.25:18885">
- <x509 Client_certificate="" Broker_certificate="test-root-ca.crt" Verify_hostname="false"/>
+<?xml version='1.0' encoding='utf-8'?> +<MQTTClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Broker_URI="wss://192.168.19.25:18885"> + <x509 Client_certificate="" Broker_certificate="test-root-ca.crt" Verify_hostname="false"/> --- a/tests/projects/mqtt_ssl/mqtt_0@mqtt/selected.csv Fri Oct 11 10:46:46 2024 +0200
+++ b/tests/projects/mqtt_ssl/mqtt_0@mqtt/selected.csv Fri Oct 11 10:49:07 2024 +0200
@@ -1,2 +1,4 @@
-input,in_topic1,1,DINT,0
-output,out_topic1,1,False,DINT,0
+input,in_topiccc,1,outer,0 +input,in_topic1,1,DINT,1 +output,out_topiccc,1,False,datatype0,0 +output,out_topic1,1,False,DINT,1 --- a/tests/projects/mqtt_ssl/plc.xml Fri Oct 11 10:46:46 2024 +0200
+++ b/tests/projects/mqtt_ssl/plc.xml Fri Oct 11 10:49:07 2024 +0200
@@ -1,107 +1,377 @@
-<?xml version='1.0' encoding='utf-8'?>
-<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
- <fileHeader companyName="SMARTEH d.o.o." productName="LHC2_GOT_012" productVersion="1.1.359" creationDateTime="2024-07-25T15:43:22"/>
- <contentHeader name="mqtt" modificationDateTime="2024-08-21T17:05:30">
- <pou name="program0" pouType="program">
- <variable name="LocalVar0" address="%ID3.0">
- <variable name="LocalVar1">
- <variable name="LocalVar2" address="%QD3.0">
- <variable name="LocalVar3">
- <inVariable localId="1" executionOrderId="0" height="26" width="82" negated="false">
- <position x="173" y="47"/>
- <relPosition x="82" y="13"/>
- <expression>LocalVar0</expression>
- <outVariable localId="2" executionOrderId="0" height="26" width="82" negated="false">
- <position x="482" y="47"/>
- <relPosition x="0" y="13"/>
- <connection refLocalId="1">
- <position x="482" y="60"/>
- <position x="255" y="60"/>
- <expression>LocalVar1</expression>
- <outVariable localId="3" executionOrderId="0" height="26" width="82" negated="false">
- <position x="479" y="140"/>
- <relPosition x="0" y="13"/>
- <connection refLocalId="4">
- <position x="479" y="153"/>
- <position x="365" y="153"/>
- <position x="365" y="168"/>
- <position x="252" y="168"/>
- <expression>LocalVar2</expression>
- <inVariable localId="4" executionOrderId="0" height="26" width="82" negated="false">
- <position x="170" y="155"/>
- <relPosition x="82" y="13"/>
- <expression>LocalVar3</expression>
- <configuration name="config">
- <resource name="resource1">
- <task name="main_task" priority="0" interval="T#1000ms">
- <pouInstance name="instance0" typeName="program0"/>
+<?xml version='1.0' encoding='utf-8'?> +<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201"> + <fileHeader companyName="SMARTEH d.o.o." productName="LHC2_GOT_012" productVersion="1.1.359" creationDateTime="2024-07-25T15:43:22"/> + <contentHeader name="mqtt" modificationDateTime="2024-09-30T15:44:04"> + <dataType name="inner"> + <dataType name="outer"> + <derived name="inner"/> + <derived name="datatype1"/> + <dataType name="datatype0"> + <variable name="complex"> + <derived name="inner"/> + <derived name="datatype1"/> + <dataType name="datatype1"> + <dimension lower="1" upper="2"/> + <derived name="inner"/> + <pou name="program0" pouType="program"> + <variable name="LocalVar0" address="%ID3.1"> + <variable name="LocalVar1"> + <variable name="LocalVar2" address="%QD3.1"> + <variable name="LocalVar3"> + <variable name="LocalVar4" address="%I3.0"> + <derived name="outer"/> + <variable name="LocalVar5"> + <variable name="LocalVar6" address="%Q3.0"> + <derived name="datatype0"/> + <variable name="LocalVar8"> + <derived name="datatype0"/> + <variable name="LocalVar7"> + <variable name="GlobalVar0"> + <derived name="datatype0"/> + <variable name="Stringy"> + <variable name="Integery"> + <variable name="MQTT_STATUS_3"> + <inVariable localId="1" executionOrderId="0" height="27" width="82" negated="false"> + <position x="173" y="47"/> + <relPosition x="82" y="13"/> + <expression>LocalVar0</expression> + <outVariable localId="2" executionOrderId="0" height="27" width="82" negated="false"> + <position x="482" y="47"/> + <relPosition x="0" y="13"/> + <connection refLocalId="1"> + <position x="482" y="60"/> + <position x="255" y="60"/> + <expression>LocalVar1</expression> + <outVariable localId="3" executionOrderId="0" height="27" width="82" negated="false"> + <position x="479" y="140"/> + <relPosition x="0" y="13"/> + <connection refLocalId="4"> + <position x="479" y="153"/> + <position x="365" y="153"/> + <position x="365" y="168"/> + <position x="252" y="168"/> + <expression>LocalVar2</expression> + <inVariable localId="4" executionOrderId="0" height="27" width="82" negated="false"> + <position x="170" y="155"/> + <relPosition x="82" y="13"/> + <expression>LocalVar3</expression> + <inVariable localId="6" executionOrderId="0" height="27" width="122" negated="false"> + <position x="663" y="212"/> + <relPosition x="122" y="13"/> + <expression>LocalVar4.bb.b</expression> + <outVariable localId="7" executionOrderId="0" height="27" width="82" negated="false"> + <position x="852" y="213"/> + <relPosition x="0" y="13"/> + <connection refLocalId="6"> + <position x="852" y="226"/> + <position x="825" y="226"/> + <position x="825" y="225"/> + <position x="785" y="225"/> + <expression>LocalVar5</expression> + <inVariable localId="8" executionOrderId="0" height="27" width="82" negated="false"> + <position x="690" y="64"/> + <relPosition x="82" y="13"/> + <expression>LocalVar7</expression> + <outVariable localId="9" executionOrderId="0" height="27" width="114" negated="false"> + <position x="959" y="30"/> + <relPosition x="0" y="13"/> + <connection refLocalId="8"> + <position x="959" y="43"/> + <position x="866" y="43"/> + <position x="866" y="77"/> + <position x="772" y="77"/> + <expression>LocalVar6.kkk</expression> + <outVariable localId="10" executionOrderId="0" height="27" width="114" negated="false"> + <position x="948" y="78"/> + <relPosition x="0" y="13"/> + <connection refLocalId="8"> + <position x="948" y="91"/> + <position x="860" y="91"/> + <position x="860" y="77"/> + <position x="772" y="77"/> + <expression>LocalVar8.kkk</expression> + <outVariable localId="11" executionOrderId="0" height="27" width="122" negated="false"> + <position x="977" y="132"/> + <relPosition x="0" y="13"/> + <connection refLocalId="8"> + <position x="977" y="145"/> + <position x="874" y="145"/> + <position x="874" y="77"/> + <position x="772" y="77"/> + <expression>GlobalVar0.kkk</expression> + <inVariable localId="5" executionOrderId="0" height="27" width="122" negated="false"> + <position x="713" y="292"/> + <relPosition x="122" y="13"/> + <expression>LocalVar4.bb.c</expression> + <inOutVariable localId="12" executionOrderId="0" height="27" width="66" negatedOut="false" negatedIn="false"> + <position x="921" y="292"/> + <relPosition x="0" y="13"/> + <connection refLocalId="5"> + <position x="921" y="305"/> + <position x="835" y="305"/> + <relPosition x="66" y="13"/> + <expression>Stringy</expression> + <outVariable localId="14" executionOrderId="0" height="27" width="162" negated="false"> + <position x="1060" y="295"/> + <relPosition x="0" y="13"/> + <connection refLocalId="12"> + <position x="1060" y="308"/> + <position x="1024" y="308"/> + <position x="1024" y="305"/> + <position x="987" y="305"/> + <expression>LocalVar6.complex.c</expression> + <outVariable localId="15" executionOrderId="0" height="27" width="74" negated="false"> + <position x="760" y="340"/> + <relPosition x="0" y="13"/> + <connection refLocalId="16"> + <position x="760" y="353"/> + <position x="684" y="353"/> + <position x="684" y="356"/> + <position x="674" y="356"/> + <expression>Integery</expression> + <inVariable localId="16" executionOrderId="0" height="27" width="170" negated="false"> + <position x="504" y="343"/> + <relPosition x="170" y="13"/> + <expression>LocalVar4.dd[1].a</expression> + <configuration name="config"> + <resource name="resource1"> + <task name="main_task" priority="0" interval="T#1000ms"> + <pouInstance name="instance0" typeName="program0"/> + <variable name="GlobalVar0"> + <derived name="datatype0"/>