StringProperty Not Holding Correct Data
Apr 19, 2015This first number of the output is meant to be a timestamp for the data (formatted to show only minutes). The second part of data, after the ':', is the data being read from the serialport. This number is not correct, and is changed within this bit of code. The data is read as "Solar: A.AA", where A.AA is a number read from a sensor. I am able to read the data fine right before this if statement, but after that the data output changes. StringProperty is not printing out the correct data:
Java Code:
serialPort.addEventListener(event -> {
if(event.isRXCHAR()) {
try {
sb = new StringBuilder();
sb.append(serialPort.readString(event.getEventValue()));
String str = sb.toString();
if(str.endsWith("
[code]....