Skip to content

Commit 151088c

Browse files
restructuring CBOR.h for cloud utils offload
1 parent 9b45d79 commit 151088c

File tree

2 files changed

+2
-148
lines changed

2 files changed

+2
-148
lines changed

src/cbor/CBOR.cpp

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/cbor/CBOR.h

Lines changed: 2 additions & 15 deletions
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,
@@ -50,18 +51,4 @@ enum CBORCommandTag: uint64_t {
5051
CBORProvisioningCATM1Config = 0x012008,
5152
CBORProvisioningEthernetConfig = 0x012009,
5253
CBORProvisioningCellularConfig = 0x012012,
53-
54-
55-
// Unknown Command Tag https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
56-
CBORUnknownCmdTag16b = 0xffff, // invalid tag
57-
CBORUnknownCmdTag32b = 0xffffffff, // invalid tag
58-
CBORUnknownCmdTag64b = 0xffffffffffffffff, // invalid tag
59-
CBORUnknownCmdTag = CBORUnknownCmdTag32b
6054
};
61-
62-
/******************************************************************************
63-
* FUNCTION DECLARATION
64-
******************************************************************************/
65-
66-
CommandId toCommandId(CBORCommandTag tag);
67-
CBORCommandTag toCBORCommandTag(CommandId id);

0 commit comments

Comments
 (0)