Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $
- G
- P
- G
- G
- A
- ,
- .
- .
- .
- (Carriage return)
- (New Line)
- $
- G
- P
- G
- S
- A
- static class SerialPortReader implements SerialPortEventListener {
- public void serialEvent(SerialPortEvent event) {
- try {
- byte[] tester = serialPort.readBytes(1);
- //System.out.print(getdata);
- InputStream gpsStream = new ByteArrayInputStream(tester);
- BufferedReader in = new BufferedReader(new InputStreamReader(gpsStream, StandardCharsets.UTF_8));
- String output = in.readLine();
- }
- catch (SerialPortException | IOException ex) {
- }
- }
Add Comment
Please, Sign In to add comment