01-06-2021 20:19
01-06-2021 20:19
I want to create an array of CBOR objects, and get them decoded at companion. After some tests, it seems that the CBOR library only supports TAG 0x98 + [1-byte array length]. I wonder if there is any limitation on this array length, OR, any length from 0 to 255 will be fine for the library.
Thank you!
Answered! Go to the Best Answer.
Best Answer01-08-2021 05:40
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-08-2021 05:40
Just as an update, it looks like it's based on determinate length encoding. So the length can be 8 bytes, or uint64
Best Answer01-08-2021 05:27
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-08-2021 05:27
I'm not sure of the limitations here, so if you've succeeded then I'd just go with that!
Best Answer01-08-2021 05:40
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-08-2021 05:40
Just as an update, it looks like it's based on determinate length encoding. So the length can be 8 bytes, or uint64
Best Answer01-08-2021 07:40
01-08-2021 07:40
It seems 255 is working fine with my test. Thank you very much!
Best Answer