Confirmed users
153
edits
Line 95: | Line 95: | ||
To establish an NFC application session, all operations require an initial connect. It also selects the technology to use for subsequent operations until disconnect. | To establish an NFC application session, all operations require an initial connect. It also selects the technology to use for subsequent operations until disconnect. | ||
var connectreq = navigator.mozNfc.connect( | var connectreq = navigator.mozNfc.connect(nfc_techtypes.NDEF); | ||
connectreq.onsuccess = function() { | connectreq.onsuccess = function() { | ||
console.log('Connect success!'); | console.log('Connect success!'); |