public interface DebugInterface
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the port.
|
DebugMessageProcessor |
getMessageReceiver() |
List<String> |
getPortIdentifiers() |
void |
initialize()
Perform initialization task.
|
boolean |
isOpened() |
void |
open(String portName,
int baudRate,
ConnectionListener connectionListener,
Context context)
Open connection to the specified port.
|
void |
send(byte[] content) |
void |
send(String message,
LineEndingEnum lineEnding) |
void initialize()
List<String> getPortIdentifiers()
DebugMessageProcessor getMessageReceiver()
void close()
boolean isOpened()
void open(String portName, int baudRate, ConnectionListener connectionListener, Context context) throws PortNotFoundException, PortNotOpenedException
portName - the port identifierbaudRate - the baud rate to useconnectionListener - the connection listenercontext - the contextPortNotFoundExceptionPortNotOpenedExceptionvoid send(String message, LineEndingEnum lineEnding)
message - the message to sendvoid send(byte[] content)
content - the content to sendCopyright © 2022. All rights reserved.