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

Add function return value #45

Closed martinjaeger closed 1 year ago

martinjaeger commented 1 year ago

This allows to check whether a function call was successful by returning a status code (typically negative errno or 0 for success in Zephyr).

The functions have already been tested. This PR is mainly for documentation purposes.

The TS_FUNCTION macro has been deprecated and replaced by TS_FN_VOID.