cbor_encoder_create_array() returns CborErrorOutOfMemory (0x80000000)
Open
- Dominant language
- C
- Stars
- 630
- Forks
- 222
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 1
Description
Hi,
the code bellow causes that cbor_encoder_create_array returns CborErrorOutOfMemory.
```c
CborEncoder enc, array_enc;
u8_t buf[16];
cbor_encoder_init(&enc, buf, sizeof(buf), 0);
int res = 0;
res = cbor_encoder_create_array(&enc, &array_enc, 1);
```
How to create a CBOR array? Can you point me to some example. Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.