We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, the code bellow causes that cbor_encoder_create_array returns CborErrorOutOfMemory.
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!
The text was updated successfully, but these errors were encountered:
You've got the right code. This prints 0 for me:
#include <cbor.h> #include <stdint.h> int main() { CborEncoder enc, array_enc; uint8_t buf[16]; cbor_encoder_init(&enc, buf, sizeof(buf), 0); int res = 0; res = cbor_encoder_create_array(&enc, &array_enc, 1); printf("%x\n", res); }
Can you give me a more complete example that does fail for you?
Sorry, something went wrong.
No branches or pull requests
Hi,
the code bellow causes that cbor_encoder_create_array returns CborErrorOutOfMemory.
How to create a CBOR array? Can you point me to some example. Thank you!
The text was updated successfully, but these errors were encountered: