File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
typedef uint32_t MessageId ;
14
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
+ */
15
23
struct Message {
16
24
MessageId id ;
17
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
+ };
You can’t perform that action at this time.
0 commit comments