Back to project page BTSerialConsole.
The source code is released under:
MIT License
If you think the Android project BTSerialConsole listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.neykov.bluetoothserialconsole.connection; /*w w w . j a v a 2s. co m*/ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public interface IDeviceDriver { public void openConnection(); public void closeConnection(); public void setup(ConnectionParameters connParams) throws IOException; public boolean isConnected(); public int write(byte[] writeBuffer, int length); public int write(byte[] writeBuffer); public int write(String writeString); public InputStream getInputStream(); public OutputStream getOutputStream(); public String getDeviceName(); }