use of com.welie.blessed.BluetoothBytesParser in project openScale by oliexdev.
the class BluetoothBeurerBF105 method requestVendorSpecificUserList.
@Override
protected synchronized void requestVendorSpecificUserList() {
BluetoothBytesParser parser = new BluetoothBytesParser();
parser.setIntValue(0, FORMAT_UINT8);
writeBytes(SERVICE_BF105_CUSTOM, CHARACTERISTIC_USER_LIST, parser.getValue());
}
use of com.welie.blessed.BluetoothBytesParser in project openScale by oliexdev.
the class BluetoothBeurerBF105 method requestMeasurement.
@Override
protected synchronized void requestMeasurement() {
BluetoothBytesParser parser = new BluetoothBytesParser();
parser.setIntValue(0, FORMAT_UINT8);
writeBytes(SERVICE_BF105_CUSTOM, CHARACTERISTIC_TAKE_MEASUREMENT, parser.getValue());
}
use of com.welie.blessed.BluetoothBytesParser in project openScale by oliexdev.
the class BluetoothBeurerBF105 method writeTargetWeight.
protected void writeTargetWeight() {
BluetoothBytesParser parser = new BluetoothBytesParser();
int targetWeight = (int) this.selectedUser.getGoalWeight();
parser.setIntValue(targetWeight, FORMAT_UINT16);
writeBytes(SERVICE_BF105_CUSTOM, CHARACTERISTIC_TARGET_WEIGHT, parser.getValue());
}
use of com.welie.blessed.BluetoothBytesParser in project openScale by oliexdev.
the class BluetoothBeurerBF105 method writeInitials.
@Override
protected void writeInitials() {
BluetoothBytesParser parser = new BluetoothBytesParser();
String initials = getInitials(this.selectedUser.getUserName());
Timber.d("Initials: " + initials);
parser.setString(initials);
writeBytes(SERVICE_BF105_CUSTOM, CHARACTERISTIC_INITIALS, parser.getValue());
}
use of com.welie.blessed.BluetoothBytesParser in project openScale by oliexdev.
the class BluetoothBeurerBF600 method requestVendorSpecificUserList.
@Override
protected synchronized void requestVendorSpecificUserList() {
BluetoothBytesParser parser = new BluetoothBytesParser();
parser.setIntValue(0x00, FORMAT_UINT8);
writeBytes(SERVICE_BEURER_CUSTOM_BF600, CHARACTERISTIC_BEURER_BF600_USER_LIST, parser.getValue());
stopMachineState();
}
Aggregations