You want to send code to run on one Puck when a button on a second Puck is pressed?
What you're doing looks fine, but maybe you could paste up the contents of the senderase function - it may be you're just not sending a newline character after the command
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm not sure I understand the question...
You want to send code to run on one Puck when a button on a second Puck is pressed?
What you're doing looks fine, but maybe you could paste up the contents of the
senderase
function - it may be you're just not sending a newline character after the command