diff --git a/examples/qrexample.js b/examples/qrexample.js new file mode 100644 index 0000000..06b98c5 --- /dev/null +++ b/examples/qrexample.js @@ -0,0 +1,29 @@ +async function main(){ + + var Robobo = require('../robobo'); + + var robobo = new Robobo('192.168.0.45'); + + + await robobo.connect(); + robobo.whenANewQRCodeIsDetected(() => + { + qr = robobo.readQR() + console.log(qr); + + + } + + +); + + + +console.log('EOF'); + + +} +main() + + + \ No newline at end of file