public class ArduinoEthernetImpl extends ObservableArduino implements ArduinoEthernet
| Constructor and Description |
|---|
ArduinoEthernetImpl(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
String |
get(String key) |
KeyValueCache |
getCache() |
ConnectionState |
getCurrentState() |
String |
getHost() |
int |
getPort() |
Socket |
getSocket()
Returns the socket
|
ConnectionState |
getTargetState() |
void |
send(String key,
String value) |
void |
setCache(KeyValueCache cache) |
void |
setTargetState(ConnectionState state) |
addListener, fireReceived, fireTransmitted, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, removeListenerpublic ArduinoEthernetImpl(String host, int port)
public String getHost()
getHost in interface ArduinoEthernetpublic int getPort()
getPort in interface ArduinoEthernetpublic ConnectionState getCurrentState()
getCurrentState in interface Arduinopublic ConnectionState getTargetState()
getTargetState in interface Arduinopublic void setTargetState(ConnectionState state)
setTargetState in interface Arduinopublic void connect()
public void disconnect()
public Socket getSocket()
public void setCache(KeyValueCache cache)
public KeyValueCache getCache()
Copyright © 2014. All Rights Reserved.