Class BluetoothLeConnector
java.lang.Object
jp.co.sanei_elec.printerlibrary.api.connectivity.AbstractConnector
jp.co.sanei_elec.printerlibrary.api.connectivity.BluetoothConnector
jp.co.sanei_elec.printerlibrary.api.connectivity.BluetoothLeConnector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBluetoothLeConnector
(android.content.Context context, android.bluetooth.BluetoothAdapter btAdapter, android.bluetooth.BluetoothDevice btDevice) -
Method Summary
Methods inherited from class jp.co.sanei_elec.printerlibrary.api.connectivity.BluetoothConnector
equals, getBluetoothAdapter, getBluetoothDevice
Methods inherited from class jp.co.sanei_elec.printerlibrary.api.connectivity.AbstractConnector
getContext
-
Field Details
-
UUID_SERVICES
-
UUID_RX_CHAR
-
UUID_TX_CHAR
-
UUID_CN_CHAR
-
UUID_PW_CHAR
-
-
Constructor Details
-
BluetoothLeConnector
public BluetoothLeConnector(android.content.Context context, android.bluetooth.BluetoothAdapter btAdapter, android.bluetooth.BluetoothDevice btDevice)
-
-
Method Details
-
setDebug
public static void setDebug(boolean on) Enable or disable printing debug information.- Parameters:
on
- debug output.
-
connect
- Specified by:
connect
in classAbstractConnector
- Throws:
IOException
-
close
- Specified by:
close
in classAbstractConnector
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in classAbstractConnector
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in classAbstractConnector
- Throws:
IOException
-