Ok, all I can think is that maybe we're causing problems by changing the NFC URL while the NFC connection is active. Maybe try:
var nfcOn = false; NRF.on('NFCon', () => { nfcOn = true; }); NRF.on('NFCoff', () => { nfcOn = false; }); setInterval(() => { if (nfcOn) return; // don't change if NFC on var currentTime = new Date(); NRF.nfcURL('http://192.168.1.154/studentsystem/details.php?time=' + currentTime.toISOString().substr(0, 16)); }, 60000); // once a minute
@Gordon 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.
Ok, all I can think is that maybe we're causing problems by changing the NFC URL while the NFC connection is active. Maybe try: