Skip to content

New Features and Bug Fixes for API 2.X

Choose a tag to compare

@scaryghost scaryghost released this 19 Sep 08:39
· 76 commits to master since this release

Version 2.1.0 enhances support for the I2C data, addresses some bugs with the macro module and data processors, and adds more features to the data routes, MetaWearBoard class, and debug module.

Changes

  • Hooked in I2C data to the data route system
    • Data processor support is limited, can only attach the counter data processor to I2C data
  • Updated API to work with devices in MetaBoot mode
  • Integrated device firmware update with the API (updateFirmware function)
    • Requires active internet connection and will always update to the latest available firmware release
  • Add timeouts to asynchronous operations
    • These are automatically set by the API when created and will result in a TimeoutException if not completed within the allotted time
  • Added disconnect function to the Debug module which has the board terminate the connection
    • The disconnect function in the MetaWearBoard class has the Android device terminate the connection
    • Can be used to send commands to the board then end the connection, ensuring the commands are sent
  • Fixed null pointer exception when adding data routes with the macro system
  • Improved stability of the macro system when adding data routes
    • Addresses cases where the some macro commands were not received by the board
  • Fixed null pointer exception that sometimes occurs when unsubscribing from a data process stream
    • Sometimes happened when you unsubscribe from a high frequency dp stream e.g. accel @ 100Hz -> rss
  • Fixed bug with constructing the configuration for the counter transformer