IOTechSystems / iotech-c-utils

Apache License 2.0
9 stars 7 forks source link

XRT-2803: add cbor decode support #332

Closed dpazj closed 8 months ago

dpazj commented 8 months ago

@iain-anderson Not sure what to do for cbor type "tag" so currently returning iot_data_null when we encounter. Any suggestions on how to handle properly - maybe we just ignore entirely?

iain-anderson commented 8 months ago

@iain-anderson Not sure what to do for cbor type "tag" so currently returning iot_data_null when we encounter. Any suggestions on how to handle properly - maybe we just ignore entirely?

I think the right thing is to do cbor_tag_item (tag) until the thing we've got isn't a tag. ie we ignore the tags but we do process the thing to which the tag has been applied