https://github.com/barismeral/java-serial-port
Custom basic Serial Port Communication for Java
https://github.com/barismeral/java-serial-port
c c-plus-plus communication java java-8 java-library library serial-communication serial-port serialport simple windows
Last synced: 4 months ago
JSON representation
Custom basic Serial Port Communication for Java
- Host: GitHub
- URL: https://github.com/barismeral/java-serial-port
- Owner: barismeral
- License: gpl-3.0
- Created: 2018-12-28T10:52:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-31T10:50:46.000Z (over 7 years ago)
- Last Synced: 2025-04-06T10:41:53.835Z (about 1 year ago)
- Topics: c, c-plus-plus, communication, java, java-8, java-library, library, serial-communication, serial-port, serialport, simple, windows
- Language: Java
- Size: 397 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Custom basic Serial Port Communication for Java
# Usage
// create port
SerialPort port = new SerialPort();
// port settings
port.setBaudRate(9600);
port.setDataBits(8);
port.setParity(Parity.NONE);
port.setStopBits(StopBits.ONE);
port.setPortName("COM20");
//writing & reading
port.write("Hello, World");
String str = port.read();
// port open or close
port.open();
port.close();
# Please Fork