Two methods are available: display() and displayLater(). The DisplayMessage interface defines available display services for log messages. So, we will be able to display any problem to the user: it's always important to let the user know what's happening! The related UI part will be another list view, right below the list view displaying received frames. But before implementing this function, that's good to add the capability to display log messages. Then, this list must be displayed to the user, so that he can select the serial port he wants. The first function to implement is one that returns a list of available serial ports. RXTX API documentation is in /usr/share/doc/librxtx-java/api while Java Communication API is here.
0 Comments
Leave a Reply. |