2020-07-16 10:39:38 +02:00
|
|
|
From 75774342cbd175287ccd3190c76db0b07314b3cf Mon Sep 17 00:00:00 2001
|
2020-07-05 17:21:00 +02:00
|
|
|
From: Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
|
|
Date: Sun, 7 Jun 2020 10:27:56 +0200
|
2020-07-16 10:39:38 +02:00
|
|
|
Subject: [PATCH 1/1] MQTTClient-C: skip SUCCESS enum on STM32 cpus
|
2020-07-05 17:21:00 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
MQTTClient-C/src/MQTTClient.h | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/MQTTClient-C/src/MQTTClient.h b/MQTTClient-C/src/MQTTClient.h
|
2020-07-16 10:39:38 +02:00
|
|
|
index b612341..4f1dfba 100755
|
2020-07-05 17:21:00 +02:00
|
|
|
--- a/MQTTClient-C/src/MQTTClient.h
|
|
|
|
+++ b/MQTTClient-C/src/MQTTClient.h
|
|
|
|
@@ -54,7 +54,13 @@
|
|
|
|
enum QoS { QOS0, QOS1, QOS2, SUBFAIL=0x80 };
|
|
|
|
|
|
|
|
/* all failure return codes must be negative */
|
2020-07-16 10:39:38 +02:00
|
|
|
+#if !defined(CPU_LINE_STM32F030x4) && defined(CPU_STM32)
|
|
|
|
+/* the SUCCESS enum is defined for all stm32.
|
2020-07-05 17:21:00 +02:00
|
|
|
+ Since it contains the same value, we just skip its definition here for them. */
|
|
|
|
+enum returnCode { BUFFER_OVERFLOW = -2, FAILURE = -1};
|
|
|
|
+#else
|
|
|
|
enum returnCode { BUFFER_OVERFLOW = -2, FAILURE = -1, SUCCESS = 0 };
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* The Platform specific header must define the Network and Timer structures and functions
|
|
|
|
* which operate on them.
|
|
|
|
--
|
|
|
|
2.25.1
|
|
|
|
|