Skip to content

Latest commit

 

History

History
 
 

java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

SBP Bindings for Java

Java client for Swift Binary Protocol (SBP). Supports standard Java and Android.

Setup

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

Usage Examples

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

License

Copyright © 2015 Swift Navigation

Distributed under LGPLv3.0.