For a start, we can reuse the alert notification from Mi 1 #323

So vibration works :-)
master
cpfeiffer 2016-09-20 23:41:50 +02:00
parent ccdb843b6e
commit 1bd919ccaa
1 changed files with 1 additions and 10 deletions

View File

@ -291,16 +291,7 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
}
private NotificationStrategy getNotificationStrategy() {
if (mDeviceInfo == null) {
// not initialized yet?
return new NoNotificationStrategy();
}
if (mDeviceInfo.getFirmwareVersion() < MiBandFWHelper.FW_16779790) {
return new V1NotificationStrategy(this);
} else {
//use the new alert characteristic
return new V2NotificationStrategy(this);
}
return new V2NotificationStrategy(this);
}
static final byte[] reboot = new byte[]{MiBandService.COMMAND_REBOOT};