You are reading a single comment by @CriscoCrusader and its replies.
Click here to read the full conversation.
-
@CriscoCrusader Ah, sorry! I only looked for
require('espruino')
at the top of the code, and thought you usedserialport
directly. Never mind me then :)
This is tough, and frustrating. I can see that
connection
is defined after callingEspruino.Core.Serial.open()
, but it seems thateval()
is runningwriteSerial()
in a scope whereconnection
is undefined. And this is being triggered by thequeryBoardProcess
which was added as a processor function for the'connected'
event.Why does this project need to use eval?
@Joakim, I am using the
espruino
npm module directly to send my code. That's what this does: https://github.com/stokebrain/morra-espruino1/blob/master/build.jsI want to enter the terminal after the code is loaded so I can receive the log output from the device as it's running.