HelloScan Demo on ES400 issues

Hello,

I installed "Part1 - HelloScan" of Demo App: Conference Attendee Tracker on my ES400 device, when I press trigger, it called full screen camera, did not work for decode QR Code, but when I installed the Final Part of Demo App: Conference Attendee Tracker, it work correct, would anyone like to tell me what the difference between the two sample code?

Robert Galvin
Please redownload the . I had

Please redownload the . I had to change the demo so that the scanner was enabled on a button press instead of on page load. Apparently in the 1.0.0.10 build there is an issue on unlicensed devices only that are enabling the scanner on page load. The final index.html after scan should be:



<!DOCTYPE html>

<HTML>

<HEAD>

                    <TITLE> Event Attendee Tracker</TITLE>

</HEAD>

<BODY >

          <div id="header">Title and exit button goes here</div>

          <div id="selector">session selector goes here</div>

          <div id="sessionInfo">session detail to be displayed here</div>

          <div id="scanInfo">scanned in data goes here</div>

          <button onClick="enableScanner()">Enable Scanner</button>

</BODY>

<script>

function enableScanner()

{

          scanner.decodeEvent = 'doScan(%json)';  //setup event handler

          scanner.enable(); //enable the scanner - the first available scanner will be enabled

}

function doScan(scanData)

{

          document.getElementById("scanInfo").innerHTML = scanData.data; //show barcode data

}

</script>

</HTML>

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
Thank you.I had test updated

Thank you.

I had test updated demo, it worked well.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments