Swift Compatibility Update
API v0.12.0 introduces breaking changes to accommodate being used in the Swift SDK. These changes also facilitate using the SDK in a C/C++ project but can be ignored when using the Python or NodeJS bindings.
Changes
- Updated function pointers to include a
context
parameter- All functions using the function pointers are modified to have an extra
context
parameter which will then be passed to the callback function context
can be set tonull
if using the Python or NodeJS bindings
- All functions using the function pointers are modified to have an extra
- Added
context
field to theMblMwBtleConnection
andMblMwLogDownloadHandler
structs- This field will be passed into their respective function pointers
- Added orientation data signal for MMA8452Q accelerometer
- Added high-pass filter support
- Added count mode for the accounter processor
- The counter's value is accessed by typecasting the
MblMwData
struct'sextra
field to a unsigned int pointer
- The counter's value is accessed by typecasting the
- Expose device information characteristics
- Fixed null pointer exception when unsubscribing from packed data signals