Skip to content

Commit

Permalink
refactor: Changed the names of the new items when serialized in xml t…
Browse files Browse the repository at this point in the history
…o hide the implementation detail (Removed the "Default" prefix)
  • Loading branch information
chrisdutz committed Sep 30, 2024
1 parent 16feb76 commit afa1765
Show file tree
Hide file tree
Showing 19 changed files with 413 additions and 414 deletions.
8 changes: 4 additions & 4 deletions plc4go/assets/testing/protocols/ads/DriverTestsuite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,21 +1150,21 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<SymbolicAdsTag>
<symbolicAddress dataType="string" bitLength="128" encoding="UTF-8">MAIN.hurz_Struct</symbolicAddress>
</SymbolicAdsTag>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz>
</tags>
</PlcTagRequest>
</PlcReadRequest>
</request>
<values isList="true">
<hurz>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcStruct>
Expand Down Expand Up @@ -1236,7 +1236,7 @@
</hurz_DATE>
</PlcStruct>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz>
</values>
</PlcReadResponse>
Expand Down
8 changes: 4 additions & 4 deletions plc4go/assets/testing/protocols/eip/DriverTestsuite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,28 +398,28 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<EipTag>
<node dataType="string" bitLength="40" encoding="UTF-8">%rate</node>
<type dataType="string" bitLength="32" encoding="UTF-8">DINT</type>
<elementNb dataType="uint" bitLength="16">1</elementNb>
</EipTag>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz>
</tags>
</PlcTagRequest>
</PlcReadRequest>
</request>
<values isList="true">
<hurz>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcDINT dataType="int" bitLength="32">369229824</PlcDINT>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz>
</values>
</PlcReadResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,28 +97,28 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">0</address>
<numberOfElements dataType="uint" bitLength="16">1</numberOfElements>
<dataType dataType="string" bitLength="32" encoding="UTF-8">REAL</dataType>
</ModbusTagHoldingRegister>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz>
</tags>
</PlcTagRequest>
</PlcReadRequest>
</request>
<values isList="true">
<hurz>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz>
</values>
</PlcReadResponse>
Expand Down Expand Up @@ -194,31 +194,31 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">0</address>
<numberOfElements dataType="uint" bitLength="16">2</numberOfElements>
<dataType dataType="string" bitLength="32" encoding="UTF-8">REAL</dataType>
</ModbusTagHoldingRegister>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz>
</tags>
</PlcTagRequest>
</PlcReadRequest>
</request>
<values isList="true">
<hurz>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcList>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</PlcList>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz>
</values>
</PlcReadResponse>
Expand Down Expand Up @@ -298,47 +298,47 @@
<PlcTagRequest>
<tags isList="true">
<hurz1>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">0</address>
<numberOfElements dataType="uint" bitLength="16">1</numberOfElements>
<dataType dataType="string" bitLength="32" encoding="UTF-8">REAL</dataType>
</ModbusTagHoldingRegister>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz1>
<hurz2>
<DefaultPlcTagItem>
<PlcTagItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">2</address>
<numberOfElements dataType="uint" bitLength="16">1</numberOfElements>
<dataType dataType="string" bitLength="32" encoding="UTF-8">REAL</dataType>
</ModbusTagHoldingRegister>
</tag>
</DefaultPlcTagItem>
</PlcTagItem>
</hurz2>
</tags>
</PlcTagRequest>
</PlcReadRequest>
</request>
<values isList="true">
<hurz1>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz1>
<hurz2>
<DefaultPlcResponseItem>
<PlcResponseItem>
<code dataType="string" bitLength="16" encoding="UTF-8">OK</code>
<value>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</value>
</DefaultPlcResponseItem>
</PlcResponseItem>
</hurz2>
</values>
</PlcReadResponse>
Expand Down Expand Up @@ -417,7 +417,7 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagValueItem>
<PlcTagValueItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">0</address>
Expand All @@ -428,7 +428,7 @@
<value>
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</value>
</DefaultPlcTagValueItem>
</PlcTagValueItem>
</hurz>
</tags>
</PlcTagRequest>
Expand Down Expand Up @@ -516,7 +516,7 @@
<PlcTagRequest>
<tags isList="true">
<hurz>
<DefaultPlcTagValueItem>
<PlcTagValueItem>
<tag>
<ModbusTagHoldingRegister>
<address dataType="uint" bitLength="16">0</address>
Expand All @@ -530,7 +530,7 @@
<PlcREAL dataType="float" bitLength="32">3.1415927410125732</PlcREAL>
</PlcList>
</value>
</DefaultPlcTagValueItem>
</PlcTagValueItem>
</hurz>
</tags>
</PlcTagRequest>
Expand Down
Loading

0 comments on commit afa1765

Please sign in to comment.