You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 added usage_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:
#defineBTSTACK_VERSION_MAJOR 1
#defineBTSTACK_VERSION_MINOR 6
#defineBTSTACK_VERSION_PATCH 1
// optional: but useful to print in the logs#defineBTSTACK_VERSION_STRING "1.6.1"
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.
The text was updated successfully, but these errors were encountered:
We've added a btstack_version.h on develop branch file that's included by btstack_defines.h to simplify the transition.
If BTSTACK_VERSION_MAJOR is not defined, it's v1.6.1 or older. Otherwise you can check the version.
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 added
usage_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.
The text was updated successfully, but these errors were encountered: