Response response = scc.sendRequest();
if (response.getStatus().equals(ResponseStatus.SUCCESS))
return response.getStatusNotice() + ", Server time: " + HelperDate.format(response.getDate(), "H:mm:ss yyyy-MM-dd") + ", Serial port: " + response.getValue("serialport") + ", Value: " + response.getValue("value") + ", Is Stable: " + response.getValue("isstable");
else
throw new AdempiereUserError(response.getStatusNotice() + ", Server time: " + HelperDate.format(response.getDate(), "H:mm:ss yyyy-MM-dd"));
}