Commit bb18acb6 authored by Michael Schloh von Bennewitz's avatar Michael Schloh von Bennewitz
Browse files

Implement a draft version of 'Parsing of unique identifiers' issue #10.

parent 3ba65460
......@@ -33,8 +33,10 @@ async function writeTag() {
const writer = new NDEFWriter();
// try to write a message
try {
// NFC API tries to write to NFC tag the message "What Web Can Do Today" and it waits an answer
await writer.write("What Web Can Do Today");
// NFC API tries to write to NFC tag the HTTP URI for a EUID and waits
// TODO: Randomise after 'sid=' according to EUI-48 [0-9A-F]{8} spec
// TODO: Use well known NDEF MIME types for data (Issue #10 use MIME)
await writer.write("");
// yay!
consoleLog("NDEF message written!");
} catch(error) {
......@@ -50,4 +52,4 @@ function consoleLog(data) {
// this function was written to simplify the writing "logs" into a HTML element. :)
var logElement = document.getElementById('log');
logElement.innerHTML += data + '\n';
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment