Skip to content

Swift Compatibility Update

Compare
Choose a tag to compare
@mbientlab mbientlab released this 19 Jan 22:56
· 123 commits to master since this release

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 to null if using the Python or NodeJS bindings
  • Added context field to the MblMwBtleConnection and MblMwLogDownloadHandler 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's extra field to a unsigned int pointer
  • Expose device information characteristics
  • Fixed null pointer exception when unsubscribing from packed data signals