It might be best to ask on the DroidScript forum - or actually look in the DroidScript app for the Puck.js plugin docs. It's a bit odd but I believe the documentation isn't available online, it's just part of the app.
I did find this on their forum though:
You should also be able do basic serial comms with the puck by using the puck.Send( msg ) function and receiving data by setting a callback using the puck.SetOnReceive( callback ) to receive console.log messages coming back from the puck.
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.
It might be best to ask on the DroidScript forum - or actually look in the DroidScript app for the Puck.js plugin docs. It's a bit odd but I believe the documentation isn't available online, it's just part of the app.
I did find this on their forum though:
So that could be an option