QR code communication.
Back then when I was in my early teens, I fantasize about communication methods. Cameras and Screens was one of them. From a decade this was in my bucket list! It uses QR code to do so, which is awfully inefficient, but it works. In theory, it can be used to send file between two device using screen and camera, though I haven't been able to test it with cameras. Proud to say the code quality is inferior than LLMs :)
Compile flags to test locally:
cargo build --config 'build.rustflags=["--cfg", "file_mode"]'
execution command: (A instance) sends text file located at "A/s", creates QR codes at "ao.jpg", reads Qr code from "bo.jpg", and write incoming data at "A/r"
./bawc -f A/s -i bo.jpg -o ao.jpg -r A/r
and (B instance):
./bawc -f B/s -i ao.jpg -o bo.jpg -r B/r