mvn install:install-file -Dfile=libs/visca.jar -DgroupId=pl.edu.agh.kis.visca -DartifactId=visca -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=libs/jssc.jar -DgroupId=jssc -DartifactId=jssc -Dversion=1.0 -Dpackaging=jar
java -jar <path_to_jar> <port_name>
Example:
java -jar ./target/visca.jar COM1
If <port_name> is not given then program launches with stub connection.
$ move-up
$ zoom-tele dest=all
$ sleep time=2
# ...and many more
$ seq name=foobar
foobar$ move-home
foobar$ move-right dest=2
foobar$ sleep time=2
foobar$ zoom-wide
foobar$ clear-all
foobar$ end-seq
$ execute-seq name-foobar
Starting server:
$ start-http port=8000
Executing commands:
POST localhost:8000/command?cmd=move-up
POST localhost:8000/command?cmd=zoom-tele&dest=3
POST localhost:8000/command?cmd=sleep&time=3
...and many more
Stopping server:
$ stop-http
Start server (on port 8000 by default) and type http://localhost:8000
in your browser.