File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1616
1717#include <stdint.h>
1818#include <stddef.h>
19+ #include <interfaces/message.h>
1920
2021/******************************************************************************
2122 * DEFINE
3132 TYPEDEF
3233 ******************************************************************************/
3334
34- enum CommandId : uint32_t {
35+ enum CommandId : MessageId {
3536
3637 /* Device commands */
37- DeviceBeginCmdId ,
38+ DeviceBeginCmdId = ArduinoIOTCloudStartMessageId ,
3839 ThingBeginCmdId ,
3940 ThingUpdateCmdId ,
4041 ThingDetachCmdId ,
@@ -60,14 +61,10 @@ enum CommandId: uint32_t {
6061 TimezoneCommandDownId ,
6162
6263 /* Unknown command id */
63- UnknownCmdId
64+ UnknownCmdId ,
6465};
6566
66- struct Command {
67- CommandId id ;
68- };
69-
70- typedef Command Message ;
67+ typedef Message Command ;
7168
7269struct DeviceBeginCmd {
7370 Command c ;
@@ -149,7 +146,7 @@ struct TimezoneCommandDown {
149146};
150147
151148union CommandDown {
152- struct Command c ;
149+ Command c ;
153150 struct OtaUpdateCmdDown otaUpdateCmdDown ;
154151 struct ThingUpdateCmd thingUpdateCmd ;
155152 struct ThingDetachCmd thingDetachCmd ;
You can’t perform that action at this time.
0 commit comments