Use an android device as a wireless barcode scanner.
-
Enable unknown sources in security settings.
-
Download and install BarcodeScanner.apk.
-
Start the client app.
/channel/<random-64-hex-character-token>/qr.png
is an image of a QR code
ending with #<random-64-hex-character-token>
.
The windows client generates a random token and keeps sending DELETE
requests to /channel/<token>/
(long polling). The response body
has one scanned code per line as unicode plain text.
It is also possible to GET
the last few codes from /channel/<token>/
.
The timeout is between 15 and 30 seconds.
The android app gets the channel token from the inital QR code. All
following scanned codes will be sent via PUT
to /channel/<token>/
.
HTTPS is recommended as there are no other security measures.
Report bugs to niklas (dot) fiekas (at) tu-clausthal (dot) de or fork me on GitHub. android-barcode-scanner is licensed under the GPL-3.