Read the article...
This firmware calls the tinycbor-bl602
Library to encode the following data into CBOR (Concise Binary Object Representation) Format...
{ "t": 1234 }
{ "t": 1234, "l": 2345 }
At the BL604 Command Prompt, enter test_cbor
and test_cbor2
...
# test_cbor
CBOR Output: 6 bytes
0xa1
0x61
0x74
0x19
0x04
0xd2
# test_cbor2
CBOR Output: 11 bytes
0xa2
0x61
0x74
0x19
0x04
0xd2
0x61
0x6c
0x19
0x09
0x29