Snippets of the day – Tuesday, December 31, 2013

Posted on Posted in Snippets

snippets-bricks

Here are some of the most recently published snippets!

Hello World

First program in java

Open the snippet

Author:    jimmy_087

Java: read from USB using RXTX library

This is a well-tested class to read from USB device using RXTX library.
First of all place rxtxSerial.so (or rxtxSerial.dll) in the classpath.
The received bytes are stored in a queue called “receivedBytes”. This queue is filled by the serialEvent() callback called by RXTX framework. Users of this class should retrieve the ready data from “receivedBytes” queue.

Open the snippet

Author:    cghersi

Leave a Reply

Your email address will not be published. Required fields are marked *