2016-11-15 11:56:14 +01:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.devices.pebble;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
|
|
|
|
|
|
|
class DatalogSessionHealthHR extends DatalogSessionPebbleHealth {
|
|
|
|
|
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(DatalogSessionHealthHR.class);
|
|
|
|
|
2017-02-20 08:47:42 +01:00
|
|
|
DatalogSessionHealthHR(byte id, UUID uuid, int timestamp, int tag, byte item_type, short item_size, GBDevice device) {
|
|
|
|
super(id, uuid, timestamp, tag, item_type, item_size, device);
|
2016-11-15 11:56:14 +01:00
|
|
|
taginfo = "(Health - HR " + tag + " )";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handleMessage(ByteBuffer datalogMessage, int length) {
|
|
|
|
LOG.info("DATALOG " + taginfo + GB.hexdump(datalogMessage.array(), datalogMessage.position(), length));
|
|
|
|
|
|
|
|
return isPebbleHealthEnabled();
|
|
|
|
}
|
|
|
|
}
|