We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb59ceb commit bf817dfCopy full SHA for bf817df
src/interfaces/message.h
@@ -12,6 +12,23 @@
12
13
typedef uint32_t MessageId;
14
15
+/**
16
+ * The following struct can be used as a template to create ArduinoCloud compatible
17
+ * Messages that can be handled by encoders/decoders and other Cloud related message exchange
18
+ * These kind of messages are required to be identifiable by a starting uint32_t uinique identification number.
19
+ *
20
+ * In order to use this structure you need to embed this into another structure and
21
+ * add additional parameters
22
+ */
23
struct Message {
24
MessageId id;
25
};
26
+
27
28
+ * The following enum is defined to assign Arduino MessageIds starting values
29
+ * and boundaries and avoid value clashing
30
31
+enum : MessageId {
32
+ ArduinoIOTCloudStartMessageId = 0x100,
33
+ ArduinoProvisioningStartMessageId = 0x200,
34
+};
0 commit comments