Most recent activity
-
- 15 comments
- 5,789 views
-
-
Figured out the bug -- or maybe it's as planned and I just missed that part in the docs, but the issue happens when you are disconnected from the web ide. Here are my steps to reproduce:
- Upload code above to puck via Web IDE
- Try NFC (it should work)
- Click the top left button in the Web IDE, disconnecting the puck
- Try NFC (it should not work)
- Reconnect to the Web IDE
- Try NFC (it should now work again)
Not sure if this is intended or what, but seems odd to me.
- Upload code above to puck via Web IDE
-
I have two pucks so I can confirm on a second one when I get home. I've tried on both an Android 6P and an LG g4 and both have the same behavior.
I'll start running some tests right now to see if I can figure out when exactly the NFC starts giving out. I'll also check my second puck when I get home.
-
Basically a combination of the two, I use the following code:
var isLightOn = false; NRF.nfcURL("https://www.google.com"); NRF.on('NFCon', function() { LED1.write(true);}); NRF.on('NFCoff', function() { LED1.write(false);}); setWatch(function() { isLightOn = !isLightOn; LED2.write(isLightOn); }, BTN, { repeat:true, edge:"rising", debounce:50 });
And when I first hard reset the device it works on my Nexus 6P. If I wait, say, 15 minutes and try again, it no longer works (although the button press does.)
-
I just received my pucks yesterday (love the build quality and feel btw,) and am having some problems with the NFC. Here are my current running details;
{ "VERSION": "1v90", "BUILD_DATE": "Dec 16 2016", "BUILD_TIME": "14:49:15", "GIT_COMMIT": "5135ed57fe5f3a23e335896be41f283878087d15", "BOARD": "PUCKJS", "CHIP": "NRF52832", "CHIP_FAMILY": "NRF52", "FLASH": 524288, "RAM": 65536, "CONSOLE": "Bluetooth" }
It's looking like NFC works directly after a hard reset (i.e. taking the battery out, holding down the button, reinserting the battery and holding for 3 seconds.) After a few minutes, however, it stops working. Even resetting/reuploading the code via the IDE does not work.
Any ideas?
Circling back around on this, after playing with the pucks a few more days it seems like all the problems are resolved. I have no idea what was going on, but I'll update if I figure it out. Thanks for the help guys!