Skip to content

Firmware v1.3.2 Feature Support and API Refactoring

Pre-release
Pre-release

Choose a tag to compare

@mbientlab mbientlab released this 12 Dec 05:47
· 59 commits to master since this release

Beta03 of the 3.0.0 API adds support for upcoming firmware v1.3.2 features and refactors the API and some of the implementation of it. This release has breaking changes to both the interfaces and the underlying serialization. You will need to update your code and reserialize any saved MetaWearBoard objects.

Changes

  • Updated time filter configuration to reduce the frequency of sensor fusion data
    • Requires firmware v1.3.2
  • Added support for power and charge status notifications
    • Requires firmware v1.3.2
  • Created common DataProducer interface that the async and forced variants derive from
  • Refactored the SerialPassthrough interface
    • Changed SpiParameterBuilder to set the data parameter
      • Data parameter removed from the Spi.read function
    • Have I2c and Spi interfaces extend from DataProducer
    • Added direct spi and i2c reads
      • Encapsulates data in a Task object rather than sending the data to a Subscriber
  • Modified ambient light, color detector, humidity, and proximity interfaces to no longer extends from a data producer interface
    • Instead, they have methods that return data producer objects: illuminance, adc, value, and adc respectively
      • Both color detector and proximity have an adc method
  • Renamed SensorFusion interface to SensorFusionBosch
  • Renamed the editor interfaces under the DataProcessor interface
    • Appended "Editor" to the names and removed extraneous text like "Finder" and "Limiter"
  • Renamed datatype package to data
  • Moved common data wrapper classes into the data package
  • Separated acceleratiion, angular velocity, and magnetic field data into their own classes
  • Renamed Source and SourceType to Sensor and SensorType respectively