-
-
-
Whenever I try and query the nfc object it just hangs.
I'm using Espruino Wifi and have my setup code like this:
I2C2.setup({scl:B10, sda:B3}); var nfc = require("PN532").connect(I2C2);
That doesn't make anything hang.
But if I then try this
console.log(nfc.getVersion());
It just hangs. Doesn't matter what method I call on the nfc class, it just hangs straight away.
I've tried i2c1 as well and I seem the same behaviour.
Any ideas?
-
Managed to get to the bottom of this.
If I plug the board into a USB power adapter (not a USB port on my Mac) it all boots up and works fine. If i try and power it up from a USB port on my mac it hangs when it gets to the http part. My guess is it's trying to communicate through the USB port. Maybe something to do with me sending console.log messages?
-
That should be boot up.
Loving my first adventures with the Espruinio Wifi.
However I'm having an issue getting the http module to work from flashed memory when not using the web ide.
When I send code across (using send and save) everything works fine — http module fetches data from the net just great, displaying data on an oled screen.
Then when I unplug the board and and plug it back in, powering the board, the start up sequence I've created all works, telling me on the old screen it's connected to wifi all fine, but when it then tries to access anything via the http module it just stalls. I've tried it with different urls and they all behave the same - work great via the web ide, but not on normal boot up.
Any ideas?
Redesigned the Plastic Player I made over a year ago to use the lovely Espruino. Opensource on Github.
http://brendandawes.com/projects/plasticplayer2/
Thanks.