Re: [web-nfc] Read record from RFID card string UUID via nfc scan reader (#653)

When i write data to card the i getting message "Argh! Network Error :
Failed to write due to an IO error : null"

Thanks,
Ankit.

On Mon, Feb 20, 2023 at 4:15 PM François Beaufort ***@***.***>
wrote:

> Thank you! Now, where's the value you're trying to read? It looks like you
> only have one NDED record for now.
> If you wanted to write an hexadecimal value for instance, you could do
> something like below:
>
> const ndef = new NDEFReader();await ndef.write(0x1234);
>
> And for reading it, you could do:
>
> const textDecoder = new TextDecoder(record.encoding);const text = textDecoder.decode(record.data);console.log(text.toString(16));  // 1234}
>
> FYI
> https://developer.chrome.com/articles/nfc/#read-and-write-a-text-record
> contains plenty of code examples.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/web-nfc/issues/653#issuecomment-1436730938>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A57W2VIWFBUDKTJP6DB5P7LWYNDLNANCNFSM6AAAAAAVA2OIHQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>


-- 
*Thanks & Regards,*

*Ankit N. Raut.*
*Contact : +91-9764210234*


-- 
GitHub Notification of comment by ankitraut05
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/653#issuecomment-1436778913 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 20 February 2023 11:18:45 UTC