Skip to content

Commit 14debfe

Browse files
restructuring CBOR.h for cloud utils offload
1 parent a0acb17 commit 14debfe

File tree

2 files changed

+2
-91
lines changed

2 files changed

+2
-91
lines changed

src/cbor/CBOR.cpp

-77
This file was deleted.

src/cbor/CBOR.h

+2-14
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
* INCLUDE
1515
******************************************************************************/
1616
#include <message/Commands.h>
17+
#include <Arduino_CBOR.h>
1718

1819
/******************************************************************************
1920
TYPEDEF
2021
******************************************************************************/
2122

22-
enum CBORCommandTag: uint64_t {
23+
enum CBORCommandTag: CBORTag {
2324
// Commands UP
2425
CBOROtaBeginUp = 0x010000,
2526
CBORThingBeginCmd = 0x010300,
@@ -34,17 +35,4 @@ enum CBORCommandTag: uint64_t {
3435
CBORThingDetachCmd = 0x011000,
3536
CBORLastValuesUpdate = 0x010600,
3637
CBORTimezoneCommandDown = 0x010900,
37-
38-
// Unknown Command Tag https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
39-
CBORUnknownCmdTag16b = 0xffff, // invalid tag
40-
CBORUnknownCmdTag32b = 0xffffffff, // invalid tag
41-
CBORUnknownCmdTag64b = 0xffffffffffffffff, // invalid tag
42-
CBORUnknownCmdTag = CBORUnknownCmdTag32b
4338
};
44-
45-
/******************************************************************************
46-
* FUNCTION DECLARATION
47-
******************************************************************************/
48-
49-
CommandId toCommandId(CBORCommandTag tag);
50-
CBORCommandTag toCBORCommandTag(CommandId id);

0 commit comments

Comments
 (0)