Hi,
I am trying to use Cbor library provided the SDK version 1.3.0, I have added the module in my prj.conf file, however the documentation (at the top of cborencoder.c) that describes the cbor_encoder_init function has different parameters on its usage of what the source code has.
From the source code we have:
void cbor_encoder_init(CborEncoder *encoder, cbor_encoder_writer *writer, int flags) { encoder->writer = writer; encoder->added = 0; encoder->flags = flags; }
But the documentation at the top of cborencoder.c has the following for when ilustrating its usage:
cbor_encoder_init(&encoder, &buf, sizeof(buf), 0);
Does anyone knows how this is supposed to be used?, is there any documentation anywhere on how this is used?
Any help would be appreciated.