Skip to content

Commit

Permalink
Adding qr example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiul93 committed Sep 12, 2018
1 parent b80aa15 commit 3167975
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/qrexample.js
Original file line number Diff line number Diff line change
@@ -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()



0 comments on commit 3167975

Please sign in to comment.