use of com.eveningoutpost.dexdrip.watch.thinjam.messages.StandbyTx in project xDrip-plus by jamorham.
the class BlueJayService method standby.
public void standby() {
if (BlueJayInfo.getInfo(I.address).buildNumber > 39) {
addToLog("Requesting watch standby");
val description = "Watch Standby";
val item = new QueueMe().setBytes(new StandbyTx().getBytes());
item.setDescription(description).setProcessor(new AuthReplyProcessor(new ReplyProcessor(I.connection) {
@Override
public void process(byte[] bytes) {
UserError.Log.d(TAG, "Reply for: " + description + " " + JoH.bytesToHex(bytes));
}
}).setTag(item)).expireInSeconds(60);
item.queueUnique();
doQueue();
invalidateCache();
} else {
JoH.static_toast_long("Needs BlueJay firmware upgrade to support standby");
}
}
use of com.eveningoutpost.dexdrip.watch.thinjam.messages.StandbyTx in project xDrip by NightscoutFoundation.
the class BlueJayService method standby.
public void standby() {
if (BlueJayInfo.getInfo(I.address).buildNumber > 39) {
addToLog("Requesting watch standby");
val description = "Watch Standby";
val item = new QueueMe().setBytes(new StandbyTx().getBytes());
item.setDescription(description).setProcessor(new AuthReplyProcessor(new ReplyProcessor(I.connection) {
@Override
public void process(byte[] bytes) {
UserError.Log.d(TAG, "Reply for: " + description + " " + JoH.bytesToHex(bytes));
}
}).setTag(item)).expireInSeconds(60);
item.queueUnique();
doQueue();
invalidateCache();
} else {
JoH.static_toast_long("Needs BlueJay firmware upgrade to support standby");
}
}
Aggregations