Skip to content
/ comm Public

Library to exchange (RS232, TCP, HTTP, ...) LIS data (ASTM, XML, CVS, ...).

License

Notifications You must be signed in to change notification settings

giosil/comm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comm

Library to exchange (RS232, TCP, HTTP, ...) LIS data (ASTM, XML, CVS, ...).

Example

IMessage msg = MessageFactory.getMessage("ASTM");
msg.addRecord(IRecord.Type.HEADER,      new String[]{"NG_LIS", "Host", "P", "1"});
msg.addRecord(IRecord.Type.QUERY,       new String[]{"ALL", null, null, null, "ALL", null, null, "R"});
msg.addRecord(IRecord.Type.TERMINATION, null);

IDriver driver = null;
try {
  driver = DriverFactory.getDriver("rs232", "COM5");
  
  IMessage res = driver.sendMessage(msg);
  
  System.out.println(res);
}
catch(Exception ex) {
  ex.printStackTrace();
}
finally {
  if(driver != null) driver.destroy();
}

Build

  • git clone https://github.com/giosil/comm.git
  • mvn clean install

Contributors

About

Library to exchange (RS232, TCP, HTTP, ...) LIS data (ASTM, XML, CVS, ...).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages