Java client for Swift Binary Protocol (SBP). Supports standard Java and Android.
- Generate message classes from the toplevel:
- $ make java
- Build Java library:
- $ cd java; gradle build
Find the JAR in java/build/libs/sbp.jar
- Build Javadoc documentation:
- $ cd java; gradle javadoc
Find compiled documentation in java/build/docs/javadoc
A simple example is provided to read from a serial port, log received messages to a JSON logfile, and write log messages and tracking state to stdout.
$ cd java/example $ javac -cp ../build/libs/sbp.jar:/path/to/jssc.jar:/path/to/json.jar SerialLink.java $ java -cp ../build/libs/sbp.jar:/path/to/jssc.jar:/path/to/json.jar SerialLink /dev/ttyUSB0
Copyright © 2015 Swift Navigation
Distributed under LGPLv3.0.