A client to register UAVs in the built-in demo UAV registry of the UAVreg-PKI-server.
Please make sure, that a go toolchain is present and your go working directory is set up properly.
Now go to $GOPATH/src/ and clone this repository:
git clone https://github.com/consider-it/UAVreg-registry-client.gitEnter the repositories directory and fetch the dependencies:
go getFinally you can either run without installing or install the application to your go binary directory:
## just compile and run
go run *.go <flags>
## install to $HOME/go/bin/ and run from there
go install
$HOME/go/bin/UAVreg-registry-client <flags>Don't forget to add the go binary path to your $PATH environment variable, if you like to execute the application like every other application.
This client applications uses the API of the built-in demo UAV registry provided by the UAVreg-PKI-server. So the server has to run when using this application.
Every UAV registration has a validity period and the UAV is identified by it's serial number (Drone ID). To simplify the interface, the validity period will always start now and a duration can be specified, which will be converted to an absolute timestamp automatically.
The available command line flags are (default value printed bold):
-dDrone ID as hex string, required-wValidity duration in weeks-uAPI URL:http://localhost:8080/registry