Skip to content

Instantly share code, notes, and snippets.

@singhrahuldps
Created April 30, 2020 13:57
Show Gist options
  • Save singhrahuldps/27f49d29073be11b5ce7ab771a34d134 to your computer and use it in GitHub Desktop.
Save singhrahuldps/27f49d29073be11b5ce7ab771a34d134 to your computer and use it in GitHub Desktop.
public class Bluetooth implements CommunicationDriver{
String connectedDevice;
@Override
public void connectDevice(String deviceName) {
this.connectedDevice = deviceName;
System.out.println("Connected to " + this.connectedDevice);
}
@Override
public void disconnectDevice() {
System.out.println("Disconnected " + this.connectedDevice);
this.connectedDevice = null;
}
@Override
public void sendFile(String filePath) {
System.out.println("File sent successfully!");
}
@Override
public void receiveFile() {
System.out.println("File received successfully!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment