Skip to content

Commit 5a50f02

Browse files
defining Message structure for encoding and decoding messages with an id specifier
1 parent dfca0e8 commit 5a50f02

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/interfaces/message.h

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
This file is part of the Arduino_CloudUtils library.
3+
4+
Copyright (c) 2024 Arduino SA
5+
6+
This Source Code Form is subject to the terms of the Mozilla Public
7+
License, v. 2.0. If a copy of the MPL was not distributed with this
8+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+
*/
10+
11+
#pragma once
12+
13+
typedef uint32_t MessageId;
14+
15+
struct Message {
16+
MessageId id;
17+
};

0 commit comments

Comments
 (0)