I have reported it here https://github.com/espruino/Espruino/issues/2406
Looks like bug as all the allocations and adding termination part uses full length.
Until that is fixed you could also use the code above in post #1 which emulates whole NFC tag including everything.
@fanoush started
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.
I have reported it here https://github.com/espruino/Espruino/issues/2406
Looks like bug as all the allocations and adding termination part uses full length.
Until that is fixed you could also use the code above in post #1 which emulates whole NFC tag including everything.