public class TcpTransceiver extends Transceiver
Modifier and Type | Class and Description |
---|---|
class |
TcpTransceiver.TcpReceiveRn |
class |
TcpTransceiver.TCPSendRn |
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTION_TIMEOUT |
mOnConnectionUpdatedListener, mOnTransceivedListener
Constructor and Description |
---|
TcpTransceiver(TcpTransceiverInfo tcpTransceiverInfo) |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
destroy() |
void |
disconnect() |
boolean |
equals(java.lang.Object obj) |
CommunicationType |
getCommunicationType() |
ConnectionState |
getConnectionState() |
java.lang.String |
getDefaultChannelId() |
java.lang.String |
getDeviceId() |
java.lang.String |
getDeviceIp() |
java.lang.String |
getDeviceName() |
void |
send(byte[] data) |
void |
send(byte[] data,
java.lang.String channelId) |
setOnConnectionUpdatedListener, setOnTransceivedListener
public static final int CONNECTION_TIMEOUT
public TcpTransceiver(TcpTransceiverInfo tcpTransceiverInfo)
public java.lang.String getDeviceIp()
public java.lang.String getDefaultChannelId()
getDefaultChannelId
in class Transceiver
public java.lang.String getDeviceName()
getDeviceName
in class Transceiver
public void connect()
connect
in class Transceiver
public void send(byte[] data)
send
in class Transceiver
public void send(byte[] data, java.lang.String channelId)
send
in class Transceiver
public void disconnect()
disconnect
in class Transceiver
public void destroy()
destroy
in class Transceiver
public ConnectionState getConnectionState()
getConnectionState
in class Transceiver
public java.lang.String getDeviceId()
getDeviceId
in class Transceiver
public boolean equals(java.lang.Object obj)
equals
in class Transceiver
public CommunicationType getCommunicationType()
getCommunicationType
in class Transceiver