Basic server for displaying the available connected usb devices using protobuf as serializer.
- Install sudo apt install libusb-1.0-0-dev for gousb library as it will not work without it
- make build_server
- make server_run
Server will run on localhost:8080. It has two endpoints:
3.1 "/devices" will download a .bin file using protobuf with available USB devices. To verify, run protoc --decode_raw < /filename.bin/
3.2 "/jsondevices" will display a json list of available devices in browser
There is another way to test it by using the client.go file
4. make client_run. Will display on client's console received protobuf data in human readable format.