You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/07/20 21:10:06 UTC
[plc4x] branch develop updated: chore(build): Made the security scanner ignore the junit "vulnerability" as this is actually a false positive, as the reported CVE doesn't even effect Java libraries. Cleaned up the sandbox and made the plc4c code-gen tests pass again.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 8cdf2bb79 chore(build): Made the security scanner ignore the junit "vulnerability" as this is actually a false positive, as the reported CVE doesn't even effect Java libraries. Cleaned up the sandbox and made the plc4c code-gen tests pass again.
8cdf2bb79 is described below
commit 8cdf2bb79e15bc3831592e031e9d4e3dcf755e2b
Author: christoferdutz <ch...@c-ware.de>
AuthorDate: Wed Jul 20 23:09:58 2022 +0200
chore(build): Made the security scanner ignore the junit "vulnerability" as this is actually a false positive, as the reported CVE doesn't even effect Java libraries. Cleaned up the sandbox and made the plc4c code-gen tests pass again.
---
.../plc4x/language/c/CLanguageTemplateHelper.java | 2 +-
.../include/plc4c/driver_test_static.h | 8 +
.../src/main/resources/protocols/test/test.mspec | 5 +-
plc4j/drivers/mock/false-positives.xml | 27 +
plc4j/drivers/mock/pom.xml | 12 +
.../mqtt-c/generated-sources/mqtt/include/filter.h | 64 -
.../mqtt/include/mqt_t__control_packet.h | 201 --
.../mqtt/include/mqt_t__control_packet_type.h | 77 -
.../mqtt/include/mqt_t__property.h | 180 --
.../mqtt/include/mqt_t__property_type.h | 88 -
.../generated-sources/mqtt/include/mqt_t__qos.h | 64 -
.../mqtt/include/mqt_t__reason_code.h | 125 -
.../mqtt/include/mqt_t__retain_handling.h | 64 -
.../generated-sources/mqtt/include/mqt_t__string.h | 57 -
.../mqtt-c/generated-sources/mqtt/src/filter.c | 162 --
.../mqtt/src/mqt_t__control_packet.c | 2823 --------------------
.../mqtt/src/mqt_t__control_packet_type.c | 174 --
.../generated-sources/mqtt/src/mqt_t__property.c | 923 -------
.../mqtt/src/mqt_t__property_type.c | 240 --
.../mqtt-c/generated-sources/mqtt/src/mqt_t__qos.c | 96 -
.../mqtt/src/mqt_t__reason_code.c | 1393 ----------
.../mqtt/src/mqt_t__retain_handling.c | 96 -
.../generated-sources/mqtt/src/mqt_t__string.c | 89 -
.../protocols/mqtt/ParserSerializerTestsuite.xml | 81 -
.../src/drivers/mqtt/readwrite/model/Filter.cs | 53 -
.../mqtt/readwrite/model/MQTT_ControlPacket.cs | 43 -
.../mqtt/readwrite/model/MQTT_ControlPacketType.cs | 46 -
.../readwrite/model/MQTT_ControlPacket_AUTH.cs | 53 -
.../readwrite/model/MQTT_ControlPacket_CONNACK.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_CONNECT.cs | 75 -
.../model/MQTT_ControlPacket_DISCONNECT.cs | 49 -
.../readwrite/model/MQTT_ControlPacket_PINGREQ.cs | 47 -
.../readwrite/model/MQTT_ControlPacket_PINGRESP.cs | 47 -
.../readwrite/model/MQTT_ControlPacket_PUBACK.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_PUBCOMP.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_PUBLISH.cs | 63 -
.../readwrite/model/MQTT_ControlPacket_PUBREC.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_PUBREL.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_SUBACK.cs | 55 -
.../model/MQTT_ControlPacket_SUBSCRIBE.cs | 55 -
.../readwrite/model/MQTT_ControlPacket_UNSUBACK.cs | 55 -
.../model/MQTT_ControlPacket_UNSUBSCRIBE.cs | 55 -
.../drivers/mqtt/readwrite/model/MQTT_Property.cs | 46 -
.../mqtt/readwrite/model/MQTT_PropertyType.cs | 57 -
.../MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER.cs | 47 -
.../model/MQTT_Property_AUTHENTICATION_DATA.cs | 43 -
.../model/MQTT_Property_AUTHENTICATION_METHOD.cs | 47 -
.../readwrite/model/MQTT_Property_CONTENT_TYPE.cs | 47 -
.../model/MQTT_Property_CORRELATION_DATA.cs | 43 -
.../model/MQTT_Property_EXPIRY_INTERVAL.cs | 47 -
.../model/MQTT_Property_MAXIMUM_PACKET_SIZE.cs | 47 -
.../readwrite/model/MQTT_Property_MAXIMUM_QOS.cs | 47 -
.../model/MQTT_Property_MESSAGE_EXPIRY_INTERVAL.cs | 47 -
.../MQTT_Property_PAYLOAD_FORMAT_INDICATOR.cs | 47 -
.../readwrite/model/MQTT_Property_REASON_STRING.cs | 47 -
.../model/MQTT_Property_RECEIVE_MAXIMUM.cs | 47 -
.../MQTT_Property_REQUEST_PROBLEM_INFORMATION.cs | 47 -
.../MQTT_Property_REQUEST_RESPONSE_INFORMATION.cs | 47 -
.../model/MQTT_Property_RESPONSE_INFORMATION.cs | 47 -
.../model/MQTT_Property_RESPONSE_TOPIC.cs | 47 -
.../model/MQTT_Property_RETAIN_AVAILABLE.cs | 47 -
.../model/MQTT_Property_SERVER_KEEP_ALIVE.cs | 47 -
.../model/MQTT_Property_SERVER_REFERENCE.cs | 47 -
.../MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE.cs | 47 -
.../model/MQTT_Property_SUBSCRIPTION_IDENTIFIER.cs | 47 -
...T_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE.cs | 47 -
.../readwrite/model/MQTT_Property_TOPIC_ALIAS.cs | 47 -
.../model/MQTT_Property_TOPIC_ALIAS_MAXIMUM.cs | 47 -
.../readwrite/model/MQTT_Property_USER_PROPERTY.cs | 49 -
...QTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE.cs | 47 -
.../model/MQTT_Property_WILL_DELAY_INTERVAL.cs | 47 -
.../src/drivers/mqtt/readwrite/model/MQTT_QOS.cs | 33 -
.../mqtt/readwrite/model/MQTT_ReasonCode.cs | 1050 --------
.../mqtt/readwrite/model/MQTT_RetainHandling.cs | 33 -
.../drivers/mqtt/readwrite/model/MQTT_String.cs | 45 -
.../protocols/mqtt/ParserSerializerTestsuite.xml | 81 -
.../internal/plc4go/mqtt/readwrite/ParserHelper.go | 45 -
.../plc4go/mqtt/readwrite/XmlParserHelper.go | 55 -
.../internal/plc4go/mqtt/readwrite/model/Filter.go | 261 --
.../mqtt/readwrite/model/MQTT_ControlPacket.go | 198 --
.../mqtt/readwrite/model/MQTT_ControlPacketType.go | 225 --
.../readwrite/model/MQTT_ControlPacket_AUTH.go | 296 --
.../readwrite/model/MQTT_ControlPacket_CONNACK.go | 341 ---
.../readwrite/model/MQTT_ControlPacket_CONNECT.go | 591 ----
.../model/MQTT_ControlPacket_DISCONNECT.go | 218 --
.../readwrite/model/MQTT_ControlPacket_PINGREQ.go | 187 --
.../readwrite/model/MQTT_ControlPacket_PINGRESP.go | 187 --
.../readwrite/model/MQTT_ControlPacket_PUBACK.go | 326 ---
.../readwrite/model/MQTT_ControlPacket_PUBCOMP.go | 326 ---
.../readwrite/model/MQTT_ControlPacket_PUBLISH.go | 392 ---
.../readwrite/model/MQTT_ControlPacket_PUBREC.go | 326 ---
.../readwrite/model/MQTT_ControlPacket_PUBREL.go | 326 ---
.../readwrite/model/MQTT_ControlPacket_SUBACK.go | 332 ---
.../model/MQTT_ControlPacket_SUBSCRIBE.go | 332 ---
.../readwrite/model/MQTT_ControlPacket_UNSUBACK.go | 332 ---
.../model/MQTT_ControlPacket_UNSUBSCRIBE.go | 332 ---
.../plc4go/mqtt/readwrite/model/MQTT_Property.go | 233 --
.../mqtt/readwrite/model/MQTT_PropertyType.go | 313 ---
.../MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER.go | 169 --
.../model/MQTT_Property_AUTHENTICATION_DATA.go | 137 -
.../model/MQTT_Property_AUTHENTICATION_METHOD.go | 169 --
.../readwrite/model/MQTT_Property_CONTENT_TYPE.go | 169 --
.../model/MQTT_Property_CORRELATION_DATA.go | 137 -
.../model/MQTT_Property_EXPIRY_INTERVAL.go | 158 --
.../model/MQTT_Property_MAXIMUM_PACKET_SIZE.go | 158 --
.../readwrite/model/MQTT_Property_MAXIMUM_QOS.go | 158 --
.../model/MQTT_Property_MESSAGE_EXPIRY_INTERVAL.go | 158 --
.../MQTT_Property_PAYLOAD_FORMAT_INDICATOR.go | 158 --
.../readwrite/model/MQTT_Property_REASON_STRING.go | 169 --
.../model/MQTT_Property_RECEIVE_MAXIMUM.go | 158 --
.../MQTT_Property_REQUEST_PROBLEM_INFORMATION.go | 158 --
.../MQTT_Property_REQUEST_RESPONSE_INFORMATION.go | 158 --
.../model/MQTT_Property_RESPONSE_INFORMATION.go | 169 --
.../model/MQTT_Property_RESPONSE_TOPIC.go | 169 --
.../model/MQTT_Property_RETAIN_AVAILABLE.go | 158 --
.../model/MQTT_Property_SERVER_KEEP_ALIVE.go | 158 --
.../model/MQTT_Property_SERVER_REFERENCE.go | 169 --
.../MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE.go | 158 --
.../model/MQTT_Property_SUBSCRIPTION_IDENTIFIER.go | 158 --
...T_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE.go | 158 --
.../readwrite/model/MQTT_Property_TOPIC_ALIAS.go | 158 --
.../model/MQTT_Property_TOPIC_ALIAS_MAXIMUM.go | 158 --
.../readwrite/model/MQTT_Property_USER_PROPERTY.go | 200 --
...QTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE.go | 158 --
.../model/MQTT_Property_WILL_DELAY_INTERVAL.go | 158 --
.../plc4go/mqtt/readwrite/model/MQTT_QOS.go | 121 -
.../plc4go/mqtt/readwrite/model/MQTT_ReasonCode.go | 1470 ----------
.../mqtt/readwrite/model/MQTT_RetainHandling.go | 121 -
.../plc4go/mqtt/readwrite/model/MQTT_String.go | 147 -
sandbox/plc-simulator/pom.xml | 35 -
sandbox/pom.xml | 54 +-
sandbox/test-java-df1-driver/pom.xml | 2 +-
132 files changed, 69 insertions(+), 23028 deletions(-)
diff --git a/code-generation/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java b/code-generation/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java
index d55dbab4f..58d309354 100644
--- a/code-generation/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java
+++ b/code-generation/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java
@@ -800,7 +800,7 @@ public class CLanguageTemplateHelper extends BaseFreemarkerLanguageTemplateHelpe
// If the literal is referencing a constant field, we need to reference the constant variable instead.
final Optional<NamedField> namedField = ((ComplexTypeDefinition) baseType).getNamedFieldByName(name);
if(namedField.isPresent() && namedField.get() instanceof ConstField) {
- return getCTypeName(baseType.getName()).toUpperCase() + "_" + name.toUpperCase() + "()";
+ return getCTypeName(baseType.getName()).toUpperCase() + "_" + camelCaseToSnakeCase(name).toUpperCase() + "()";
}
// Try to find the type of the addressed property.
diff --git a/code-generation/language-c/src/test/resources/integration-test/include/plc4c/driver_test_static.h b/code-generation/language-c/src/test/resources/integration-test/include/plc4c/driver_test_static.h
index 1f49b523f..302974f2b 100644
--- a/code-generation/language-c/src/test/resources/integration-test/include/plc4c/driver_test_static.h
+++ b/code-generation/language-c/src/test/resources/integration-test/include/plc4c/driver_test_static.h
@@ -21,6 +21,14 @@
#define PLC4C_TEST_READ_WRITE_DRIVER_H_
// Dummy
+#include <stdint.h>
+#include <plc4c/spi/read_buffer.h>
+#include <plc4c/spi/write_buffer.h>
+
+int8_t plc4c_test_read_write_crc_int8();
+uint8_t plc4c_test_read_write_crc_uint8();
+uint8_t plc4c_test_read_write_read_manual_field(plc4c_spi_read_buffer* readBuffer, uint8_t value);
+plc4c_return_code plc4c_test_read_write_write_manual_field(plc4c_spi_write_buffer* writeBuffer, void* value);
#ifdef __cplusplus
}
diff --git a/code-generation/protocol-test/src/main/resources/protocols/test/test.mspec b/code-generation/protocol-test/src/main/resources/protocols/test/test.mspec
index f9f5a7142..ad2c16aae 100644
--- a/code-generation/protocol-test/src/main/resources/protocols/test/test.mspec
+++ b/code-generation/protocol-test/src/main/resources/protocols/test/test.mspec
@@ -354,7 +354,8 @@
//Test to check if we can include concrete types as fields. Doesn't work in any language at the moment.
-[discriminatedType SimpleDiscriminatedType
+// TODO: Currently C doesn't support directly referencing child types
+/*[discriminatedType SimpleDiscriminatedType
[discriminator uint 8 discr]
[typeSwitch discr
['0x00' *A
@@ -370,7 +371,7 @@
[simple uint 8 simpA]
]
]
-]
+]*/
////////////////////////////////////////////////////////////////
// Enumerated Type Tests
diff --git a/plc4j/drivers/mock/false-positives.xml b/plc4j/drivers/mock/false-positives.xml
new file mode 100644
index 000000000..a954ca81a
--- /dev/null
+++ b/plc4j/drivers/mock/false-positives.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.2.xsd">
+ <suppress>
+ <notes><![CDATA[
+ The plugin is reporting this CVE which actually shouldn't be affecting any Java application.
+ ]]></notes>
+ <cve>CVE-2022-31514</cve>
+ </suppress>
+</suppressions>
diff --git a/plc4j/drivers/mock/pom.xml b/plc4j/drivers/mock/pom.xml
index 7c431634f..30ff0ee68 100644
--- a/plc4j/drivers/mock/pom.xml
+++ b/plc4j/drivers/mock/pom.xml
@@ -31,6 +31,18 @@
<name>PLC4J: Driver: Mock</name>
<description>Implementation of a PLC4X driver Mock usable in Unit-Tests.</description>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.owasp</groupId>
+ <artifactId>dependency-check-maven</artifactId>
+ <configuration>
+ <suppressionFiles>${project.basedir}/false-positives.xml</suppressionFiles>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<dependencies>
<dependency>
<groupId>org.apache.plc4x</groupId>
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/filter.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/filter.h
deleted file mode 100644
index 1775d9fe1..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/filter.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_FILTER_H_
-#define PLC4C_MQTT_READ_WRITE_FILTER_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-#include <plc4c/utils/list.h>
-#include "mqt_t__retain_handling.h"
-#include "mqt_t__string.h"
-#include "mqt_t__qos.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-struct plc4c_mqtt_read_write_filter {
- /* Properties */
- plc4c_mqtt_read_write_mqt_t__string* filter;
- plc4c_mqtt_read_write_mqt_t__retain_handling retain_handling;
- bool retain : 1;
- bool no_local : 1;
- plc4c_mqtt_read_write_mqt_t__qos max_qos;
-};
-typedef struct plc4c_mqtt_read_write_filter plc4c_mqtt_read_write_filter;
-
-// Create an empty NULL-struct
-plc4c_mqtt_read_write_filter plc4c_mqtt_read_write_filter_null();
-
-plc4c_return_code plc4c_mqtt_read_write_filter_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_filter** message);
-
-plc4c_return_code plc4c_mqtt_read_write_filter_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_filter* message);
-
-uint16_t plc4c_mqtt_read_write_filter_length_in_bytes(plc4c_mqtt_read_write_filter* message);
-
-uint16_t plc4c_mqtt_read_write_filter_length_in_bits(plc4c_mqtt_read_write_filter* message);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // PLC4C_MQTT_READ_WRITE_FILTER_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet.h
deleted file mode 100644
index 1534633bb..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet.h
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-#include <plc4c/utils/list.h>
-#include "mqt_t__reason_code.h"
-#include "filter.h"
-#include "mqt_t__string.h"
-#include "mqt_t__qos.h"
-#include "mqt_t__property.h"
-#include "mqt_t__control_packet_type.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Structure used to contain the discriminator values for discriminated types using this as a parent
-struct plc4c_mqtt_read_write_mqt_t__control_packet_discriminator {
- enum plc4c_mqtt_read_write_mqt_t__control_packet_type packetType;
-};
-typedef struct plc4c_mqtt_read_write_mqt_t__control_packet_discriminator plc4c_mqtt_read_write_mqt_t__control_packet_discriminator;
-
-// Enum assigning each sub-type an individual id.
-enum plc4c_mqtt_read_write_mqt_t__control_packet_type {
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connect = 0,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connack = 1,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__publish = 2,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__puback = 3,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrec = 4,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrel = 5,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubcomp = 6,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__subscribe = 7,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__suback = 8,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsubscribe = 9,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsuback = 10,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingreq = 11,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingresp = 12,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__disconnect = 13,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__auth = 14};
-typedef enum plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type;
-
-// Function to get the discriminator values for a given type.
-plc4c_mqtt_read_write_mqt_t__control_packet_discriminator plc4c_mqtt_read_write_mqt_t__control_packet_get_discriminator(plc4c_mqtt_read_write_mqt_t__control_packet_type type);
-
-struct plc4c_mqtt_read_write_mqt_t__control_packet {
- /* This is an abstract type so this property saves the type of this typed union */
- plc4c_mqtt_read_write_mqt_t__control_packet_type _type;
- /* Properties */
- union {
- struct { /* MQTT_ControlPacket_CONNECT */
- uint8_t mqt_t__control_packet__connect_remaining_length;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__control_packet__connect_protocol_name;
- uint8_t mqt_t__control_packet__connect_protocol_version;
- bool mqt_t__control_packet__connect_user_name_flag_set : 1;
- bool mqt_t__control_packet__connect_password_flag_set : 1;
- bool mqt_t__control_packet__connect_will_retain_flag_set : 1;
- uint8_t mqt_t__control_packet__connect_will_qos_level : 2;
- bool mqt_t__control_packet__connect_will_flag_set : 1;
- bool mqt_t__control_packet__connect_clean_start_flag_set : 1;
- uint16_t mqt_t__control_packet__connect_keep_alive;
- uint32_t mqt_t__control_packet__connect_property_length;
- plc4c_list* mqt_t__control_packet__connect_properties;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__control_packet__connect_client_id;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__control_packet__connect_username;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__control_packet__connect_password;
- };
- struct { /* MQTT_ControlPacket_CONNACK */
- uint8_t mqt_t__control_packet__connack_remaining_length;
- bool mqt_t__control_packet__connack_session_present_flag_set : 1;
- plc4c_mqtt_read_write_mqt_t__reason_code mqt_t__control_packet__connack_reason_code;
- uint32_t* mqt_t__control_packet__connack_property_length;
- plc4c_list* mqt_t__control_packet__connack_properties;
- };
- struct { /* MQTT_ControlPacket_PUBLISH */
- bool mqt_t__control_packet__publish_dup : 1;
- plc4c_mqtt_read_write_mqt_t__qos mqt_t__control_packet__publish_qos;
- bool mqt_t__control_packet__publish_retain : 1;
- uint8_t mqt_t__control_packet__publish_remaining_length;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__control_packet__publish_topic_name;
- uint16_t* mqt_t__control_packet__publish_packet_identifier;
- uint32_t* mqt_t__control_packet__publish_property_length;
- plc4c_list* mqt_t__control_packet__publish_properties;
- plc4c_list* mqt_t__control_packet__publish_payload;
- };
- struct { /* MQTT_ControlPacket_PUBACK */
- uint8_t mqt_t__control_packet__puback_remaining_length;
- uint16_t mqt_t__control_packet__puback_packet_identifier;
- plc4c_mqtt_read_write_mqt_t__reason_code* mqt_t__control_packet__puback_reason_code;
- uint32_t* mqt_t__control_packet__puback_property_length;
- plc4c_list* mqt_t__control_packet__puback_properties;
- };
- struct { /* MQTT_ControlPacket_PUBREC */
- uint8_t mqt_t__control_packet__pubrec_remaining_length;
- uint16_t mqt_t__control_packet__pubrec_packet_identifier;
- plc4c_mqtt_read_write_mqt_t__reason_code* mqt_t__control_packet__pubrec_reason_code;
- uint32_t* mqt_t__control_packet__pubrec_property_length;
- plc4c_list* mqt_t__control_packet__pubrec_properties;
- };
- struct { /* MQTT_ControlPacket_PUBREL */
- uint8_t mqt_t__control_packet__pubrel_remaining_length;
- uint16_t mqt_t__control_packet__pubrel_packet_identifier;
- plc4c_mqtt_read_write_mqt_t__reason_code* mqt_t__control_packet__pubrel_reason_code;
- uint32_t* mqt_t__control_packet__pubrel_property_length;
- plc4c_list* mqt_t__control_packet__pubrel_properties;
- };
- struct { /* MQTT_ControlPacket_PUBCOMP */
- uint8_t mqt_t__control_packet__pubcomp_remaining_length;
- uint16_t mqt_t__control_packet__pubcomp_packet_identifier;
- plc4c_mqtt_read_write_mqt_t__reason_code* mqt_t__control_packet__pubcomp_reason_code;
- uint32_t* mqt_t__control_packet__pubcomp_property_length;
- plc4c_list* mqt_t__control_packet__pubcomp_properties;
- };
- struct { /* MQTT_ControlPacket_SUBSCRIBE */
- uint8_t mqt_t__control_packet__subscribe_remaining_length;
- uint16_t mqt_t__control_packet__subscribe_packet_identifier;
- uint32_t* mqt_t__control_packet__subscribe_property_length;
- plc4c_list* mqt_t__control_packet__subscribe_properties;
- plc4c_list* mqt_t__control_packet__subscribe_filters;
- };
- struct { /* MQTT_ControlPacket_SUBACK */
- uint8_t mqt_t__control_packet__suback_remaining_length;
- uint16_t mqt_t__control_packet__suback_packet_identifier;
- uint32_t* mqt_t__control_packet__suback_property_length;
- plc4c_list* mqt_t__control_packet__suback_properties;
- plc4c_list* mqt_t__control_packet__suback_results;
- };
- struct { /* MQTT_ControlPacket_UNSUBSCRIBE */
- uint8_t mqt_t__control_packet__unsubscribe_remaining_length;
- uint16_t mqt_t__control_packet__unsubscribe_packet_identifier;
- uint32_t* mqt_t__control_packet__unsubscribe_property_length;
- plc4c_list* mqt_t__control_packet__unsubscribe_properties;
- plc4c_list* mqt_t__control_packet__unsubscribe_filters;
- };
- struct { /* MQTT_ControlPacket_UNSUBACK */
- uint8_t mqt_t__control_packet__unsuback_remaining_length;
- uint16_t mqt_t__control_packet__unsuback_packet_identifier;
- uint32_t* mqt_t__control_packet__unsuback_property_length;
- plc4c_list* mqt_t__control_packet__unsuback_properties;
- plc4c_list* mqt_t__control_packet__unsuback_results;
- };
- struct { /* MQTT_ControlPacket_PINGREQ */
- uint8_t mqt_t__control_packet__pingreq_remaining_length;
- };
- struct { /* MQTT_ControlPacket_PINGRESP */
- uint8_t mqt_t__control_packet__pingresp_remaining_length;
- };
- struct { /* MQTT_ControlPacket_DISCONNECT */
- uint8_t mqt_t__control_packet__disconnect_remaining_length;
- plc4c_mqtt_read_write_mqt_t__reason_code mqt_t__control_packet__disconnect_reason;
- };
- struct { /* MQTT_ControlPacket_AUTH */
- uint8_t mqt_t__control_packet__auth_remaining_length;
- plc4c_mqtt_read_write_mqt_t__reason_code mqt_t__control_packet__auth_reason;
- uint32_t* mqt_t__control_packet__auth_property_length;
- plc4c_list* mqt_t__control_packet__auth_properties;
- };
- };
-};
-typedef struct plc4c_mqtt_read_write_mqt_t__control_packet plc4c_mqtt_read_write_mqt_t__control_packet;
-
-// Create an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__control_packet plc4c_mqtt_read_write_mqt_t__control_packet_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__control_packet** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__control_packet* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_length_in_bytes(plc4c_mqtt_read_write_mqt_t__control_packet* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_length_in_bits(plc4c_mqtt_read_write_mqt_t__control_packet* message);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet_type.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet_type.h
deleted file mode 100644
index 768897bb1..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__control_packet_type.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_TYPE_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_TYPE_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum plc4c_mqtt_read_write_mqt_t__control_packet_type {
- plc4c_mqtt_read_write_mqt_t__control_packet_type_RESERVED = 0x0,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNECT = 0x1,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNACK = 0x2,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBLISH = 0x3,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBACK = 0x4,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREC = 0x5,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREL = 0x6,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBCOMP = 0x7,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBSCRIBE = 0x8,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBACK = 0x9,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBSCRIBE = 0xA,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBACK = 0xB,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGREQ = 0xC,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGRESP = 0xD,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_DISCONNECT = 0xE,
- plc4c_mqtt_read_write_mqt_t__control_packet_type_AUTH = 0xF
-};
-typedef enum plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type;
-
-// Get an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_type_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__control_packet_type** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_type_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__control_packet_type* message);
-
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_value_of(char* value_string);
-
-int plc4c_mqtt_read_write_mqt_t__control_packet_type_num_values();
-
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_value_for_index(int index);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_type_length_in_bytes(plc4c_mqtt_read_write_mqt_t__control_packet_type* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_type_length_in_bits(plc4c_mqtt_read_write_mqt_t__control_packet_type* message);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__CONTROL_PACKET_TYPE_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property.h
deleted file mode 100644
index fde6d5301..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property.h
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-#include <plc4c/utils/list.h>
-#include "mqt_t__string.h"
-#include "mqt_t__property_type.h"
-#include "mqt_t__property_type.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Structure used to contain the discriminator values for discriminated types using this as a parent
-struct plc4c_mqtt_read_write_mqt_t__property_discriminator {
- enum plc4c_mqtt_read_write_mqt_t__property_type propertyType;
-};
-typedef struct plc4c_mqtt_read_write_mqt_t__property_discriminator plc4c_mqtt_read_write_mqt_t__property_discriminator;
-
-// Enum assigning each sub-type an individual id.
-enum plc4c_mqtt_read_write_mqt_t__property_type {
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__payloa_d__forma_t__indicator = 0,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__messag_e__expir_y__interval = 1,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__conten_t__type = 2,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__topic = 3,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__correlatio_n__data = 4,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifier = 5,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__expir_y__interval = 6,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__assigne_d__clien_t__identifier = 7,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__kee_p__alive = 8,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__method = 9,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__data = 10,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__proble_m__information = 11,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wil_l__dela_y__interval = 12,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__respons_e__information = 13,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__information = 14,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__reference = 15,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reaso_n__string = 16,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__receiv_e__maximum = 17,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alia_s__maximum = 18,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alias = 19,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__qos = 20,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__retai_n__available = 21,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__use_r__property = 22,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__packe_t__size = 23,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wildcar_d__subscriptio_n__available = 24,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifie_r__available = 25,
- plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__share_d__subscriptio_n__available = 26};
-typedef enum plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type;
-
-// Function to get the discriminator values for a given type.
-plc4c_mqtt_read_write_mqt_t__property_discriminator plc4c_mqtt_read_write_mqt_t__property_get_discriminator(plc4c_mqtt_read_write_mqt_t__property_type type);
-
-struct plc4c_mqtt_read_write_mqt_t__property {
- /* This is an abstract type so this property saves the type of this typed union */
- plc4c_mqtt_read_write_mqt_t__property_type _type;
- /* Properties */
- plc4c_mqtt_read_write_mqt_t__property_type property_type;
- union {
- struct { /* MQTT_Property_PAYLOAD_FORMAT_INDICATOR */
- uint8_t mqt_t__property__payloa_d__forma_t__indicator_value;
- };
- struct { /* MQTT_Property_MESSAGE_EXPIRY_INTERVAL */
- uint32_t mqt_t__property__messag_e__expir_y__interval_value;
- };
- struct { /* MQTT_Property_CONTENT_TYPE */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__conten_t__type_value;
- };
- struct { /* MQTT_Property_RESPONSE_TOPIC */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__respons_e__topic_value;
- };
- struct { /* MQTT_Property_SUBSCRIPTION_IDENTIFIER */
- uint32_t mqt_t__property__subscriptio_n__identifier_value;
- };
- struct { /* MQTT_Property_EXPIRY_INTERVAL */
- uint32_t mqt_t__property__expir_y__interval_value;
- };
- struct { /* MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__assigne_d__clien_t__identifier_value;
- };
- struct { /* MQTT_Property_SERVER_KEEP_ALIVE */
- uint16_t mqt_t__property__serve_r__kee_p__alive_value;
- };
- struct { /* MQTT_Property_AUTHENTICATION_METHOD */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__authenticatio_n__method_value;
- };
- struct { /* MQTT_Property_REQUEST_PROBLEM_INFORMATION */
- uint8_t mqt_t__property__reques_t__proble_m__information_value;
- };
- struct { /* MQTT_Property_WILL_DELAY_INTERVAL */
- uint32_t mqt_t__property__wil_l__dela_y__interval_value;
- };
- struct { /* MQTT_Property_REQUEST_RESPONSE_INFORMATION */
- uint8_t mqt_t__property__reques_t__respons_e__information_value;
- };
- struct { /* MQTT_Property_RESPONSE_INFORMATION */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__respons_e__information_value;
- };
- struct { /* MQTT_Property_SERVER_REFERENCE */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__serve_r__reference_value;
- };
- struct { /* MQTT_Property_REASON_STRING */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__reaso_n__string_value;
- };
- struct { /* MQTT_Property_RECEIVE_MAXIMUM */
- uint16_t mqt_t__property__receiv_e__maximum_value;
- };
- struct { /* MQTT_Property_TOPIC_ALIAS_MAXIMUM */
- uint16_t mqt_t__property__topi_c__alia_s__maximum_value;
- };
- struct { /* MQTT_Property_TOPIC_ALIAS */
- uint16_t mqt_t__property__topi_c__alias_value;
- };
- struct { /* MQTT_Property_MAXIMUM_QOS */
- uint8_t mqt_t__property__maximu_m__qos_value;
- };
- struct { /* MQTT_Property_RETAIN_AVAILABLE */
- uint8_t mqt_t__property__retai_n__available_value;
- };
- struct { /* MQTT_Property_USER_PROPERTY */
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__use_r__property_name;
- plc4c_mqtt_read_write_mqt_t__string* mqt_t__property__use_r__property_value;
- };
- struct { /* MQTT_Property_MAXIMUM_PACKET_SIZE */
- uint32_t mqt_t__property__maximu_m__packe_t__size_value;
- };
- struct { /* MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE */
- uint8_t mqt_t__property__wildcar_d__subscriptio_n__available_value;
- };
- struct { /* MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE */
- uint8_t mqt_t__property__subscriptio_n__identifie_r__available_value;
- };
- struct { /* MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE */
- uint8_t mqt_t__property__share_d__subscriptio_n__available_value;
- };
- };
-};
-typedef struct plc4c_mqtt_read_write_mqt_t__property plc4c_mqtt_read_write_mqt_t__property;
-
-// Create an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__property plc4c_mqtt_read_write_mqt_t__property_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__property** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__property* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_length_in_bytes(plc4c_mqtt_read_write_mqt_t__property* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_length_in_bits(plc4c_mqtt_read_write_mqt_t__property* message);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property_type.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property_type.h
deleted file mode 100644
index dd379d8de..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__property_type.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_TYPE_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_TYPE_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum plc4c_mqtt_read_write_mqt_t__property_type {
- plc4c_mqtt_read_write_mqt_t__property_type_PAYLOAD_FORMAT_INDICATOR = 0x01,
- plc4c_mqtt_read_write_mqt_t__property_type_MESSAGE_EXPIRY_INTERVAL = 0x02,
- plc4c_mqtt_read_write_mqt_t__property_type_CONTENT_TYPE = 0x03,
- plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_TOPIC = 0x08,
- plc4c_mqtt_read_write_mqt_t__property_type_CORRELATION_DATA = 0x09,
- plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER = 0x0B,
- plc4c_mqtt_read_write_mqt_t__property_type_SESSION_EXPIRY_INTERVAL = 0x11,
- plc4c_mqtt_read_write_mqt_t__property_type_ASSIGNED_CLIENT_IDENTIFIER = 0x12,
- plc4c_mqtt_read_write_mqt_t__property_type_SERVER_KEEP_ALIVE = 0x13,
- plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_METHOD = 0x15,
- plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_DATA = 0x16,
- plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_PROBLEM_INFORMATION = 0x17,
- plc4c_mqtt_read_write_mqt_t__property_type_WILL_DELAY_INTERVAL = 0x18,
- plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_RESPONSE_INFORMATION = 0x19,
- plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_INFORMATION = 0x1A,
- plc4c_mqtt_read_write_mqt_t__property_type_SERVER_REFERENCE = 0x1C,
- plc4c_mqtt_read_write_mqt_t__property_type_REASON_STRING = 0x1F,
- plc4c_mqtt_read_write_mqt_t__property_type_RECEIVE_MAXIMUM = 0x21,
- plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS_MAXIMUM = 0x22,
- plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS = 0x23,
- plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_QOS = 0x24,
- plc4c_mqtt_read_write_mqt_t__property_type_RETAIN_AVAILABLE = 0x25,
- plc4c_mqtt_read_write_mqt_t__property_type_USER_PROPERTY = 0x26,
- plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_PACKET_SIZE = 0x27,
- plc4c_mqtt_read_write_mqt_t__property_type_WILDCARD_SUBSCRIPTION_AVAILABLE = 0x28,
- plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER_AVAILABLE = 0x29,
- plc4c_mqtt_read_write_mqt_t__property_type_SHARED_SUBSCRIPTION_AVAILABLE = 0x2A
-};
-typedef enum plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type;
-
-// Get an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_type_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__property_type** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_type_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__property_type* message);
-
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_value_of(char* value_string);
-
-int plc4c_mqtt_read_write_mqt_t__property_type_num_values();
-
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_value_for_index(int index);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_type_length_in_bytes(plc4c_mqtt_read_write_mqt_t__property_type* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_type_length_in_bits(plc4c_mqtt_read_write_mqt_t__property_type* message);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__PROPERTY_TYPE_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__qos.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__qos.h
deleted file mode 100644
index 47a554b16..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__qos.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__QOS_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__QOS_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum plc4c_mqtt_read_write_mqt_t__qos {
- plc4c_mqtt_read_write_mqt_t__qos_AT_MOST_ONCE = 0x0,
- plc4c_mqtt_read_write_mqt_t__qos_AT_LEAST_ONCE = 0x1,
- plc4c_mqtt_read_write_mqt_t__qos_EXACTLY_ONCE = 0x2
-};
-typedef enum plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos;
-
-// Get an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__qos_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__qos** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__qos_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__qos* message);
-
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_value_of(char* value_string);
-
-int plc4c_mqtt_read_write_mqt_t__qos_num_values();
-
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_value_for_index(int index);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__qos_length_in_bytes(plc4c_mqtt_read_write_mqt_t__qos* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__qos_length_in_bits(plc4c_mqtt_read_write_mqt_t__qos* message);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__QOS_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__reason_code.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__reason_code.h
deleted file mode 100644
index 1cdce73e9..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__reason_code.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__REASON_CODE_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__REASON_CODE_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum plc4c_mqtt_read_write_mqt_t__reason_code {
- plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS = 0X00,
- plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1 = 0X01,
- plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2 = 0X02,
- plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE = 0X04,
- plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS = 0x10,
- plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED = 0x11,
- plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION = 0X18,
- plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE = 0X19,
- plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR = 0X80,
- plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET = 0X81,
- plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR = 0X82,
- plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR = 0X83,
- plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION = 0X84,
- plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID = 0X85,
- plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD = 0X86,
- plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED = 0X87,
- plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE = 0X88,
- plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY = 0X89,
- plc4c_mqtt_read_write_mqt_t__reason_code_BANNED = 0X8A,
- plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN = 0X8B,
- plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD = 0X8C,
- plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT = 0X8D,
- plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER = 0X8E,
- plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID = 0X8F,
- plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID = 0X90,
- plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE = 0X91,
- plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND = 0X92,
- plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED = 0X93,
- plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID = 0X94,
- plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE = 0X95,
- plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH = 0X96,
- plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED = 0X97,
- plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION = 0X98,
- plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID = 0X99,
- plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED = 0X9A,
- plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED = 0X9B,
- plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER = 0X9C,
- plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED = 0X9D,
- plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED = 0X9E,
- plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED = 0X9F,
- plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME = 0XA0,
- plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED = 0XA1,
- plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED = 0XA2
-};
-typedef enum plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code;
-
-// Get an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__reason_code_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__reason_code** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__reason_code_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__reason_code* message);
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_value_of(char* value_string);
-
-int plc4c_mqtt_read_write_mqt_t__reason_code_num_values();
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_value_for_index(int index);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_disconnect_reason(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_disconnect_reason(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_unsuback_response(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_unsuback_response(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_suback_response(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_suback_response(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_auth_reason(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_auth_reason(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_pubrel_pubcomp_response(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_pubrel_pubcomp_response(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_puback_pubrec_response(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_puback_pubrec_response(bool value);
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_connack_response(plc4c_mqtt_read_write_mqt_t__reason_code value);
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_connack_response(bool value);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bytes(plc4c_mqtt_read_write_mqt_t__reason_code* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(plc4c_mqtt_read_write_mqt_t__reason_code* message);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__REASON_CODE_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__retain_handling.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__retain_handling.h
deleted file mode 100644
index 6c34e4b95..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__retain_handling.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__RETAIN_HANDLING_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__RETAIN_HANDLING_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum plc4c_mqtt_read_write_mqt_t__retain_handling {
- plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_THE_SUBSCRIBE = 0x0,
- plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_SUBSCRIBE_ONLY_IF_THE_SUBSCRIPTION_DOES_NOT_CURRENTLY_EXIST = 0x1,
- plc4c_mqtt_read_write_mqt_t__retain_handling_DO_NOT_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_SUBSCRIBE = 0x2
-};
-typedef enum plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling;
-
-// Get an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__retain_handling_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__retain_handling** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__retain_handling_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__retain_handling* message);
-
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_value_of(char* value_string);
-
-int plc4c_mqtt_read_write_mqt_t__retain_handling_num_values();
-
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_value_for_index(int index);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bytes(plc4c_mqtt_read_write_mqt_t__retain_handling* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bits(plc4c_mqtt_read_write_mqt_t__retain_handling* message);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__RETAIN_HANDLING_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__string.h b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__string.h
deleted file mode 100644
index c534687b4..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/include/mqt_t__string.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#ifndef PLC4C_MQTT_READ_WRITE_MQT_T__STRING_H_
-#define PLC4C_MQTT_READ_WRITE_MQT_T__STRING_H_
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <plc4c/driver_mqtt_static.h>
-#include <plc4c/spi/read_buffer.h>
-#include <plc4c/spi/write_buffer.h>
-#include <plc4c/utils/list.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-struct plc4c_mqtt_read_write_mqt_t__string {
- /* Properties */
- char* value;
-};
-typedef struct plc4c_mqtt_read_write_mqt_t__string plc4c_mqtt_read_write_mqt_t__string;
-
-// Create an empty NULL-struct
-plc4c_mqtt_read_write_mqt_t__string plc4c_mqtt_read_write_mqt_t__string_null();
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__string_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__string** message);
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__string_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__string* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__string_length_in_bytes(plc4c_mqtt_read_write_mqt_t__string* message);
-
-uint16_t plc4c_mqtt_read_write_mqt_t__string_length_in_bits(plc4c_mqtt_read_write_mqt_t__string* message);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // PLC4C_MQTT_READ_WRITE_MQT_T__STRING_H_
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/filter.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/filter.c
deleted file mode 100644
index 5c102a715..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/filter.c
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <stdio.h>
-#include <plc4c/spi/evaluation_helper.h>
-#include "filter.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_filter_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_filter** _message) {
- uint16_t startPos = plc4c_spi_read_get_pos(readBuffer);
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_filter));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- // Simple Field (filter)
- plc4c_mqtt_read_write_mqt_t__string* filter;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &filter);
- if(_res != OK) {
- return _res;
- }
- (*_message)->filter = filter;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 2, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
- // Simple Field (retainHandling)
- plc4c_mqtt_read_write_mqt_t__retain_handling* retainHandling;
- _res = plc4c_mqtt_read_write_mqt_t__retain_handling_parse(readBuffer, (void*) &retainHandling);
- if(_res != OK) {
- return _res;
- }
- (*_message)->retain_handling = *retainHandling;
-
- // Simple Field (retain)
- bool retain = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &retain);
- if(_res != OK) {
- return _res;
- }
- (*_message)->retain = retain;
-
- // Simple Field (noLocal)
- bool noLocal = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &noLocal);
- if(_res != OK) {
- return _res;
- }
- (*_message)->no_local = noLocal;
-
- // Simple Field (maxQos)
- plc4c_mqtt_read_write_mqt_t__qos* maxQos;
- _res = plc4c_mqtt_read_write_mqt_t__qos_parse(readBuffer, (void*) &maxQos);
- if(_res != OK) {
- return _res;
- }
- (*_message)->max_qos = *maxQos;
-
- return OK;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_filter_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_filter* _message) {
- plc4c_return_code _res = OK;
-
- // Simple Field (filter)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->filter);
- if(_res != OK) {
- return _res;
- }
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 2, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (retainHandling)
- _res = plc4c_mqtt_read_write_mqt_t__retain_handling_serialize(writeBuffer, &_message->retain_handling);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (retain)
- _res = plc4c_spi_write_bit(writeBuffer, _message->retain);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (noLocal)
- _res = plc4c_spi_write_bit(writeBuffer, _message->no_local);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (maxQos)
- _res = plc4c_mqtt_read_write_mqt_t__qos_serialize(writeBuffer, &_message->max_qos);
- if(_res != OK) {
- return _res;
- }
-
- return OK;
-}
-
-uint16_t plc4c_mqtt_read_write_filter_length_in_bytes(plc4c_mqtt_read_write_filter* _message) {
- return plc4c_mqtt_read_write_filter_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_filter_length_in_bits(plc4c_mqtt_read_write_filter* _message) {
- uint16_t lengthInBits = 0;
-
- // Simple field (filter)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->filter);
-
- // Reserved Field (reserved)
- lengthInBits += 2;
-
- // Simple field (retainHandling)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bits(&_message->retain_handling);
-
- // Simple field (retain)
- lengthInBits += 1;
-
- // Simple field (noLocal)
- lengthInBits += 1;
-
- // Simple field (maxQos)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__qos_length_in_bits(&_message->max_qos);
-
- return lengthInBits;
-}
-
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet.c
deleted file mode 100644
index 40caf405a..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet.c
+++ /dev/null
@@ -1,2823 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <stdio.h>
-#include <plc4c/spi/evaluation_helper.h>
-#include "mqt_t__control_packet.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-// Array of discriminator values that match the enum type constants.
-// (The order is identical to the enum constants so we can use the
-// enum constant to directly access a given types discriminator values)
-const plc4c_mqtt_read_write_mqt_t__control_packet_discriminator plc4c_mqtt_read_write_mqt_t__control_packet_discriminators[] = {
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__connect */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNECT },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__connack */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNACK },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__publish */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBLISH },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__puback */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBACK },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__pubrec */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREC },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__pubrel */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREL },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__pubcomp */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBCOMP },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__subscribe */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBSCRIBE },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__suback */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBACK },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__unsubscribe */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBSCRIBE },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__unsuback */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBACK },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__pingreq */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGREQ },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__pingresp */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGRESP },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__disconnect */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_DISCONNECT },
- {/* plc4c_mqtt_read_write_mqt_t__control_packet__auth */
- .packetType = plc4c_mqtt_read_write_mqt_t__control_packet_type_AUTH }
-
-};
-
-// Function returning the discriminator values for a given type constant.
-plc4c_mqtt_read_write_mqt_t__control_packet_discriminator plc4c_mqtt_read_write_mqt_t__control_packet_get_discriminator(plc4c_mqtt_read_write_mqt_t__control_packet_type type) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_discriminators[type];
-}
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__control_packet plc4c_mqtt_read_write_mqt_t__control_packet_null_const;
-
-plc4c_mqtt_read_write_mqt_t__control_packet plc4c_mqtt_read_write_mqt_t__control_packet_null() {
- return plc4c_mqtt_read_write_mqt_t__control_packet_null_const;
-}
-
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__control_packet** _message) {
- uint16_t startPos = plc4c_spi_read_get_pos(readBuffer);
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__control_packet));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
- // Discriminator Field (packetType)
- enum plc4c_mqtt_read_write_mqt_t__control_packet_type packetType;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &packetType);
- if(_res != OK) {
- return _res;
- }
-
- // Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type)
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNECT) { /* MQTT_ControlPacket_CONNECT */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connect;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_remaining_length = remainingLength;
-
-
-
- // Simple Field (protocolName)
- plc4c_mqtt_read_write_mqt_t__string* protocolName;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &protocolName);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_protocol_name = protocolName;
-
-
-
- // Simple Field (protocolVersion)
- uint8_t protocolVersion = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &protocolVersion);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_protocol_version = protocolVersion;
-
-
-
- // Simple Field (userNameFlagSet)
- bool userNameFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &userNameFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_user_name_flag_set = userNameFlagSet;
-
-
-
- // Simple Field (passwordFlagSet)
- bool passwordFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &passwordFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_password_flag_set = passwordFlagSet;
-
-
-
- // Simple Field (willRetainFlagSet)
- bool willRetainFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &willRetainFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_will_retain_flag_set = willRetainFlagSet;
-
-
-
- // Simple Field (willQosLevel)
- uint8_t willQosLevel = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 2, (uint8_t*) &willQosLevel);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_will_qos_level = willQosLevel;
-
-
-
- // Simple Field (willFlagSet)
- bool willFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &willFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_will_flag_set = willFlagSet;
-
-
-
- // Simple Field (cleanStartFlagSet)
- bool cleanStartFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &cleanStartFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_clean_start_flag_set = cleanStartFlagSet;
-
-
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- bool _reserved = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != false) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", false, _reserved);
- }
- }
-
-
-
- // Simple Field (keepAlive)
- uint16_t keepAlive = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &keepAlive);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_keep_alive = keepAlive;
-
-
-
- // Simple Field (propertyLength)
- uint32_t propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_property_length = propertyLength;
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = propertyLength;
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__connect_properties = properties;
-
-
-
- // Simple Field (clientId)
- plc4c_mqtt_read_write_mqt_t__string* clientId;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &clientId);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_client_id = clientId;
-
-
-
- // Optional Field (username) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__string* username = NULL;
- if(userNameFlagSet) {
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, &username);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_username = username;
- } else {
- (*_message)->mqt_t__control_packet__connect_username = NULL;
- }
-
-
-
- // Optional Field (password) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__string* password = NULL;
- if(passwordFlagSet) {
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, &password);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connect_password = password;
- } else {
- (*_message)->mqt_t__control_packet__connect_password = NULL;
- }
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNACK) { /* MQTT_ControlPacket_CONNACK */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connack;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connack_remaining_length = remainingLength;
-
-
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 7, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x00) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x00, _reserved);
- }
- }
-
-
-
- // Simple Field (sessionPresentFlagSet)
- bool sessionPresentFlagSet = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &sessionPresentFlagSet);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connack_session_present_flag_set = sessionPresentFlagSet;
-
-
-
- // Simple Field (reasonCode)
- plc4c_mqtt_read_write_mqt_t__reason_code* reasonCode;
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, (void*) &reasonCode);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connack_reason_code = *reasonCode;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__connack_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__connack_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__connack_properties = properties;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBLISH) { /* MQTT_ControlPacket_PUBLISH */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__publish;
-
- // Simple Field (dup)
- bool dup = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &dup);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_dup = dup;
-
-
-
- // Simple Field (qos)
- plc4c_mqtt_read_write_mqt_t__qos* qos;
- _res = plc4c_mqtt_read_write_mqt_t__qos_parse(readBuffer, (void*) &qos);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_qos = *qos;
-
-
-
- // Simple Field (retain)
- bool retain = false;
- _res = plc4c_spi_read_bit(readBuffer, (bool*) &retain);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_retain = retain;
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_remaining_length = remainingLength;
-
-
-
- // Simple Field (topicName)
- plc4c_mqtt_read_write_mqt_t__string* topicName;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &topicName);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_topic_name = topicName;
-
-
-
- // Optional Field (packetIdentifier) (Can be skipped, if a given expression evaluates to false)
- uint16_t* packetIdentifier = NULL;
- if((qos) != (plc4c_mqtt_read_write_mqt_t__qos_AT_MOST_ONCE)) {
- packetIdentifier = malloc(sizeof(uint16_t));
- if(packetIdentifier == NULL) {
- return NO_MEMORY;
- }
- *packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_packet_identifier = packetIdentifier;
- } else {
- (*_message)->mqt_t__control_packet__publish_packet_identifier = NULL;
- }
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__publish_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__publish_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__publish_properties = properties;
-
-
-
- // Array field (payload)
- plc4c_list* payload = NULL;
- plc4c_utils_list_create(&payload);
- if(payload == NULL) {
- return NO_MEMORY;
- }
- {
- // Count array
- uint16_t itemCount = (uint16_t) (remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos));
- for(int curItem = 0; curItem < itemCount; curItem++) {
-
- char* _value = malloc(sizeof(char));
- _res = plc4c_spi_read_char(readBuffer, (char*) _value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(payload, _value);
- }
- }
- (*_message)->mqt_t__control_packet__publish_payload = payload;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBACK) { /* MQTT_ControlPacket_PUBACK */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__puback;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__puback_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__puback_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (reasonCode) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__reason_code* reasonCode = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (3)) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, &reasonCode);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__puback_reason_code = reasonCode;
- } else {
- (*_message)->mqt_t__control_packet__puback_reason_code = NULL;
- }
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__puback_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__puback_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__puback_properties = properties;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREC) { /* MQTT_ControlPacket_PUBREC */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrec;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrec_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrec_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (reasonCode) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__reason_code* reasonCode = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (3)) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, &reasonCode);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrec_reason_code = reasonCode;
- } else {
- (*_message)->mqt_t__control_packet__pubrec_reason_code = NULL;
- }
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrec_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__pubrec_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__pubrec_properties = properties;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREL) { /* MQTT_ControlPacket_PUBREL */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrel;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrel_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrel_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (reasonCode) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__reason_code* reasonCode = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (3)) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, &reasonCode);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrel_reason_code = reasonCode;
- } else {
- (*_message)->mqt_t__control_packet__pubrel_reason_code = NULL;
- }
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubrel_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__pubrel_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__pubrel_properties = properties;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBCOMP) { /* MQTT_ControlPacket_PUBCOMP */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubcomp;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubcomp_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubcomp_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (reasonCode) (Can be skipped, if a given expression evaluates to false)
- plc4c_mqtt_read_write_mqt_t__reason_code* reasonCode = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (3)) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, &reasonCode);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubcomp_reason_code = reasonCode;
- } else {
- (*_message)->mqt_t__control_packet__pubcomp_reason_code = NULL;
- }
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pubcomp_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__pubcomp_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__pubcomp_properties = properties;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBSCRIBE) { /* MQTT_ControlPacket_SUBSCRIBE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__subscribe;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__subscribe_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__subscribe_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__subscribe_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__subscribe_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__subscribe_properties = properties;
-
-
-
- // Array field (filters)
- plc4c_list* filters = NULL;
- plc4c_utils_list_create(&filters);
- if(filters == NULL) {
- return NO_MEMORY;
- }
- {
- // Count array
- uint16_t itemCount = (uint16_t) (remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos));
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_filter* _value = NULL;
- _res = plc4c_mqtt_read_write_filter_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(filters, _value);
- }
- }
- (*_message)->mqt_t__control_packet__subscribe_filters = filters;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBACK) { /* MQTT_ControlPacket_SUBACK */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__suback;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__suback_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__suback_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__suback_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__suback_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__suback_properties = properties;
-
-
-
- // Array field (results)
- plc4c_list* results = NULL;
- plc4c_utils_list_create(&results);
- if(results == NULL) {
- return NO_MEMORY;
- }
- {
- // Count array
- uint16_t itemCount = (uint16_t) (remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos));
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__reason_code* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(results, _value);
- }
- }
- (*_message)->mqt_t__control_packet__suback_results = results;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBSCRIBE) { /* MQTT_ControlPacket_UNSUBSCRIBE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsubscribe;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsubscribe_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsubscribe_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsubscribe_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__unsubscribe_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__unsubscribe_properties = properties;
-
-
-
- // Array field (filters)
- plc4c_list* filters = NULL;
- plc4c_utils_list_create(&filters);
- if(filters == NULL) {
- return NO_MEMORY;
- }
- {
- // Count array
- uint16_t itemCount = (uint16_t) (remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos));
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__string* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(filters, _value);
- }
- }
- (*_message)->mqt_t__control_packet__unsubscribe_filters = filters;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBACK) { /* MQTT_ControlPacket_UNSUBACK */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsuback;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsuback_remaining_length = remainingLength;
-
-
-
- // Simple Field (packetIdentifier)
- uint16_t packetIdentifier = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &packetIdentifier);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsuback_packet_identifier = packetIdentifier;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__unsuback_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__unsuback_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__unsuback_properties = properties;
-
-
-
- // Array field (results)
- plc4c_list* results = NULL;
- plc4c_utils_list_create(&results);
- if(results == NULL) {
- return NO_MEMORY;
- }
- {
- // Count array
- uint16_t itemCount = (uint16_t) (remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos));
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__reason_code* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(results, _value);
- }
- }
- (*_message)->mqt_t__control_packet__unsuback_results = results;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGREQ) { /* MQTT_ControlPacket_PINGREQ */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingreq;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pingreq_remaining_length = remainingLength;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGRESP) { /* MQTT_ControlPacket_PINGRESP */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingresp;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__pingresp_remaining_length = remainingLength;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_DISCONNECT) { /* MQTT_ControlPacket_DISCONNECT */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__disconnect;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__disconnect_remaining_length = remainingLength;
-
-
-
- // Simple Field (reason)
- plc4c_mqtt_read_write_mqt_t__reason_code* reason;
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, (void*) &reason);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__disconnect_reason = *reason;
-
- } else
- if(packetType == plc4c_mqtt_read_write_mqt_t__control_packet_type_AUTH) { /* MQTT_ControlPacket_AUTH */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__auth;
-
- // Reserved Field (Compartmentalized so the "reserved" variable can't leak)
- {
- uint8_t _reserved = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) &_reserved);
- if(_res != OK) {
- return _res;
- }
- if(_reserved != 0x0) {
- printf("Expected constant value '%d' but got '%d' for reserved field.", 0x0, _reserved);
- }
- }
-
-
-
- // Simple Field (remainingLength)
- uint8_t remainingLength = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &remainingLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__auth_remaining_length = remainingLength;
-
-
-
- // Simple Field (reason)
- plc4c_mqtt_read_write_mqt_t__reason_code* reason;
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_parse(readBuffer, (void*) &reason);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__auth_reason = *reason;
-
-
-
- // Optional Field (propertyLength) (Can be skipped, if a given expression evaluates to false)
- uint32_t* propertyLength = NULL;
- if(((remainingLength) - ((plc4c_spi_read_get_pos(readBuffer) - startPos))) < (4)) {
- propertyLength = malloc(sizeof(uint32_t));
- if(propertyLength == NULL) {
- return NO_MEMORY;
- }
- *propertyLength = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) propertyLength);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__control_packet__auth_property_length = propertyLength;
- } else {
- (*_message)->mqt_t__control_packet__auth_property_length = NULL;
- }
-
-
-
- // Array field (properties)
- plc4c_list* properties = NULL;
- plc4c_utils_list_create(&properties);
- if(properties == NULL) {
- return NO_MEMORY;
- }
- {
- // Length array
- uint8_t _propertiesLength = ((((propertyLength) != (NULL))) ? propertyLength : 0);
- uint8_t propertiesEndPos = plc4c_spi_read_get_pos(readBuffer) + _propertiesLength;
- while(plc4c_spi_read_get_pos(readBuffer) < propertiesEndPos) {
- plc4c_mqtt_read_write_mqt_t__property* _value = NULL;
- _res = plc4c_mqtt_read_write_mqt_t__property_parse(readBuffer, (void*) &_value);
- if(_res != OK) {
- return _res;
- }
- plc4c_utils_list_insert_head_value(properties, _value);
- }
- }
- (*_message)->mqt_t__control_packet__auth_properties = properties;
-
- }
-
- return OK;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__control_packet* _message) {
- plc4c_return_code _res = OK;
-
- // Enumerated Discriminator Field (packetType)
- plc4c_spi_write_unsigned_byte(writeBuffer, 4, plc4c_mqtt_read_write_mqt_t__control_packet_get_discriminator(_message->_type).packetType);
-
- // Switch Field (Depending of the current type, serialize the sub-type elements)
- switch(_message->_type) {
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connect: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__connect_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (protocolName)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__control_packet__connect_protocol_name);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (protocolVersion)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__connect_protocol_version);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (userNameFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connect_user_name_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (passwordFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connect_password_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (willRetainFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connect_will_retain_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (willQosLevel)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 2, _message->mqt_t__control_packet__connect_will_qos_level);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (willFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connect_will_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (cleanStartFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connect_clean_start_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Reserved Field
- _res = plc4c_spi_write_bit(writeBuffer, false);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (keepAlive)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__connect_keep_alive);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (propertyLength)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__control_packet__connect_property_length);
- if(_res != OK) {
- return _res;
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__connect_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__connect_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Simple Field (clientId)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__control_packet__connect_client_id);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (username)
- if(_message->mqt_t__control_packet__connect_username != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__control_packet__connect_username);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (password)
- if(_message->mqt_t__control_packet__connect_password != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__control_packet__connect_password);
- if(_res != OK) {
- return _res;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connack: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__connack_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 7, 0x00);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (sessionPresentFlagSet)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__connack_session_present_flag_set);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (reasonCode)
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, &_message->mqt_t__control_packet__connack_reason_code);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__connack_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__connack_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__connack_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__connack_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__publish: {
-
- // Simple Field (dup)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__publish_dup);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (qos)
- _res = plc4c_mqtt_read_write_mqt_t__qos_serialize(writeBuffer, &_message->mqt_t__control_packet__publish_qos);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (retain)
- _res = plc4c_spi_write_bit(writeBuffer, _message->mqt_t__control_packet__publish_retain);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__publish_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (topicName)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__control_packet__publish_topic_name);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (packetIdentifier)
- if(_message->mqt_t__control_packet__publish_packet_identifier != NULL) {
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, *_message->mqt_t__control_packet__publish_packet_identifier);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__publish_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__publish_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__publish_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__publish_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Array field (payload)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__publish_payload);
- for(int curItem = 0; curItem < itemCount; curItem++) {
-
- char* _value = (char*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__publish_payload, curItem);
- plc4c_spi_write_char(writeBuffer, *_value);
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__puback: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__puback_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__puback_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__puback_reason_code != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, _message->mqt_t__control_packet__puback_reason_code);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__puback_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__puback_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__puback_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__puback_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrec: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__pubrec_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__pubrec_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubrec_reason_code != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, _message->mqt_t__control_packet__pubrec_reason_code);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubrec_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__pubrec_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__pubrec_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__pubrec_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrel: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__pubrel_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__pubrel_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubrel_reason_code != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, _message->mqt_t__control_packet__pubrel_reason_code);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubrel_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__pubrel_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__pubrel_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__pubrel_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubcomp: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__pubcomp_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__pubcomp_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubcomp_reason_code != NULL) {
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, _message->mqt_t__control_packet__pubcomp_reason_code);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubcomp_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__pubcomp_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__pubcomp_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__pubcomp_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__subscribe: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__subscribe_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__subscribe_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__subscribe_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__subscribe_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__subscribe_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__subscribe_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Array field (filters)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__subscribe_filters);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_filter* _value = (plc4c_mqtt_read_write_filter*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__subscribe_filters, curItem);
- _res = plc4c_mqtt_read_write_filter_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__suback: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__suback_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__suback_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__suback_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__suback_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__suback_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__suback_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Array field (results)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__suback_results);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__reason_code* _value = (plc4c_mqtt_read_write_mqt_t__reason_code*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__suback_results, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsubscribe: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__unsubscribe_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__unsubscribe_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__unsubscribe_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__unsubscribe_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__unsubscribe_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__unsubscribe_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Array field (filters)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__unsubscribe_filters);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__string* _value = (plc4c_mqtt_read_write_mqt_t__string*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__unsubscribe_filters, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsuback: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__unsuback_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (packetIdentifier)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__control_packet__unsuback_packet_identifier);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__unsuback_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__unsuback_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__unsuback_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__unsuback_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- // Array field (results)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__unsuback_results);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__reason_code* _value = (plc4c_mqtt_read_write_mqt_t__reason_code*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__unsuback_results, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingreq: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__pingreq_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingresp: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__pingresp_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__disconnect: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__disconnect_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (reason)
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, &_message->mqt_t__control_packet__disconnect_reason);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__auth: {
-
- // Reserved Field
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, 0x0);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (remainingLength)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__control_packet__auth_remaining_length);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (reason)
- _res = plc4c_mqtt_read_write_mqt_t__reason_code_serialize(writeBuffer, &_message->mqt_t__control_packet__auth_reason);
- if(_res != OK) {
- return _res;
- }
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__auth_property_length != NULL) {
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, *_message->mqt_t__control_packet__auth_property_length);
- if(_res != OK) {
- return _res;
- }
- }
-
- // Array field (properties)
- {
- uint8_t itemCount = plc4c_utils_list_size(_message->mqt_t__control_packet__auth_properties);
- for(int curItem = 0; curItem < itemCount; curItem++) {
- bool lastItem = curItem == (itemCount - 1);
- plc4c_mqtt_read_write_mqt_t__property* _value = (plc4c_mqtt_read_write_mqt_t__property*) plc4c_utils_list_get_value(_message->mqt_t__control_packet__auth_properties, curItem);
- _res = plc4c_mqtt_read_write_mqt_t__property_serialize(writeBuffer, (void*) _value);
- if(_res != OK) {
- return _res;
- }
- }
- }
-
- break;
- }
- }
-
- return OK;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_length_in_bytes(plc4c_mqtt_read_write_mqt_t__control_packet* _message) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_length_in_bits(plc4c_mqtt_read_write_mqt_t__control_packet* _message) {
- uint16_t lengthInBits = 0;
-
- // Discriminator Field (packetType)
- lengthInBits += 4;
-
- // Depending of the current type, add the length of sub-type elements ...
- switch(_message->_type) {
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connect: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (protocolName)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__control_packet__connect_protocol_name);
-
-
- // Simple field (protocolVersion)
- lengthInBits += 8;
-
-
- // Simple field (userNameFlagSet)
- lengthInBits += 1;
-
-
- // Simple field (passwordFlagSet)
- lengthInBits += 1;
-
-
- // Simple field (willRetainFlagSet)
- lengthInBits += 1;
-
-
- // Simple field (willQosLevel)
- lengthInBits += 2;
-
-
- // Simple field (willFlagSet)
- lengthInBits += 1;
-
-
- // Simple field (cleanStartFlagSet)
- lengthInBits += 1;
-
-
- // Reserved Field (reserved)
- lengthInBits += 1;
-
-
- // Simple field (keepAlive)
- lengthInBits += 16;
-
-
- // Simple field (propertyLength)
- lengthInBits += 32;
-
-
- // Array field
- if(_message->mqt_t__control_packet__connect_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__connect_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Simple field (clientId)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__control_packet__connect_client_id);
-
-
- // Optional Field (username)
- if(_message->mqt_t__control_packet__connect_username != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__control_packet__connect_username);
- }
-
-
- // Optional Field (password)
- if(_message->mqt_t__control_packet__connect_password != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__control_packet__connect_password);
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__connack: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Reserved Field (reserved)
- lengthInBits += 7;
-
-
- // Simple field (sessionPresentFlagSet)
- lengthInBits += 1;
-
-
- // Simple field (reasonCode)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(&_message->mqt_t__control_packet__connack_reason_code);
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__connack_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__connack_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__connack_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__publish: {
-
- // Simple field (dup)
- lengthInBits += 1;
-
-
- // Simple field (qos)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__qos_length_in_bits(&_message->mqt_t__control_packet__publish_qos);
-
-
- // Simple field (retain)
- lengthInBits += 1;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (topicName)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__control_packet__publish_topic_name);
-
-
- // Optional Field (packetIdentifier)
- if(_message->mqt_t__control_packet__publish_packet_identifier != NULL) {
- lengthInBits += 16;
- }
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__publish_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__publish_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__publish_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Array field
- lengthInBits += 8 * plc4c_utils_list_size(_message->mqt_t__control_packet__publish_payload);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__puback: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__puback_reason_code != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(_message->mqt_t__control_packet__puback_reason_code);
- }
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__puback_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__puback_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__puback_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrec: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubrec_reason_code != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(_message->mqt_t__control_packet__pubrec_reason_code);
- }
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubrec_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__pubrec_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__pubrec_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubrel: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubrel_reason_code != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(_message->mqt_t__control_packet__pubrel_reason_code);
- }
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubrel_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__pubrel_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__pubrel_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pubcomp: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (reasonCode)
- if(_message->mqt_t__control_packet__pubcomp_reason_code != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(_message->mqt_t__control_packet__pubcomp_reason_code);
- }
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__pubcomp_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__pubcomp_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__pubcomp_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__subscribe: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__subscribe_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__subscribe_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__subscribe_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__subscribe_filters != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__subscribe_filters->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_filter_length_in_bits((plc4c_mqtt_read_write_filter*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__suback: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__suback_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__suback_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__suback_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__suback_results != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__suback_results->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits((plc4c_mqtt_read_write_mqt_t__reason_code*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsubscribe: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__unsubscribe_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__unsubscribe_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__unsubscribe_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__unsubscribe_filters != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__unsubscribe_filters->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits((plc4c_mqtt_read_write_mqt_t__string*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__unsuback: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (packetIdentifier)
- lengthInBits += 16;
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__unsuback_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__unsuback_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__unsuback_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__unsuback_results != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__unsuback_results->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits((plc4c_mqtt_read_write_mqt_t__reason_code*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingreq: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__pingresp: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__disconnect: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (reason)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(&_message->mqt_t__control_packet__disconnect_reason);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__control_packet_type_plc4c_mqtt_read_write_mqt_t__control_packet__auth: {
-
- // Reserved Field (reserved)
- lengthInBits += 4;
-
-
- // Simple field (remainingLength)
- lengthInBits += 8;
-
-
- // Simple field (reason)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(&_message->mqt_t__control_packet__auth_reason);
-
-
- // Optional Field (propertyLength)
- if(_message->mqt_t__control_packet__auth_property_length != NULL) {
- lengthInBits += 32;
- }
-
-
- // Array field
- if(_message->mqt_t__control_packet__auth_properties != NULL) {
- plc4c_list_element* curElement = _message->mqt_t__control_packet__auth_properties->tail;
- while (curElement != NULL) {
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_length_in_bits((plc4c_mqtt_read_write_mqt_t__property*) curElement->value);
- curElement = curElement->next;
- }
- }
-
- break;
- }
- }
-
- return lengthInBits;
-}
-
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet_type.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet_type.c
deleted file mode 100644
index a11822cca..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__control_packet_type.c
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "mqt_t__control_packet_type.h"
-#include <string.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_null_const;
-
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_null() {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_null_const;
-}
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_type_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__control_packet_type** _message) {
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__control_packet_type));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 4, (uint8_t*) *_message);
-
- return _res;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__control_packet_type_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__control_packet_type* _message) {
- plc4c_return_code _res = OK;
-
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 4, *_message);
-
- return _res;
-}
-
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_value_of(char* value_string) {
- if(strcmp(value_string, "RESERVED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_RESERVED;
- }
- if(strcmp(value_string, "CONNECT") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNECT;
- }
- if(strcmp(value_string, "CONNACK") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNACK;
- }
- if(strcmp(value_string, "PUBLISH") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBLISH;
- }
- if(strcmp(value_string, "PUBACK") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBACK;
- }
- if(strcmp(value_string, "PUBREC") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREC;
- }
- if(strcmp(value_string, "PUBREL") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREL;
- }
- if(strcmp(value_string, "PUBCOMP") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBCOMP;
- }
- if(strcmp(value_string, "SUBSCRIBE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBSCRIBE;
- }
- if(strcmp(value_string, "SUBACK") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBACK;
- }
- if(strcmp(value_string, "UNSUBSCRIBE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBSCRIBE;
- }
- if(strcmp(value_string, "UNSUBACK") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBACK;
- }
- if(strcmp(value_string, "PINGREQ") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGREQ;
- }
- if(strcmp(value_string, "PINGRESP") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGRESP;
- }
- if(strcmp(value_string, "DISCONNECT") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_DISCONNECT;
- }
- if(strcmp(value_string, "AUTH") == 0) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_AUTH;
- }
- return -1;
-}
-
-int plc4c_mqtt_read_write_mqt_t__control_packet_type_num_values() {
- return 16;
-}
-
-plc4c_mqtt_read_write_mqt_t__control_packet_type plc4c_mqtt_read_write_mqt_t__control_packet_type_value_for_index(int index) {
- switch(index) {
- case 0: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_RESERVED;
- }
- case 1: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNECT;
- }
- case 2: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_CONNACK;
- }
- case 3: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBLISH;
- }
- case 4: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBACK;
- }
- case 5: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREC;
- }
- case 6: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBREL;
- }
- case 7: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PUBCOMP;
- }
- case 8: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBSCRIBE;
- }
- case 9: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_SUBACK;
- }
- case 10: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBSCRIBE;
- }
- case 11: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_UNSUBACK;
- }
- case 12: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGREQ;
- }
- case 13: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_PINGRESP;
- }
- case 14: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_DISCONNECT;
- }
- case 15: {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_AUTH;
- }
- default: {
- return -1;
- }
- }
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_type_length_in_bytes(plc4c_mqtt_read_write_mqt_t__control_packet_type* _message) {
- return plc4c_mqtt_read_write_mqt_t__control_packet_type_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__control_packet_type_length_in_bits(plc4c_mqtt_read_write_mqt_t__control_packet_type* _message) {
- return 4;
-}
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property.c
deleted file mode 100644
index 7f4ea21ea..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property.c
+++ /dev/null
@@ -1,923 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <stdio.h>
-#include <plc4c/spi/evaluation_helper.h>
-#include "mqt_t__property.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-// Array of discriminator values that match the enum type constants.
-// (The order is identical to the enum constants so we can use the
-// enum constant to directly access a given types discriminator values)
-const plc4c_mqtt_read_write_mqt_t__property_discriminator plc4c_mqtt_read_write_mqt_t__property_discriminators[] = {
- {/* plc4c_mqtt_read_write_mqt_t__property__payloa_d__forma_t__indicator */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_PAYLOAD_FORMAT_INDICATOR },
- {/* plc4c_mqtt_read_write_mqt_t__property__messag_e__expir_y__interval */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_MESSAGE_EXPIRY_INTERVAL },
- {/* plc4c_mqtt_read_write_mqt_t__property__conten_t__type */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_CONTENT_TYPE },
- {/* plc4c_mqtt_read_write_mqt_t__property__respons_e__topic */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_TOPIC },
- {/* plc4c_mqtt_read_write_mqt_t__property__correlatio_n__data */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_CORRELATION_DATA },
- {/* plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifier */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER },
- {/* plc4c_mqtt_read_write_mqt_t__property__expir_y__interval */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SESSION_EXPIRY_INTERVAL },
- {/* plc4c_mqtt_read_write_mqt_t__property__assigne_d__clien_t__identifier */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_ASSIGNED_CLIENT_IDENTIFIER },
- {/* plc4c_mqtt_read_write_mqt_t__property__serve_r__kee_p__alive */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SERVER_KEEP_ALIVE },
- {/* plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__method */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_METHOD },
- {/* plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__data */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_DATA },
- {/* plc4c_mqtt_read_write_mqt_t__property__reques_t__proble_m__information */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_PROBLEM_INFORMATION },
- {/* plc4c_mqtt_read_write_mqt_t__property__wil_l__dela_y__interval */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_WILL_DELAY_INTERVAL },
- {/* plc4c_mqtt_read_write_mqt_t__property__reques_t__respons_e__information */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_RESPONSE_INFORMATION },
- {/* plc4c_mqtt_read_write_mqt_t__property__respons_e__information */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_INFORMATION },
- {/* plc4c_mqtt_read_write_mqt_t__property__serve_r__reference */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SERVER_REFERENCE },
- {/* plc4c_mqtt_read_write_mqt_t__property__reaso_n__string */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_REASON_STRING },
- {/* plc4c_mqtt_read_write_mqt_t__property__receiv_e__maximum */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_RECEIVE_MAXIMUM },
- {/* plc4c_mqtt_read_write_mqt_t__property__topi_c__alia_s__maximum */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS_MAXIMUM },
- {/* plc4c_mqtt_read_write_mqt_t__property__topi_c__alias */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS },
- {/* plc4c_mqtt_read_write_mqt_t__property__maximu_m__qos */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_QOS },
- {/* plc4c_mqtt_read_write_mqt_t__property__retai_n__available */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_RETAIN_AVAILABLE },
- {/* plc4c_mqtt_read_write_mqt_t__property__use_r__property */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_USER_PROPERTY },
- {/* plc4c_mqtt_read_write_mqt_t__property__maximu_m__packe_t__size */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_PACKET_SIZE },
- {/* plc4c_mqtt_read_write_mqt_t__property__wildcar_d__subscriptio_n__available */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_WILDCARD_SUBSCRIPTION_AVAILABLE },
- {/* plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifie_r__available */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER_AVAILABLE },
- {/* plc4c_mqtt_read_write_mqt_t__property__share_d__subscriptio_n__available */
- .propertyType = plc4c_mqtt_read_write_mqt_t__property_type_SHARED_SUBSCRIPTION_AVAILABLE }
-
-};
-
-// Function returning the discriminator values for a given type constant.
-plc4c_mqtt_read_write_mqt_t__property_discriminator plc4c_mqtt_read_write_mqt_t__property_get_discriminator(plc4c_mqtt_read_write_mqt_t__property_type type) {
- return plc4c_mqtt_read_write_mqt_t__property_discriminators[type];
-}
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__property plc4c_mqtt_read_write_mqt_t__property_null_const;
-
-plc4c_mqtt_read_write_mqt_t__property plc4c_mqtt_read_write_mqt_t__property_null() {
- return plc4c_mqtt_read_write_mqt_t__property_null_const;
-}
-
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__property** _message) {
- uint16_t startPos = plc4c_spi_read_get_pos(readBuffer);
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__property));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- // Simple Field (propertyType)
- plc4c_mqtt_read_write_mqt_t__property_type* propertyType;
- _res = plc4c_mqtt_read_write_mqt_t__property_type_parse(readBuffer, (void*) &propertyType);
- if(_res != OK) {
- return _res;
- }
- (*_message)->property_type = *propertyType;
-
- // Switch Field (Depending on the discriminator values, passes the instantiation to a sub-type)
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_PAYLOAD_FORMAT_INDICATOR) { /* MQTT_Property_PAYLOAD_FORMAT_INDICATOR */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__payloa_d__forma_t__indicator;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__payloa_d__forma_t__indicator_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_MESSAGE_EXPIRY_INTERVAL) { /* MQTT_Property_MESSAGE_EXPIRY_INTERVAL */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__messag_e__expir_y__interval;
-
- // Simple Field (value)
- uint32_t value = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__messag_e__expir_y__interval_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_CONTENT_TYPE) { /* MQTT_Property_CONTENT_TYPE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__conten_t__type;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__conten_t__type_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_TOPIC) { /* MQTT_Property_RESPONSE_TOPIC */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__topic;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__respons_e__topic_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_CORRELATION_DATA) { /* MQTT_Property_CORRELATION_DATA */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__correlatio_n__data;
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER) { /* MQTT_Property_SUBSCRIPTION_IDENTIFIER */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifier;
-
- // Simple Field (value)
- uint32_t value = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__subscriptio_n__identifier_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SESSION_EXPIRY_INTERVAL) { /* MQTT_Property_EXPIRY_INTERVAL */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__expir_y__interval;
-
- // Simple Field (value)
- uint32_t value = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__expir_y__interval_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_ASSIGNED_CLIENT_IDENTIFIER) { /* MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__assigne_d__clien_t__identifier;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__assigne_d__clien_t__identifier_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SERVER_KEEP_ALIVE) { /* MQTT_Property_SERVER_KEEP_ALIVE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__kee_p__alive;
-
- // Simple Field (value)
- uint16_t value = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__serve_r__kee_p__alive_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_METHOD) { /* MQTT_Property_AUTHENTICATION_METHOD */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__method;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__authenticatio_n__method_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_DATA) { /* MQTT_Property_AUTHENTICATION_DATA */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__data;
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_PROBLEM_INFORMATION) { /* MQTT_Property_REQUEST_PROBLEM_INFORMATION */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__proble_m__information;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__reques_t__proble_m__information_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_WILL_DELAY_INTERVAL) { /* MQTT_Property_WILL_DELAY_INTERVAL */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wil_l__dela_y__interval;
-
- // Simple Field (value)
- uint32_t value = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__wil_l__dela_y__interval_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_RESPONSE_INFORMATION) { /* MQTT_Property_REQUEST_RESPONSE_INFORMATION */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__respons_e__information;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__reques_t__respons_e__information_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_INFORMATION) { /* MQTT_Property_RESPONSE_INFORMATION */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__information;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__respons_e__information_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SERVER_REFERENCE) { /* MQTT_Property_SERVER_REFERENCE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__reference;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__serve_r__reference_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_REASON_STRING) { /* MQTT_Property_REASON_STRING */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reaso_n__string;
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__reaso_n__string_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_RECEIVE_MAXIMUM) { /* MQTT_Property_RECEIVE_MAXIMUM */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__receiv_e__maximum;
-
- // Simple Field (value)
- uint16_t value = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__receiv_e__maximum_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS_MAXIMUM) { /* MQTT_Property_TOPIC_ALIAS_MAXIMUM */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alia_s__maximum;
-
- // Simple Field (value)
- uint16_t value = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__topi_c__alia_s__maximum_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS) { /* MQTT_Property_TOPIC_ALIAS */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alias;
-
- // Simple Field (value)
- uint16_t value = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__topi_c__alias_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_QOS) { /* MQTT_Property_MAXIMUM_QOS */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__qos;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__maximu_m__qos_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_RETAIN_AVAILABLE) { /* MQTT_Property_RETAIN_AVAILABLE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__retai_n__available;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__retai_n__available_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_USER_PROPERTY) { /* MQTT_Property_USER_PROPERTY */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__use_r__property;
-
- // Simple Field (name)
- plc4c_mqtt_read_write_mqt_t__string* name;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &name);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__use_r__property_name = name;
-
-
-
- // Simple Field (value)
- plc4c_mqtt_read_write_mqt_t__string* value;
- _res = plc4c_mqtt_read_write_mqt_t__string_parse(readBuffer, (void*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__use_r__property_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_PACKET_SIZE) { /* MQTT_Property_MAXIMUM_PACKET_SIZE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__packe_t__size;
-
- // Simple Field (value)
- uint32_t value = 0;
- _res = plc4c_spi_read_unsigned_int(readBuffer, 32, (uint32_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__maximu_m__packe_t__size_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_WILDCARD_SUBSCRIPTION_AVAILABLE) { /* MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wildcar_d__subscriptio_n__available;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__wildcar_d__subscriptio_n__available_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER_AVAILABLE) { /* MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifie_r__available;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__subscriptio_n__identifie_r__available_value = value;
-
- } else
- if(propertyType == plc4c_mqtt_read_write_mqt_t__property_type_SHARED_SUBSCRIPTION_AVAILABLE) { /* MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE */
- (*_message)->_type = plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__share_d__subscriptio_n__available;
-
- // Simple Field (value)
- uint8_t value = 0;
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->mqt_t__property__share_d__subscriptio_n__available_value = value;
-
- }
-
- return OK;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__property* _message) {
- plc4c_return_code _res = OK;
-
- // Simple Field (propertyType)
- _res = plc4c_mqtt_read_write_mqt_t__property_type_serialize(writeBuffer, &_message->property_type);
- if(_res != OK) {
- return _res;
- }
-
- // Switch Field (Depending of the current type, serialize the sub-type elements)
- switch(_message->_type) {
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__payloa_d__forma_t__indicator: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__payloa_d__forma_t__indicator_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__messag_e__expir_y__interval: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__property__messag_e__expir_y__interval_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__conten_t__type: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__conten_t__type_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__topic: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__respons_e__topic_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__correlatio_n__data: {
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifier: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__property__subscriptio_n__identifier_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__expir_y__interval: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__property__expir_y__interval_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__assigne_d__clien_t__identifier: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__assigne_d__clien_t__identifier_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__kee_p__alive: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__property__serve_r__kee_p__alive_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__method: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__authenticatio_n__method_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__data: {
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__proble_m__information: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__reques_t__proble_m__information_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wil_l__dela_y__interval: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__property__wil_l__dela_y__interval_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__respons_e__information: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__reques_t__respons_e__information_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__information: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__respons_e__information_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__reference: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__serve_r__reference_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reaso_n__string: {
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__reaso_n__string_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__receiv_e__maximum: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__property__receiv_e__maximum_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alia_s__maximum: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__property__topi_c__alia_s__maximum_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alias: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, _message->mqt_t__property__topi_c__alias_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__qos: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__maximu_m__qos_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__retai_n__available: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__retai_n__available_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__use_r__property: {
-
- // Simple Field (name)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__use_r__property_name);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (value)
- _res = plc4c_mqtt_read_write_mqt_t__string_serialize(writeBuffer, _message->mqt_t__property__use_r__property_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__packe_t__size: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_int(writeBuffer, 32, _message->mqt_t__property__maximu_m__packe_t__size_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wildcar_d__subscriptio_n__available: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__wildcar_d__subscriptio_n__available_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifie_r__available: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__subscriptio_n__identifie_r__available_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__share_d__subscriptio_n__available: {
-
- // Simple Field (value)
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, _message->mqt_t__property__share_d__subscriptio_n__available_value);
- if(_res != OK) {
- return _res;
- }
-
- break;
- }
- }
-
- return OK;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_length_in_bytes(plc4c_mqtt_read_write_mqt_t__property* _message) {
- return plc4c_mqtt_read_write_mqt_t__property_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_length_in_bits(plc4c_mqtt_read_write_mqt_t__property* _message) {
- uint16_t lengthInBits = 0;
-
- // Simple field (propertyType)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__property_type_length_in_bits(&_message->property_type);
-
- // Depending of the current type, add the length of sub-type elements ...
- switch(_message->_type) {
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__payloa_d__forma_t__indicator: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__messag_e__expir_y__interval: {
-
- // Simple field (value)
- lengthInBits += 32;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__conten_t__type: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__conten_t__type_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__topic: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__respons_e__topic_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__correlatio_n__data: {
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifier: {
-
- // Simple field (value)
- lengthInBits += 32;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__expir_y__interval: {
-
- // Simple field (value)
- lengthInBits += 32;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__assigne_d__clien_t__identifier: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__assigne_d__clien_t__identifier_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__kee_p__alive: {
-
- // Simple field (value)
- lengthInBits += 16;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__method: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__authenticatio_n__method_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__authenticatio_n__data: {
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__proble_m__information: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wil_l__dela_y__interval: {
-
- // Simple field (value)
- lengthInBits += 32;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reques_t__respons_e__information: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__respons_e__information: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__respons_e__information_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__serve_r__reference: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__serve_r__reference_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__reaso_n__string: {
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__reaso_n__string_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__receiv_e__maximum: {
-
- // Simple field (value)
- lengthInBits += 16;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alia_s__maximum: {
-
- // Simple field (value)
- lengthInBits += 16;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__topi_c__alias: {
-
- // Simple field (value)
- lengthInBits += 16;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__qos: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__retai_n__available: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__use_r__property: {
-
- // Simple field (name)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__use_r__property_name);
-
-
- // Simple field (value)
- lengthInBits += plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message->mqt_t__property__use_r__property_value);
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__maximu_m__packe_t__size: {
-
- // Simple field (value)
- lengthInBits += 32;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__wildcar_d__subscriptio_n__available: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__subscriptio_n__identifie_r__available: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- case plc4c_mqtt_read_write_mqt_t__property_type_plc4c_mqtt_read_write_mqt_t__property__share_d__subscriptio_n__available: {
-
- // Simple field (value)
- lengthInBits += 8;
-
- break;
- }
- }
-
- return lengthInBits;
-}
-
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property_type.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property_type.c
deleted file mode 100644
index eaec1a291..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__property_type.c
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "mqt_t__property_type.h"
-#include <string.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_null_const;
-
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_null() {
- return plc4c_mqtt_read_write_mqt_t__property_type_null_const;
-}
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_type_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__property_type** _message) {
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__property_type));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) *_message);
-
- return _res;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__property_type_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__property_type* _message) {
- plc4c_return_code _res = OK;
-
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, *_message);
-
- return _res;
-}
-
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_value_of(char* value_string) {
- if(strcmp(value_string, "PAYLOAD_FORMAT_INDICATOR") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_PAYLOAD_FORMAT_INDICATOR;
- }
- if(strcmp(value_string, "MESSAGE_EXPIRY_INTERVAL") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_MESSAGE_EXPIRY_INTERVAL;
- }
- if(strcmp(value_string, "CONTENT_TYPE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_CONTENT_TYPE;
- }
- if(strcmp(value_string, "RESPONSE_TOPIC") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_TOPIC;
- }
- if(strcmp(value_string, "CORRELATION_DATA") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_CORRELATION_DATA;
- }
- if(strcmp(value_string, "SUBSCRIPTION_IDENTIFIER") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER;
- }
- if(strcmp(value_string, "SESSION_EXPIRY_INTERVAL") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SESSION_EXPIRY_INTERVAL;
- }
- if(strcmp(value_string, "ASSIGNED_CLIENT_IDENTIFIER") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_ASSIGNED_CLIENT_IDENTIFIER;
- }
- if(strcmp(value_string, "SERVER_KEEP_ALIVE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SERVER_KEEP_ALIVE;
- }
- if(strcmp(value_string, "AUTHENTICATION_METHOD") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_METHOD;
- }
- if(strcmp(value_string, "AUTHENTICATION_DATA") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_DATA;
- }
- if(strcmp(value_string, "REQUEST_PROBLEM_INFORMATION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_PROBLEM_INFORMATION;
- }
- if(strcmp(value_string, "WILL_DELAY_INTERVAL") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_WILL_DELAY_INTERVAL;
- }
- if(strcmp(value_string, "REQUEST_RESPONSE_INFORMATION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_RESPONSE_INFORMATION;
- }
- if(strcmp(value_string, "RESPONSE_INFORMATION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_INFORMATION;
- }
- if(strcmp(value_string, "SERVER_REFERENCE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SERVER_REFERENCE;
- }
- if(strcmp(value_string, "REASON_STRING") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_REASON_STRING;
- }
- if(strcmp(value_string, "RECEIVE_MAXIMUM") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_RECEIVE_MAXIMUM;
- }
- if(strcmp(value_string, "TOPIC_ALIAS_MAXIMUM") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS_MAXIMUM;
- }
- if(strcmp(value_string, "TOPIC_ALIAS") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS;
- }
- if(strcmp(value_string, "MAXIMUM_QOS") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_QOS;
- }
- if(strcmp(value_string, "RETAIN_AVAILABLE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_RETAIN_AVAILABLE;
- }
- if(strcmp(value_string, "USER_PROPERTY") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_USER_PROPERTY;
- }
- if(strcmp(value_string, "MAXIMUM_PACKET_SIZE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_PACKET_SIZE;
- }
- if(strcmp(value_string, "WILDCARD_SUBSCRIPTION_AVAILABLE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_WILDCARD_SUBSCRIPTION_AVAILABLE;
- }
- if(strcmp(value_string, "SUBSCRIPTION_IDENTIFIER_AVAILABLE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER_AVAILABLE;
- }
- if(strcmp(value_string, "SHARED_SUBSCRIPTION_AVAILABLE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__property_type_SHARED_SUBSCRIPTION_AVAILABLE;
- }
- return -1;
-}
-
-int plc4c_mqtt_read_write_mqt_t__property_type_num_values() {
- return 27;
-}
-
-plc4c_mqtt_read_write_mqt_t__property_type plc4c_mqtt_read_write_mqt_t__property_type_value_for_index(int index) {
- switch(index) {
- case 0: {
- return plc4c_mqtt_read_write_mqt_t__property_type_PAYLOAD_FORMAT_INDICATOR;
- }
- case 1: {
- return plc4c_mqtt_read_write_mqt_t__property_type_MESSAGE_EXPIRY_INTERVAL;
- }
- case 2: {
- return plc4c_mqtt_read_write_mqt_t__property_type_CONTENT_TYPE;
- }
- case 3: {
- return plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_TOPIC;
- }
- case 4: {
- return plc4c_mqtt_read_write_mqt_t__property_type_CORRELATION_DATA;
- }
- case 5: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER;
- }
- case 6: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SESSION_EXPIRY_INTERVAL;
- }
- case 7: {
- return plc4c_mqtt_read_write_mqt_t__property_type_ASSIGNED_CLIENT_IDENTIFIER;
- }
- case 8: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SERVER_KEEP_ALIVE;
- }
- case 9: {
- return plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_METHOD;
- }
- case 10: {
- return plc4c_mqtt_read_write_mqt_t__property_type_AUTHENTICATION_DATA;
- }
- case 11: {
- return plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_PROBLEM_INFORMATION;
- }
- case 12: {
- return plc4c_mqtt_read_write_mqt_t__property_type_WILL_DELAY_INTERVAL;
- }
- case 13: {
- return plc4c_mqtt_read_write_mqt_t__property_type_REQUEST_RESPONSE_INFORMATION;
- }
- case 14: {
- return plc4c_mqtt_read_write_mqt_t__property_type_RESPONSE_INFORMATION;
- }
- case 15: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SERVER_REFERENCE;
- }
- case 16: {
- return plc4c_mqtt_read_write_mqt_t__property_type_REASON_STRING;
- }
- case 17: {
- return plc4c_mqtt_read_write_mqt_t__property_type_RECEIVE_MAXIMUM;
- }
- case 18: {
- return plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS_MAXIMUM;
- }
- case 19: {
- return plc4c_mqtt_read_write_mqt_t__property_type_TOPIC_ALIAS;
- }
- case 20: {
- return plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_QOS;
- }
- case 21: {
- return plc4c_mqtt_read_write_mqt_t__property_type_RETAIN_AVAILABLE;
- }
- case 22: {
- return plc4c_mqtt_read_write_mqt_t__property_type_USER_PROPERTY;
- }
- case 23: {
- return plc4c_mqtt_read_write_mqt_t__property_type_MAXIMUM_PACKET_SIZE;
- }
- case 24: {
- return plc4c_mqtt_read_write_mqt_t__property_type_WILDCARD_SUBSCRIPTION_AVAILABLE;
- }
- case 25: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SUBSCRIPTION_IDENTIFIER_AVAILABLE;
- }
- case 26: {
- return plc4c_mqtt_read_write_mqt_t__property_type_SHARED_SUBSCRIPTION_AVAILABLE;
- }
- default: {
- return -1;
- }
- }
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_type_length_in_bytes(plc4c_mqtt_read_write_mqt_t__property_type* _message) {
- return plc4c_mqtt_read_write_mqt_t__property_type_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__property_type_length_in_bits(plc4c_mqtt_read_write_mqt_t__property_type* _message) {
- return 8;
-}
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__qos.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__qos.c
deleted file mode 100644
index 558ebbbcd..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__qos.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "mqt_t__qos.h"
-#include <string.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_null_const;
-
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_null() {
- return plc4c_mqtt_read_write_mqt_t__qos_null_const;
-}
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__qos_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__qos** _message) {
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__qos));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 2, (uint8_t*) *_message);
-
- return _res;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__qos_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__qos* _message) {
- plc4c_return_code _res = OK;
-
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 2, *_message);
-
- return _res;
-}
-
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_value_of(char* value_string) {
- if(strcmp(value_string, "AT_MOST_ONCE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__qos_AT_MOST_ONCE;
- }
- if(strcmp(value_string, "AT_LEAST_ONCE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__qos_AT_LEAST_ONCE;
- }
- if(strcmp(value_string, "EXACTLY_ONCE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__qos_EXACTLY_ONCE;
- }
- return -1;
-}
-
-int plc4c_mqtt_read_write_mqt_t__qos_num_values() {
- return 3;
-}
-
-plc4c_mqtt_read_write_mqt_t__qos plc4c_mqtt_read_write_mqt_t__qos_value_for_index(int index) {
- switch(index) {
- case 0: {
- return plc4c_mqtt_read_write_mqt_t__qos_AT_MOST_ONCE;
- }
- case 1: {
- return plc4c_mqtt_read_write_mqt_t__qos_AT_LEAST_ONCE;
- }
- case 2: {
- return plc4c_mqtt_read_write_mqt_t__qos_EXACTLY_ONCE;
- }
- default: {
- return -1;
- }
- }
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__qos_length_in_bytes(plc4c_mqtt_read_write_mqt_t__qos* _message) {
- return plc4c_mqtt_read_write_mqt_t__qos_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__qos_length_in_bits(plc4c_mqtt_read_write_mqt_t__qos* _message) {
- return 2;
-}
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__reason_code.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__reason_code.c
deleted file mode 100644
index a9bbd0938..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__reason_code.c
+++ /dev/null
@@ -1,1393 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "mqt_t__reason_code.h"
-#include <string.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_null_const;
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_null() {
- return plc4c_mqtt_read_write_mqt_t__reason_code_null_const;
-}
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__reason_code_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__reason_code** _message) {
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__reason_code));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 8, (uint8_t*) *_message);
-
- return _res;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__reason_code_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__reason_code* _message) {
- plc4c_return_code _res = OK;
-
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 8, *_message);
-
- return _res;
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_value_of(char* value_string) {
- if(strcmp(value_string, "SUCCESS") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- if(strcmp(value_string, "GRANTED_QOS_1") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- if(strcmp(value_string, "GRANTED_QOS_2") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2;
- }
- if(strcmp(value_string, "DISCONNECT_WITH_WILL_MESSAGE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE;
- }
- if(strcmp(value_string, "NO_MATCHING_SUBSCRIBERS") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS;
- }
- if(strcmp(value_string, "NO_SUBSCRIPTION_EXISTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED;
- }
- if(strcmp(value_string, "CONTINUE_AUTHENTICATION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION;
- }
- if(strcmp(value_string, "RE_AUTHENTICATE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE;
- }
- if(strcmp(value_string, "UNSPECIFIED_ERROR") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR;
- }
- if(strcmp(value_string, "MALFORMED_PACKET") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET;
- }
- if(strcmp(value_string, "PROTOCOL_ERROR") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR;
- }
- if(strcmp(value_string, "IMPLEMENTATION_SPECIFIC_ERROR") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR;
- }
- if(strcmp(value_string, "UNSUPPORTED_PROTOCOL_VERSION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION;
- }
- if(strcmp(value_string, "CLIENT_IDENTIFIER_NOT_VALID") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID;
- }
- if(strcmp(value_string, "BAD_USER_NAME_OR_PASSWORD") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD;
- }
- if(strcmp(value_string, "NOT_AUTHORIZED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED;
- }
- if(strcmp(value_string, "SERVER_UNAVAILABLE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE;
- }
- if(strcmp(value_string, "SERVER_BUSY") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY;
- }
- if(strcmp(value_string, "BANNED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BANNED;
- }
- if(strcmp(value_string, "SERVER_SHUTTING_DOWN") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN;
- }
- if(strcmp(value_string, "BAD_AUTHENTICATION_METHOD") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD;
- }
- if(strcmp(value_string, "KEEP_ALIVE_TIMEOUT") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT;
- }
- if(strcmp(value_string, "SESSION_TAKEN_OVER") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER;
- }
- if(strcmp(value_string, "TOPIC_FILTER_INVALID") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID;
- }
- if(strcmp(value_string, "TOPIC_NAME_INVALID") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID;
- }
- if(strcmp(value_string, "PACKET_IDENTIFIER_IN_USE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE;
- }
- if(strcmp(value_string, "PACKET_IDENTIFIER_NOT_FOUND") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND;
- }
- if(strcmp(value_string, "RECEIVE_MAXIMUM_EXCEEDED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED;
- }
- if(strcmp(value_string, "TOPIC_ALIAS_INVALID") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID;
- }
- if(strcmp(value_string, "PACKET_TOO_LARGE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE;
- }
- if(strcmp(value_string, "MESSAGE_RATE_TO_HIGH") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH;
- }
- if(strcmp(value_string, "QUOTA_EXCEEDED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED;
- }
- if(strcmp(value_string, "ADMINISTRATIVE_ACTION") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION;
- }
- if(strcmp(value_string, "PAYLOAD_FORMAT_INVALID") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID;
- }
- if(strcmp(value_string, "RETAIN_NOT_SUPPORTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED;
- }
- if(strcmp(value_string, "QOS_NOT_SUPPORTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED;
- }
- if(strcmp(value_string, "USE_ANOTHER_SERVER") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER;
- }
- if(strcmp(value_string, "SERVER_MOVED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED;
- }
- if(strcmp(value_string, "SHARED_SUBSCRIPTIONS_NOT_SUPPORTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED;
- }
- if(strcmp(value_string, "CONNECTION_RATE_EXCEEDED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED;
- }
- if(strcmp(value_string, "MAXIMUM_CONNECT_TIME") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME;
- }
- if(strcmp(value_string, "SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED;
- }
- if(strcmp(value_string, "WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED") == 0) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED;
- }
- return -1;
-}
-
-int plc4c_mqtt_read_write_mqt_t__reason_code_num_values() {
- return 43;
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_value_for_index(int index) {
- switch(index) {
- case 0: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- case 1: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case 2: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2;
- }
- case 3: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE;
- }
- case 4: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS;
- }
- case 5: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED;
- }
- case 6: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION;
- }
- case 7: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE;
- }
- case 8: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR;
- }
- case 9: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET;
- }
- case 10: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR;
- }
- case 11: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR;
- }
- case 12: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION;
- }
- case 13: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID;
- }
- case 14: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD;
- }
- case 15: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED;
- }
- case 16: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE;
- }
- case 17: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY;
- }
- case 18: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BANNED;
- }
- case 19: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN;
- }
- case 20: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD;
- }
- case 21: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT;
- }
- case 22: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER;
- }
- case 23: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID;
- }
- case 24: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID;
- }
- case 25: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE;
- }
- case 26: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND;
- }
- case 27: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED;
- }
- case 28: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID;
- }
- case 29: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE;
- }
- case 30: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH;
- }
- case 31: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED;
- }
- case 32: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION;
- }
- case 33: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID;
- }
- case 34: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED;
- }
- case 35: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED;
- }
- case 36: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER;
- }
- case 37: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED;
- }
- case 38: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED;
- }
- case 39: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED;
- }
- case 40: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME;
- }
- case 41: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED;
- }
- case 42: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_disconnect_reason(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_disconnect_reason(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_unsuback_response(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return true;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_unsuback_response(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_suback_response(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_suback_response(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_auth_reason(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_auth_reason(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_pubrel_pubcomp_response(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_pubrel_pubcomp_response(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_puback_pubrec_response(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_puback_pubrec_response(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-bool plc4c_mqtt_read_write_mqt_t__reason_code_get_connack_response(plc4c_mqtt_read_write_mqt_t__reason_code value) {
- switch(value) {
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS: { /* '0X00' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1: { /* '0X01' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_2: { /* '0X02' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_DISCONNECT_WITH_WILL_MESSAGE: { /* '0X04' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONTINUE_AUTHENTICATION: { /* '0X18' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RE_AUTHENTICATE: { /* '0X19' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSPECIFIED_ERROR: { /* '0X80' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MALFORMED_PACKET: { /* '0X81' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PROTOCOL_ERROR: { /* '0X82' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_IMPLEMENTATION_SPECIFIC_ERROR: { /* '0X83' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_UNSUPPORTED_PROTOCOL_VERSION: { /* '0X84' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CLIENT_IDENTIFIER_NOT_VALID: { /* '0X85' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_USER_NAME_OR_PASSWORD: { /* '0X86' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NOT_AUTHORIZED: { /* '0X87' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_UNAVAILABLE: { /* '0X88' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_BUSY: { /* '0X89' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BANNED: { /* '0X8A' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_SHUTTING_DOWN: { /* '0X8B' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_BAD_AUTHENTICATION_METHOD: { /* '0X8C' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_KEEP_ALIVE_TIMEOUT: { /* '0X8D' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SESSION_TAKEN_OVER: { /* '0X8E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_FILTER_INVALID: { /* '0X8F' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_NAME_INVALID: { /* '0X90' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_IN_USE: { /* '0X91' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_IDENTIFIER_NOT_FOUND: { /* '0X92' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RECEIVE_MAXIMUM_EXCEEDED: { /* '0X93' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_TOPIC_ALIAS_INVALID: { /* '0X94' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PACKET_TOO_LARGE: { /* '0X95' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MESSAGE_RATE_TO_HIGH: { /* '0X96' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QUOTA_EXCEEDED: { /* '0X97' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_ADMINISTRATIVE_ACTION: { /* '0X98' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_PAYLOAD_FORMAT_INVALID: { /* '0X99' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_RETAIN_NOT_SUPPORTED: { /* '0X9A' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_QOS_NOT_SUPPORTED: { /* '0X9B' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_USE_ANOTHER_SERVER: { /* '0X9C' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SERVER_MOVED: { /* '0X9D' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SHARED_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0X9E' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_CONNECTION_RATE_EXCEEDED: { /* '0X9F' */
- return true;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_MAXIMUM_CONNECT_TIME: { /* '0XA0' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED: { /* '0XA1' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED: { /* '0XA2' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_MATCHING_SUBSCRIBERS: { /* '0x10' */
- return false;
- }
- case plc4c_mqtt_read_write_mqt_t__reason_code_NO_SUBSCRIPTION_EXISTED: { /* '0x11' */
- return false;
- }
- default: {
- return 0;
- }
- }
-}
-
-plc4c_mqtt_read_write_mqt_t__reason_code plc4c_mqtt_read_write_mqt_t__reason_code_get_first_enum_for_field_connack_response(bool value) {
- switch(value) {
- case false: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_GRANTED_QOS_1;
- }
- case true: {
- return plc4c_mqtt_read_write_mqt_t__reason_code_SUCCESS;
- }
- default: {
- return -1;
- }
- }
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bytes(plc4c_mqtt_read_write_mqt_t__reason_code* _message) {
- return plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__reason_code_length_in_bits(plc4c_mqtt_read_write_mqt_t__reason_code* _message) {
- return 8;
-}
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__retain_handling.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__retain_handling.c
deleted file mode 100644
index 8c7ef3c52..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__retain_handling.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include "mqt_t__retain_handling.h"
-#include <string.h>
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Create an empty NULL-struct
-static const plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_null_const;
-
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_null() {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_null_const;
-}
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__retain_handling_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__retain_handling** _message) {
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__retain_handling));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- _res = plc4c_spi_read_unsigned_byte(readBuffer, 2, (uint8_t*) *_message);
-
- return _res;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__retain_handling_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__retain_handling* _message) {
- plc4c_return_code _res = OK;
-
- _res = plc4c_spi_write_unsigned_byte(writeBuffer, 2, *_message);
-
- return _res;
-}
-
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_value_of(char* value_string) {
- if(strcmp(value_string, "SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_THE_SUBSCRIBE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_THE_SUBSCRIBE;
- }
- if(strcmp(value_string, "SEND_RETAINED_MESSAGES_AT_SUBSCRIBE_ONLY_IF_THE_SUBSCRIPTION_DOES_NOT_CURRENTLY_EXIST") == 0) {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_SUBSCRIBE_ONLY_IF_THE_SUBSCRIPTION_DOES_NOT_CURRENTLY_EXIST;
- }
- if(strcmp(value_string, "DO_NOT_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_SUBSCRIBE") == 0) {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_DO_NOT_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_SUBSCRIBE;
- }
- return -1;
-}
-
-int plc4c_mqtt_read_write_mqt_t__retain_handling_num_values() {
- return 3;
-}
-
-plc4c_mqtt_read_write_mqt_t__retain_handling plc4c_mqtt_read_write_mqt_t__retain_handling_value_for_index(int index) {
- switch(index) {
- case 0: {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_THE_SUBSCRIBE;
- }
- case 1: {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_SEND_RETAINED_MESSAGES_AT_SUBSCRIBE_ONLY_IF_THE_SUBSCRIPTION_DOES_NOT_CURRENTLY_EXIST;
- }
- case 2: {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_DO_NOT_SEND_RETAINED_MESSAGES_AT_THE_TIME_OF_SUBSCRIBE;
- }
- default: {
- return -1;
- }
- }
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bytes(plc4c_mqtt_read_write_mqt_t__retain_handling* _message) {
- return plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__retain_handling_length_in_bits(plc4c_mqtt_read_write_mqt_t__retain_handling* _message) {
- return 2;
-}
diff --git a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__string.c b/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__string.c
deleted file mode 100644
index 8bf0f5875..000000000
--- a/sandbox/mqtt/mqtt-c/generated-sources/mqtt/src/mqt_t__string.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <stdio.h>
-#include <plc4c/spi/evaluation_helper.h>
-#include "mqt_t__string.h"
-
-// Code generated by code-generation. DO NOT EDIT.
-
-
-// Parse function.
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__string_parse(plc4c_spi_read_buffer* readBuffer, plc4c_mqtt_read_write_mqt_t__string** _message) {
- uint16_t startPos = plc4c_spi_read_get_pos(readBuffer);
- plc4c_return_code _res = OK;
-
- // Allocate enough memory to contain this data structure.
- (*_message) = malloc(sizeof(plc4c_mqtt_read_write_mqt_t__string));
- if(*_message == NULL) {
- return NO_MEMORY;
- }
-
- // Implicit Field (stringLength) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content)
- uint16_t stringLength = 0;
- _res = plc4c_spi_read_unsigned_short(readBuffer, 16, (uint16_t*) &stringLength);
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (value)
- char* value = "";
- _res = plc4c_spi_read_string(readBuffer, -1, "UTF-8", (char**) &value);
- if(_res != OK) {
- return _res;
- }
- (*_message)->value = value;
-
- return OK;
-}
-
-plc4c_return_code plc4c_mqtt_read_write_mqt_t__string_serialize(plc4c_spi_write_buffer* writeBuffer, plc4c_mqtt_read_write_mqt_t__string* _message) {
- plc4c_return_code _res = OK;
-
- // Implicit Field (stringLength) (Used for parsing, but it's value is not stored as it's implicitly given by the objects content)
- _res = plc4c_spi_write_unsigned_short(writeBuffer, 16, plc4c_spi_evaluation_helper_str_len(_message->value));
- if(_res != OK) {
- return _res;
- }
-
- // Simple Field (value)
- _res = plc4c_spi_write_string(writeBuffer, -1, "UTF-8", _message->value);
- if(_res != OK) {
- return _res;
- }
-
- return OK;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__string_length_in_bytes(plc4c_mqtt_read_write_mqt_t__string* _message) {
- return plc4c_mqtt_read_write_mqt_t__string_length_in_bits(_message) / 8;
-}
-
-uint16_t plc4c_mqtt_read_write_mqt_t__string_length_in_bits(plc4c_mqtt_read_write_mqt_t__string* _message) {
- uint16_t lengthInBits = 0;
-
- // Implicit Field (stringLength)
- lengthInBits += 16;
-
- // Simple field (value)
- lengthInBits += -1;
-
- return lengthInBits;
-}
-
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/resources/protocols/mqtt/ParserSerializerTestsuite.xml b/sandbox/mqtt/mqtt-cs/drivers/mqtt/resources/protocols/mqtt/ParserSerializerTestsuite.xml
deleted file mode 100644
index 1a662e964..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/resources/protocols/mqtt/ParserSerializerTestsuite.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- https://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
-<test:testsuite xmlns:test="https://plc4x.apache.org/schemas/parser-serializer-testsuite.xsd"
- byteOrder="BIG_ENDIAN">
-
- <name>MQTT5</name>
-
- <protocolName>mqtt</protocolName>
- <outputFlavor>read-write</outputFlavor>
-
- <testcase>
- <name>MQTT Connection Request</name>
- <raw>101d00044d51545405c200050000066c776d71747400037472790003747279</raw>
- <root-type>MQTT_ControlPacket</root-type>
- <xml>
- <MQTT_ControlPacket>
- <packetType>
- <MQTT_ControlPacketType dataType="uint" bitLength="4" stringRepresentation="CONNECT">1</MQTT_ControlPacketType>
- </packetType>
- <MQTT_ControlPacket_CONNECT>
- <reserved dataType="uint" bitLength="4">0</reserved>
- <remainingLength dataType="uint" bitLength="8">29</remainingLength>
- <protocolName>
- <MQTT_String>
- <stringLength dataType="uint" bitLength="16">4</stringLength>
- <value dataType="string" bitLength="32" encoding="UTF-8">MQTT</value>
- </MQTT_String>
- </protocolName>
- <protocolVersion dataType="uint" bitLength="8">5</protocolVersion>
- <userNameFlagSet dataType="bit" bitLength="1">true</userNameFlagSet>
- <passwordFlagSet dataType="bit" bitLength="1">true</passwordFlagSet>
- <willRetainFlagSet dataType="bit" bitLength="1">false</willRetainFlagSet>
- <willQosLevel dataType="uint" bitLength="2">0</willQosLevel>
- <willFlagSet dataType="bit" bitLength="1">false</willFlagSet>
- <cleanStartFlagSet dataType="bit" bitLength="1">true</cleanStartFlagSet>
- <reserved dataType="bit" bitLength="1">false</reserved>
- <keepAlive dataType="uint" bitLength="16">5</keepAlive>
- <value dataType="uint" bitLength="8">0</value>
- <properties isList="true">
- </properties>
- <clientId>
- <MQTT_String>
- <stringLength dataType="uint" bitLength="16">6</stringLength>
- <value dataType="string" bitLength="48" encoding="UTF-8">lwmqtt</value>
- </MQTT_String>
- </clientId>
- <username>
- <MQTT_String>
- <stringLength dataType="uint" bitLength="16">3</stringLength>
- <value dataType="string" bitLength="24" encoding="UTF-8">try</value>
- </MQTT_String>
- </username>
- <password>
- <MQTT_String>
- <stringLength dataType="uint" bitLength="16">3</stringLength>
- <value dataType="string" bitLength="24" encoding="UTF-8">try</value>
- </MQTT_String>
- </password>
- </MQTT_ControlPacket_CONNECT>
- </MQTT_ControlPacket>
- </xml>
- </testcase>
-
-</test:testsuite>
\ No newline at end of file
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/Filter.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/Filter.cs
deleted file mode 100644
index 818f8cf87..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/Filter.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class Filter
- {
-
-
- // Properties.
- public MQTT_String Filter { get; }
- public MQTT_RetainHandling RetainHandling { get; }
- public bool Retain { get; }
- public bool NoLocal { get; }
- public MQTT_QOS MaxQos { get; }
-
- public Filter(MQTT_String filter, MQTT_RetainHandling retainHandling, bool retain, bool noLocal, MQTT_QOS maxQos)
- {
- Filter = filter;
- RetainHandling = retainHandling;
- Retain = retain;
- NoLocal = noLocal;
- MaxQos = maxQos;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket.cs
deleted file mode 100644
index 0632d1703..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public abstract class MQTT_ControlPacket
- {
-
- // Abstract accessors for discriminator values.
- public abstract MQTT_ControlPacketType PacketType { get; }
-
- public MQTT_ControlPacket()
- {
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacketType.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacketType.cs
deleted file mode 100644
index 3f74f4851..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacketType.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public enum MQTT_ControlPacketType
- {
- RESERVED = 0x0,
- CONNECT = 0x1,
- CONNACK = 0x2,
- PUBLISH = 0x3,
- PUBACK = 0x4,
- PUBREC = 0x5,
- PUBREL = 0x6,
- PUBCOMP = 0x7,
- SUBSCRIBE = 0x8,
- SUBACK = 0x9,
- UNSUBSCRIBE = 0xA,
- UNSUBACK = 0xB,
- PINGREQ = 0xC,
- PINGRESP = 0xD,
- DISCONNECT = 0xE,
- AUTH = 0xF,
- }
-
-}
-
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_AUTH.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_AUTH.cs
deleted file mode 100644
index 35dafa637..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_AUTH.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_AUTH : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.AUTH;
-
- // Properties.
- public byte RemainingLength { get; }
- public MQTT_ReasonCode Reason { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_AUTH(byte remainingLength, MQTT_ReasonCode reason, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- Reason = reason;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNACK.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNACK.cs
deleted file mode 100644
index 1a9dff765..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNACK.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_CONNACK : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.CONNACK;
-
- // Properties.
- public byte RemainingLength { get; }
- public bool SessionPresentFlagSet { get; }
- public MQTT_ReasonCode ReasonCode { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_CONNACK(byte remainingLength, bool sessionPresentFlagSet, MQTT_ReasonCode reasonCode, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- SessionPresentFlagSet = sessionPresentFlagSet;
- ReasonCode = reasonCode;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNECT.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNECT.cs
deleted file mode 100644
index c561bf993..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_CONNECT.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_CONNECT : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.CONNECT;
-
- // Properties.
- public byte RemainingLength { get; }
- public MQTT_String ProtocolName { get; }
- public byte ProtocolVersion { get; }
- public bool UserNameFlagSet { get; }
- public bool PasswordFlagSet { get; }
- public bool WillRetainFlagSet { get; }
- public byte WillQosLevel { get; }
- public bool WillFlagSet { get; }
- public bool CleanStartFlagSet { get; }
- public ushort KeepAlive { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public MQTT_String ClientId { get; }
- public MQTT_String Username { get; }
- public MQTT_String Password { get; }
-
- public MQTT_ControlPacket_CONNECT(byte remainingLength, MQTT_String protocolName, byte protocolVersion, bool userNameFlagSet, bool passwordFlagSet, bool willRetainFlagSet, byte willQosLevel, bool willFlagSet, bool cleanStartFlagSet, ushort keepAlive, uint propertyLength, MQTT_Property[] properties, MQTT_String clientId, MQTT_String username, MQTT_String password)
- {
- RemainingLength = remainingLength;
- ProtocolName = protocolName;
- ProtocolVersion = protocolVersion;
- UserNameFlagSet = userNameFlagSet;
- PasswordFlagSet = passwordFlagSet;
- WillRetainFlagSet = willRetainFlagSet;
- WillQosLevel = willQosLevel;
- WillFlagSet = willFlagSet;
- CleanStartFlagSet = cleanStartFlagSet;
- KeepAlive = keepAlive;
- PropertyLength = propertyLength;
- Properties = properties;
- ClientId = clientId;
- Username = username;
- Password = password;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_DISCONNECT.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_DISCONNECT.cs
deleted file mode 100644
index 7f4396f38..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_DISCONNECT.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_DISCONNECT : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.DISCONNECT;
-
- // Properties.
- public byte RemainingLength { get; }
- public MQTT_ReasonCode Reason { get; }
-
- public MQTT_ControlPacket_DISCONNECT(byte remainingLength, MQTT_ReasonCode reason)
- {
- RemainingLength = remainingLength;
- Reason = reason;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGREQ.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGREQ.cs
deleted file mode 100644
index 092bafe5e..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGREQ.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PINGREQ : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PINGREQ;
-
- // Properties.
- public byte RemainingLength { get; }
-
- public MQTT_ControlPacket_PINGREQ(byte remainingLength)
- {
- RemainingLength = remainingLength;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGRESP.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGRESP.cs
deleted file mode 100644
index 4809d9fd3..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PINGRESP.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PINGRESP : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PINGRESP;
-
- // Properties.
- public byte RemainingLength { get; }
-
- public MQTT_ControlPacket_PINGRESP(byte remainingLength)
- {
- RemainingLength = remainingLength;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBACK.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBACK.cs
deleted file mode 100644
index 55158021b..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBACK.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PUBACK : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PUBACK;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public MQTT_ReasonCode ReasonCode { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_PUBACK(byte remainingLength, ushort packetIdentifier, MQTT_ReasonCode reasonCode, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- ReasonCode = reasonCode;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBCOMP.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBCOMP.cs
deleted file mode 100644
index f941f231f..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBCOMP.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PUBCOMP : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PUBCOMP;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public MQTT_ReasonCode ReasonCode { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_PUBCOMP(byte remainingLength, ushort packetIdentifier, MQTT_ReasonCode reasonCode, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- ReasonCode = reasonCode;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBLISH.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBLISH.cs
deleted file mode 100644
index f64d514d3..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBLISH.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PUBLISH : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PUBLISH;
-
- // Properties.
- public bool Dup { get; }
- public MQTT_QOS Qos { get; }
- public bool Retain { get; }
- public byte RemainingLength { get; }
- public MQTT_String TopicName { get; }
- public ushort PacketIdentifier { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public byte[] Payload { get; }
-
- public MQTT_ControlPacket_PUBLISH(bool dup, MQTT_QOS qos, bool retain, byte remainingLength, MQTT_String topicName, ushort packetIdentifier, uint propertyLength, MQTT_Property[] properties, byte[] payload)
- {
- Dup = dup;
- Qos = qos;
- Retain = retain;
- RemainingLength = remainingLength;
- TopicName = topicName;
- PacketIdentifier = packetIdentifier;
- PropertyLength = propertyLength;
- Properties = properties;
- Payload = payload;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREC.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREC.cs
deleted file mode 100644
index 2cd8ae4e0..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREC.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PUBREC : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PUBREC;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public MQTT_ReasonCode ReasonCode { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_PUBREC(byte remainingLength, ushort packetIdentifier, MQTT_ReasonCode reasonCode, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- ReasonCode = reasonCode;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREL.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREL.cs
deleted file mode 100644
index 37d544329..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_PUBREL.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_PUBREL : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.PUBREL;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public MQTT_ReasonCode ReasonCode { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
-
- public MQTT_ControlPacket_PUBREL(byte remainingLength, ushort packetIdentifier, MQTT_ReasonCode reasonCode, uint propertyLength, MQTT_Property[] properties)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- ReasonCode = reasonCode;
- PropertyLength = propertyLength;
- Properties = properties;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBACK.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBACK.cs
deleted file mode 100644
index 5dabe3e34..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBACK.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_SUBACK : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.SUBACK;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public MQTT_ReasonCode[] Results { get; }
-
- public MQTT_ControlPacket_SUBACK(byte remainingLength, ushort packetIdentifier, uint propertyLength, MQTT_Property[] properties, MQTT_ReasonCode[] results)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- PropertyLength = propertyLength;
- Properties = properties;
- Results = results;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBSCRIBE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBSCRIBE.cs
deleted file mode 100644
index b1169ad47..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_SUBSCRIBE.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_SUBSCRIBE : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.SUBSCRIBE;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public Filter[] Filters { get; }
-
- public MQTT_ControlPacket_SUBSCRIBE(byte remainingLength, ushort packetIdentifier, uint propertyLength, MQTT_Property[] properties, Filter[] filters)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- PropertyLength = propertyLength;
- Properties = properties;
- Filters = filters;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBACK.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBACK.cs
deleted file mode 100644
index 7b530f48f..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBACK.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_UNSUBACK : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.UNSUBACK;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public MQTT_ReasonCode[] Results { get; }
-
- public MQTT_ControlPacket_UNSUBACK(byte remainingLength, ushort packetIdentifier, uint propertyLength, MQTT_Property[] properties, MQTT_ReasonCode[] results)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- PropertyLength = propertyLength;
- Properties = properties;
- Results = results;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBSCRIBE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBSCRIBE.cs
deleted file mode 100644
index 358d4e9be..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_ControlPacket_UNSUBSCRIBE.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_ControlPacket_UNSUBSCRIBE : MQTT_ControlPacket
- {
-
- // Accessors for discriminator values.
- public override MQTT_ControlPacketType PacketType => MQTT_ControlPacketType.UNSUBSCRIBE;
-
- // Properties.
- public byte RemainingLength { get; }
- public ushort PacketIdentifier { get; }
- public uint PropertyLength { get; }
- public MQTT_Property[] Properties { get; }
- public MQTT_String[] Filters { get; }
-
- public MQTT_ControlPacket_UNSUBSCRIBE(byte remainingLength, ushort packetIdentifier, uint propertyLength, MQTT_Property[] properties, MQTT_String[] filters)
- {
- RemainingLength = remainingLength;
- PacketIdentifier = packetIdentifier;
- PropertyLength = propertyLength;
- Properties = properties;
- Filters = filters;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property.cs
deleted file mode 100644
index f0bbba3fb..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public abstract class MQTT_Property
- {
-
- // Abstract accessors for discriminator values.
-
- // Properties.
- public MQTT_PropertyType PropertyType { get; }
-
- public MQTT_Property(MQTT_PropertyType propertyType)
- {
- PropertyType = propertyType;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_PropertyType.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_PropertyType.cs
deleted file mode 100644
index 1e03958ef..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_PropertyType.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public enum MQTT_PropertyType
- {
- PAYLOAD_FORMAT_INDICATOR = 0x01,
- MESSAGE_EXPIRY_INTERVAL = 0x02,
- CONTENT_TYPE = 0x03,
- RESPONSE_TOPIC = 0x08,
- CORRELATION_DATA = 0x09,
- SUBSCRIPTION_IDENTIFIER = 0x0B,
- SESSION_EXPIRY_INTERVAL = 0x11,
- ASSIGNED_CLIENT_IDENTIFIER = 0x12,
- SERVER_KEEP_ALIVE = 0x13,
- AUTHENTICATION_METHOD = 0x15,
- AUTHENTICATION_DATA = 0x16,
- REQUEST_PROBLEM_INFORMATION = 0x17,
- WILL_DELAY_INTERVAL = 0x18,
- REQUEST_RESPONSE_INFORMATION = 0x19,
- RESPONSE_INFORMATION = 0x1A,
- SERVER_REFERENCE = 0x1C,
- REASON_STRING = 0x1F,
- RECEIVE_MAXIMUM = 0x21,
- TOPIC_ALIAS_MAXIMUM = 0x22,
- TOPIC_ALIAS = 0x23,
- MAXIMUM_QOS = 0x24,
- RETAIN_AVAILABLE = 0x25,
- USER_PROPERTY = 0x26,
- MAXIMUM_PACKET_SIZE = 0x27,
- WILDCARD_SUBSCRIPTION_AVAILABLE = 0x28,
- SUBSCRIPTION_IDENTIFIER_AVAILABLE = 0x29,
- SHARED_SUBSCRIPTION_AVAILABLE = 0x2A,
- }
-
-}
-
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER.cs
deleted file mode 100644
index 089e60305..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_ASSIGNED_CLIENT_IDENTIFIER(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_DATA.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_DATA.cs
deleted file mode 100644
index e50694769..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_DATA.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_AUTHENTICATION_DATA : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- public MQTT_Property_AUTHENTICATION_DATA(MQTT_PropertyType propertyType)
- : base(propertyType)
- {
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_METHOD.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_METHOD.cs
deleted file mode 100644
index 5badb2e41..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_AUTHENTICATION_METHOD.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_AUTHENTICATION_METHOD : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_AUTHENTICATION_METHOD(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CONTENT_TYPE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CONTENT_TYPE.cs
deleted file mode 100644
index 3c3530106..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CONTENT_TYPE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_CONTENT_TYPE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_CONTENT_TYPE(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CORRELATION_DATA.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CORRELATION_DATA.cs
deleted file mode 100644
index 07744d86b..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_CORRELATION_DATA.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_CORRELATION_DATA : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- public MQTT_Property_CORRELATION_DATA(MQTT_PropertyType propertyType)
- : base(propertyType)
- {
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_EXPIRY_INTERVAL.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_EXPIRY_INTERVAL.cs
deleted file mode 100644
index 415f1e407..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_EXPIRY_INTERVAL.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_EXPIRY_INTERVAL : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public uint Value { get; }
-
- public MQTT_Property_EXPIRY_INTERVAL(MQTT_PropertyType propertyType, uint value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_PACKET_SIZE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_PACKET_SIZE.cs
deleted file mode 100644
index 3ce792278..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_PACKET_SIZE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_MAXIMUM_PACKET_SIZE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public uint Value { get; }
-
- public MQTT_Property_MAXIMUM_PACKET_SIZE(MQTT_PropertyType propertyType, uint value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_QOS.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_QOS.cs
deleted file mode 100644
index 8d8528b9d..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MAXIMUM_QOS.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_MAXIMUM_QOS : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_MAXIMUM_QOS(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MESSAGE_EXPIRY_INTERVAL.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MESSAGE_EXPIRY_INTERVAL.cs
deleted file mode 100644
index c00f71319..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_MESSAGE_EXPIRY_INTERVAL.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_MESSAGE_EXPIRY_INTERVAL : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public uint Value { get; }
-
- public MQTT_Property_MESSAGE_EXPIRY_INTERVAL(MQTT_PropertyType propertyType, uint value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_PAYLOAD_FORMAT_INDICATOR.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_PAYLOAD_FORMAT_INDICATOR.cs
deleted file mode 100644
index 3b21f8e95..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_PAYLOAD_FORMAT_INDICATOR.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_PAYLOAD_FORMAT_INDICATOR : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_PAYLOAD_FORMAT_INDICATOR(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REASON_STRING.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REASON_STRING.cs
deleted file mode 100644
index 7ea0ef16e..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REASON_STRING.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_REASON_STRING : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_REASON_STRING(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RECEIVE_MAXIMUM.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RECEIVE_MAXIMUM.cs
deleted file mode 100644
index b602b6005..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RECEIVE_MAXIMUM.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_RECEIVE_MAXIMUM : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public ushort Value { get; }
-
- public MQTT_Property_RECEIVE_MAXIMUM(MQTT_PropertyType propertyType, ushort value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_PROBLEM_INFORMATION.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_PROBLEM_INFORMATION.cs
deleted file mode 100644
index 41f6ee171..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_PROBLEM_INFORMATION.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_REQUEST_PROBLEM_INFORMATION : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_REQUEST_PROBLEM_INFORMATION(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_RESPONSE_INFORMATION.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_RESPONSE_INFORMATION.cs
deleted file mode 100644
index dcdce2dc9..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_REQUEST_RESPONSE_INFORMATION.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_REQUEST_RESPONSE_INFORMATION : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_REQUEST_RESPONSE_INFORMATION(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_INFORMATION.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_INFORMATION.cs
deleted file mode 100644
index c202e9373..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_INFORMATION.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_RESPONSE_INFORMATION : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_RESPONSE_INFORMATION(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_TOPIC.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_TOPIC.cs
deleted file mode 100644
index 841884e4f..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RESPONSE_TOPIC.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_RESPONSE_TOPIC : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_RESPONSE_TOPIC(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RETAIN_AVAILABLE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RETAIN_AVAILABLE.cs
deleted file mode 100644
index 18057b707..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_RETAIN_AVAILABLE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_RETAIN_AVAILABLE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_RETAIN_AVAILABLE(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_KEEP_ALIVE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_KEEP_ALIVE.cs
deleted file mode 100644
index 03bd778ff..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_KEEP_ALIVE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_SERVER_KEEP_ALIVE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public ushort Value { get; }
-
- public MQTT_Property_SERVER_KEEP_ALIVE(MQTT_PropertyType propertyType, ushort value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_REFERENCE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_REFERENCE.cs
deleted file mode 100644
index 65db959ae..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SERVER_REFERENCE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_SERVER_REFERENCE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Value { get; }
-
- public MQTT_Property_SERVER_REFERENCE(MQTT_PropertyType propertyType, MQTT_String value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE.cs
deleted file mode 100644
index 7e05153db..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_SHARED_SUBSCRIPTION_AVAILABLE(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER.cs
deleted file mode 100644
index 819c09073..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_SUBSCRIPTION_IDENTIFIER : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public uint Value { get; }
-
- public MQTT_Property_SUBSCRIPTION_IDENTIFIER(MQTT_PropertyType propertyType, uint value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE.cs
deleted file mode 100644
index f9823208a..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_SUBSCRIPTION_IDENTIFIER_AVAILABLE(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS.cs
deleted file mode 100644
index 8c34867c4..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_TOPIC_ALIAS : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public ushort Value { get; }
-
- public MQTT_Property_TOPIC_ALIAS(MQTT_PropertyType propertyType, ushort value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS_MAXIMUM.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS_MAXIMUM.cs
deleted file mode 100644
index 9d626c1fc..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_TOPIC_ALIAS_MAXIMUM.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_TOPIC_ALIAS_MAXIMUM : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public ushort Value { get; }
-
- public MQTT_Property_TOPIC_ALIAS_MAXIMUM(MQTT_PropertyType propertyType, ushort value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_USER_PROPERTY.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_USER_PROPERTY.cs
deleted file mode 100644
index 052e2df7e..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_USER_PROPERTY.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_USER_PROPERTY : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public MQTT_String Name { get; }
- public MQTT_String Value { get; }
-
- public MQTT_Property_USER_PROPERTY(MQTT_PropertyType propertyType, MQTT_String name, MQTT_String value)
- : base(propertyType)
- {
- Name = name;
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE.cs
deleted file mode 100644
index 7d071b0c5..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public byte Value { get; }
-
- public MQTT_Property_WILDCARD_SUBSCRIPTION_AVAILABLE(MQTT_PropertyType propertyType, byte value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILL_DELAY_INTERVAL.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILL_DELAY_INTERVAL.cs
deleted file mode 100644
index 5f83a077a..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_Property_WILL_DELAY_INTERVAL.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Text;
-using org.apache.plc4net.api.value;
-using org.apache.plc4net.spi.generation;
-using org.apache.plc4net.spi.model.values;
-
-// Code generated by code-generation. DO NOT EDIT.
-
-namespace org.apache.plc4net.drivers.mqtt.readwrite.model
-{
-
- public class MQTT_Property_WILL_DELAY_INTERVAL : MQTT_Property
- {
-
- // Accessors for discriminator values.
-
- // Properties.
- public uint Value { get; }
-
- public MQTT_Property_WILL_DELAY_INTERVAL(MQTT_PropertyType propertyType, uint value)
- : base(propertyType)
- {
- Value = value;
- }
-
- }
-}
diff --git a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_QOS.cs b/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_QOS.cs
deleted file mode 100644
index 83b47350e..000000000
--- a/sandbox/mqtt/mqtt-cs/drivers/mqtt/src/drivers/mqtt/readwrite/model/MQTT_QOS.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
... 14104 lines suppressed ...