Crea sito


org.zu.ardulink.connection.pi
Class RaspberryPIConnection

java.lang.Object
  extended by org.zu.ardulink.connection.pi.RaspberryPIConnection
All Implemented Interfaces:
org.zu.ardulink.connection.Connection

public class RaspberryPIConnection
extends Object
implements org.zu.ardulink.connection.Connection


Field Summary
static String CONNECTION_NAME
           
 
Constructor Summary
RaspberryPIConnection()
           
RaspberryPIConnection(String protocolName)
           
 
Method Summary
 boolean connect()
           
 boolean connect(Object... params)
           
 boolean disconnect()
           
 List<String> getPortList()
           
 boolean isConnected()
           
 void setConnectionContact(org.zu.ardulink.ConnectionContact contact)
           
 void writeLog(String text)
           
 boolean writeSerial(int numBytes, int[] message)
           
 boolean writeSerial(String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_NAME

public static final String CONNECTION_NAME
See Also:
Constant Field Values
Constructor Detail

RaspberryPIConnection

public RaspberryPIConnection()

RaspberryPIConnection

public RaspberryPIConnection(String protocolName)
Method Detail

getPortList

public List<String> getPortList()
Specified by:
getPortList in interface org.zu.ardulink.connection.Connection

connect

public boolean connect()

connect

public boolean connect(Object... params)
Specified by:
connect in interface org.zu.ardulink.connection.Connection

disconnect

public boolean disconnect()
Specified by:
disconnect in interface org.zu.ardulink.connection.Connection

isConnected

public boolean isConnected()
Specified by:
isConnected in interface org.zu.ardulink.connection.Connection

writeSerial

public boolean writeSerial(String message)
Specified by:
writeSerial in interface org.zu.ardulink.connection.Connection

writeSerial

public boolean writeSerial(int numBytes,
                           int[] message)
Specified by:
writeSerial in interface org.zu.ardulink.connection.Connection

setConnectionContact

public void setConnectionContact(org.zu.ardulink.ConnectionContact contact)
Specified by:
setConnectionContact in interface org.zu.ardulink.connection.Connection

writeLog

public void writeLog(String text)


Copyright © 2015. All rights reserved.