Closed russellhoff closed 6 years ago
Example1: https://github.com/RishiGupta12/SerialPundit/tree/master/applications/byte-stream-binary-jar-integrate Example2: https://github.com/RishiGupta12/SerialPundit/blob/master/tests/test53-byteStream/src/test53/Test53.java Example3: https://github.com/RishiGupta12/SerialPundit/blob/master/tests/test54-closeport-Blockingread/src/test54/Test54.java
Expect some delay in my responses as I will be travelling to other country for vacations.
Thank you for your help @RishiGupta12, I hope those examples are enough.
I've taken a look at the examples, and SerialComInByteStream
is always used. What I need is to get a java.io.InputStream
. Is a simple cast enough (InputStream is = (InputStream) scm.getIOStreamInstance(SerialComManager.InputStream, handleGps, SMODE.NONBLOCKING);
)?
I'm about to make use of marine api.
To start off, an InputStream is needed, but I don't know whether the first line is correct or not:
If not, is there any other way?
Thanks!