Page 81 - MDP2022-2
P. 81
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
mThreadConnectedBluetooth.write("s");
}
}
});
STOP.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View view) {
if (mThreadConnectedBluetooth != null) {
mThreadConnectedBluetooth.write("x");
mThreadConnectedBluetooth.write("x");
mThreadConnectedBluetooth.write("x");
mThreadConnectedBluetooth.write("x");
mThreadConnectedBluetooth.write("x");
mThreadConnectedBluetooth.write("x");