Crea sito


org.zu.ardulink.connection.bluetooth
Class BluetoothConnection

java.lang.Object
  extended by org.zu.ardulink.connection.serial.AbstractSerialConnection
      extended by org.zu.ardulink.connection.bluetooth.BluetoothConnection
All Implemented Interfaces:
Connection

public class BluetoothConnection
extends AbstractSerialConnection
implements Connection

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Luciano Zu project Ardulink http://www.ardulink.org/


Field Summary
 
Fields inherited from class org.zu.ardulink.connection.serial.AbstractSerialConnection
DEFAULT_CONNECTION_NAME
 
Constructor Summary
BluetoothConnection()
           
 
Method Summary
 boolean connect(Object... params)
           
 boolean connect(String deviceName)
           
 boolean disconnect()
           
 List<String> getPortList()
          This method is used to get a list of all the available Serial ports (note: only Serial ports are considered).
 void setPorts(Map<String,javax.bluetooth.ServiceRecord> ports)
           
 
Methods inherited from class org.zu.ardulink.connection.serial.AbstractSerialConnection
getContact, getId, isConnected, setConnectionContact, startReader, stopReader, writeLog, writeSerial, writeSerial
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zu.ardulink.connection.Connection
isConnected, setConnectionContact, writeSerial, writeSerial
 

Constructor Detail

BluetoothConnection

public BluetoothConnection()
Method Detail

getPortList

public List<String> getPortList()
Description copied from class: AbstractSerialConnection
This method is used to get a list of all the available Serial ports (note: only Serial ports are considered). Any one of the elements contained in the returned List can be used as a parameter in #connect(String) or #connect(String, int) to open a Serial connection.

Specified by:
getPortList in interface Connection
Specified by:
getPortList in class AbstractSerialConnection
Returns:
A List containing Strings showing all available Serial ports.

connect

public boolean connect(Object... params)
Specified by:
connect in interface Connection
Specified by:
connect in class AbstractSerialConnection

connect

public boolean connect(String deviceName)

disconnect

public boolean disconnect()
Specified by:
disconnect in interface Connection
Specified by:
disconnect in class AbstractSerialConnection

setPorts

public void setPorts(Map<String,javax.bluetooth.ServiceRecord> ports)


Copyright © 2015. All rights reserved.