All Versions
11
Latest Version
Avg Release Cycle
93 days
Latest Release
1520 days ago

Changelog History
Page 2

  • v3.0.0 Changes

    November 07, 2017

    ๐Ÿš€ 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();