Open ricardoquesada opened 3 weeks ago
Hi @ricardoquesada Fair request. There's already another feature request on the issue tracker.
Ideally, it would use the version and git hash, however, that's not possible across any all platforms.
However, updating a version file manually per release sounds doable.
Is your feature request related to a problem? Please describe. Recently the API to use the
btstack_hid_parser_t
changed in a way that is not backward compatible. In addedusage_iterator
.Libraries that depend on BTstack (like Bluepad32) might use latest BTstack version (when bundled with Bluepad32), or might use the BTstack bundled with PicoSDK (which uses the old API).
For example, Bluepad32 (and other libraries) could use something like:
And
btstack_version.h
could have something like:Describe the solution you'd like Before releasing a new stable version, it would be great to have a header file that has the BTstack version defined. Based on that I can either use one API, or the other.
Describe alternatives you've considered
Additional context Add any other context or screenshots about the feature request here.