Node-Red to Espruino #688
Replies: 3 comments
-
Posted at 2015-02-02 by @gfwilliams It does look a lot like the It should be something like:
There could also be garbage in Espruino's input line when you connect, so you can try sending Ctrl-C (char code 0x03) before the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-02 by LawrenceG Thanks will try that, but sending crtl-c helps. I found node-red/node.js hates the espruino reset button being pressed takes 90% cpu & stays there! Have to ctrl-c node.js then press reset as ttyACM0 gets permission locked. That said NR & espruino work so well together! I wish I started down this route a year ago, even evil eval works a treat "eval("function foo() { console.log('foo'); }");foo();save()\n"; then call foo(). Am planing an industrial IO board for the PICO. Lawrence |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-02-03 by @gfwilliams Hi Lawrence, Glad it's working now! Because Espruino executes the code directly, 'eval' actually works particularly well :) I'd also added the ability to do an 'inline echo off'. If you send character code 16 on a blank line, and then your command, then you won't need to use An industrial IO board would be great! Hopefully I'll be releasing an Eagle CAD part outline for it in the next few weeks, which should help a lot! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-01-30 by LawrenceG
I'm starting to develop a Node-Red [NR] node for use with the Espruino
Even with echo(0); as the last command in my JS I'm getting some Echo back from the interpreter. I'm wondering what I might be doing wrong as this isn't the behavior of the IDE?
In attached image 1. I'm calling a Espruino function from NR be sending "getAna(0);\n" The interpreter echos the function name, followed by the JSON I want back plus return val and Cursor > 2. Espruino calls a function is every min which prints the JSON I want again followed by the Cursor >.
I still want \n back from the interpreter but not function name called or cursor symbol.
Lawrence
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions