Update README.md

Add explanation to README about setting the "fazecast.jSerialComm.appid" property in order to eliminate problems related to using the lib from multiple apps.
This commit is contained in:
yigitpirildak 2021-06-19 02:37:12 +03:00 committed by GitHub
parent 55ede252d6
commit c1d49d8513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ _A platform-independent serial port access library for Java._
For usage examples, please refer to the [Usage wiki](https://github.com/Fazecast/jSerialComm/wiki/Usage-Examples). For usage examples, please refer to the [Usage wiki](https://github.com/Fazecast/jSerialComm/wiki/Usage-Examples).
If you intend to use the library in multiple applications simultaneously, please make sure
to set ```fazecast.jSerialComm.appid``` property before accessing the SerialPort class so that
applications don't accidentally delete each others temporary files during boot-up:
```
System.setProperty("fazecast.jSerialComm.appid", "YOUR_APPLICATION_IDENTIFIER")
```
In order to use the ```jSerialComm``` library in your own project, you must simply In order to use the ```jSerialComm``` library in your own project, you must simply
include the JAR file in your build path and import it like any other include the JAR file in your build path and import it like any other
Java package using ```import com.fazecast.jSerialComm.*;```. Java package using ```import com.fazecast.jSerialComm.*;```.