ThingSet / thingset-device-library

ThingSet library for resource-constrained devices written in C/C++
https://thingset.io/thingset-device-library/
Apache License 2.0
13 stars 6 forks source link

Support for records in iterable sections #37

Closed martinjaeger closed 1 year ago

martinjaeger commented 2 years ago

The macros for iterable records and record items were still missing.

Unfortunately, for Zephyr iterables to work, the first item has to be a unique ID, so we need to change the order of the existing TS_RECORD_ITEM_* macros.

The order was changed such that the compiler won't compile code with the old order, so that the breaking change is obvious. However, a breaking change cannot be avoided.

Advantage: The order is now more aligned with existing macros, where the unique ID is first and the parent ID is behind the pointer or the detail field.

martinjaeger commented 1 year ago

Thanks for your review @towen!