Closed Bug 1015127 Opened 10 years ago Closed 6 years ago

[NFC] Emulator telnet CLI improvements

Categories

(Firefox OS Graveyard :: NFC, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kamituel, Unassigned)

References

Details

This bug will track ideas how to improve CLI or NFC emulator.
Idea #1: allow spaces in record definition.

This command works as expected:

> nfc snep put -1 -1 [208,1,VQ,AWdvb2dsZS5jb20,A]
> OK

But this one fails:

> nfc snep put -1 -1 [208, 1, VQ, BmthbWl0dWVsQGdtYWlsLmNvbQ,A]  
> KO: invalid value '' for token NDEF TNF, error 22(Invalid argument)
Depends on: 1016294, 1016326
Another idea would be to allow ommiting ID field without trailing comma, i.e.:

This works:

> nfc snep put -1 -1 [208,1,VQ,AWdvb2dsZS5jb20,]
> OK

But this breaks:

> nfc snep put -1 -1 [208,1,VQ,AWdvb2dsZS5jb20]
> OK

I think, due to JS analogy, it's intuitive to ommit the trailing comma.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.