Hi @Gordon
I've figured out what the data in the arrays are.
new Uint8Array([162, 4, 3, 10, 209, 1]).buffer
162: NFC command for "write"
4: Index for where to put data within tag array
3: Type length
10: Record length
209: NDEF record header
1: Type Name Field
new Uint8Array([162, 5, 6, 84, 2, 101]).buffer
6: Payload Length
84: Well known record
2: Well known record type (in this case - the encoding for this text (UTF))
101: e
new Uint8Array([162, 6, 110, 112, 111, 111]).buffer
110: n - ("en" is locale)
112: p
111: o
111: o
new Uint8Array([162, 7, 254, 0, 0, 48]).buffer
254: Marks the end of the payload
Further information on this can be found here.
I am now able to send custom commands/string through NFC to Puck.js.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi @Gordon
I've figured out what the data in the arrays are.
Further information on this can be found here.
I am now able to send custom commands/string through NFC to Puck.js.