Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.71 KB

CHANGELOG.md

File metadata and controls

47 lines (36 loc) · 1.71 KB

[3.6.0]

  • added application level encryption for over the air data
  • added method getOutgoingData to AbstractAttribute that replaces the method getBytes and needs CryptoManager as argument
  • added alternative signature for Characteristic.createAttribute: added new parameter for CryptoManager
  • to get the raw data representation of an attribute the method getRawData was added to AbstractAttribute

[3.2.0] (2019-09-03)

  • Added putMstime to GattByteBuffer

[3.1.0] (2019-02-21)

  • Added getCharacteristics to obtain all Characteristics as a Collection

3.0.0 (2017-11-07)

This release comes with a significant api change to simplify

Upgrade Instructions

  • replace com.movisens.smartgattlib.Service with com.movisens.smartgattlib.Services
  • replace com.movisens.smartgattlib.Characteristic with com.movisens.smartgattlib.Characteristics

It is now possible to parse Characteristics with:

AbstractAttribute a = Characteristics.lookup(uuid).createAttribute(data);
if (a instanceof HeartRateMeasurement) {
    HeartRateMeasurement heartRateMeasurement = ((HeartRateMeasurement) a);
    heartRateMeasurement.getHr();
    heartRateMeasurement.getEe();
} else if (a instanceof DefaultAttribute) {
    System.err.println("characteristic for " + uuid + " is unknown");
} else {
    System.out.println("unused characteristic " + a.getCharacteristic().getName());
}

It is also possible to write Characteristics and convert them to bytes:

AbstractAttribute aa = new Weight(12.3);
// TODO: Write aa.getBytes() to aa.getCharacteristic().getUuid();