Most recent activity
-
I mean "serialport" as in the npm module :) https://github.com/voodootikigod/node-serialport
I guess my real question was if https://www.npmjs.com/package/espruino would automatically find my espruino if I just plugged it in, or if I had to first figure out what port it was connected to (for example by scanning all ports with node-serialport, looking for something that looks like an espruino)
-
-
-
Ohh, too bad I didn't know about this earlier.
I ended up using the 'serialport' module directly instead...https://github.com/Tobbe/robotgame/blob/master/nodejs/app.js
-
-
-
Hi
When connected to my computer everything works fine. I see the green LED flash twice. But when connected to a USB power supply the ESP8266
connect
callback gets called with an error object, and the red LED is turned on. Any idea why?E.on('init', function() { SPI2.setup({baud: 3200000, mosi: B15}); Serial1.setup(115200, { rx: B7, tx : B6 }); var wifi = require("ESP8266WiFi_0v25").connect(Serial1, function(err) { if (err) { digitalWrite(LED1, 1); throw err; } setTimeout(function () { digitalWrite(LED2,0); setTimeout(function() { digitalWrite(LED2,1); }, 500); setTimeout(function() { digitalWrite(LED2,0); }, 1000); setTimeout(function() { digitalWrite(LED2,1); }, 1500); setTimeout(function() { digitalWrite(LED2,0); }, 2000); setTimeout(function() { wifiResetConnect(wifi); }, 4000); }, 1500); }); });
How do I debug this further?
In the script I posted above I just loop over the ports doing
Not very clever and I know for a fact that it doesn't work on my coworker's Ubuntu install (the same board reports manufacturer as "STMicroelectronics", i.e. without the dot at the end).
Could try some ducktyping after that I guess by sending some commands and see if the reply looks like it comes from an Espruino :)