public final class SerialComBluetoothSPPDevNode extends Object
Represents a device node created for serial port emulation over bluetooth channel using rfcomm service.
| Constructor and Description |
|---|
SerialComBluetoothSPPDevNode(String deviceNode,
String address,
String channel)
Construct and allocates a new SerialComBluetoothAdapter object with given details.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDeviceInfo()
Prints information about this device node on console.
|
String |
getAddress()
Returns the hardware address of the remote Bluetooth device
for example "00:11:22:AA:BB:CC".
|
int |
getChannelNumber()
Returns the channel number in use for serial port profile connection.
|
String |
getDeviceNode()
Returns the device node (including full path for unix-like operating systems)
representing serial port connection over bluetooth channel with remote device.
|
public SerialComBluetoothSPPDevNode(String deviceNode, String address, String channel)
Construct and allocates a new SerialComBluetoothAdapter object with given details.
address - bluetooth mac address of remote device.channel - bluetooth channel number in use for serial port profile connection.public String getDeviceNode()
Returns the device node (including full path for unix-like operating systems) representing serial port connection over bluetooth channel with remote device.
public String getAddress()
Returns the hardware address of the remote Bluetooth device for example "00:11:22:AA:BB:CC".
public int getChannelNumber()
Returns the channel number in use for serial port profile connection.
public void dumpDeviceInfo()
Prints information about this device node on console.
Copyright © 2016. All rights reserved.