/USB-Device-Detection

Basic server for displaying the available connected usb devices using protobuf as serializer

Primary LanguageGoMIT LicenseMIT

USB-Device-Detection

Basic server for displaying the available connected usb devices using protobuf as serializer.

Usage

  1. Install sudo apt install libusb-1.0-0-dev for gousb library as it will not work without it
  2. make build_server
  3. 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.