Skip to content

API v2.0.0 Beta Release 01

Pre-release
Pre-release
Compare
Choose a tag to compare
@mbientlab mbientlab released this 07 Jul 02:05
· 88 commits to master since this release

This is the first beta release of Android API v2.0.0. Version 2.0.0 has several new features to simplify tasks that would have resulted in callback hell e.g. setting up a data processing chain. The release is not compatible with previous APIs so you will need to overhaul your code to use this beta release. Instructions on integrating the library into your project are in the project's README the wiki has more details on v2.0.0 features. Sample code is provided in the example module.

Attached is the jar version of this release for users who require a direct download.

Major Changes

  1. Background MetaWear service no longer communicates to apps via a BroadcastReceiver. All asynchronous responses are executed in the background.
    • UI tasks in callback functions need to be explicitly run on the UI thread
  2. Callbacks for receiving asynchronous responses (i.e. reading RSSI values) are replaced with the AsyncResult class.
  3. Java DSL to express how sensor data should be manipulated and routed.
  4. Encapsulate sensor data with Message class
  5. Renamed main package to com.mbientlab.metawear