Page 78 - MDP2022-2
P. 78
}
});
mBtnBluetoothOff.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
bluetoothOff();
}
});
mBtnConnect.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
listPairedDevices();
}
});
up.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
if (mThreadConnectedBluetooth != null) {
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");
mThreadConnectedBluetooth.write("w");