With complex procedures to call on Puck I find wrapping them as functions and saving them on puck first, is best. Then you call the function from inside puck.write(). You will probably need to call load() to get them from flash first.
Also check out Bluetooth.println(). I seem to think that is a better function for sending your return data over BLE UART.
Edited: Bluetooth.write() to correct Bluetooth.println()
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.
With complex procedures to call on Puck I find wrapping them as functions and saving them on puck first, is best. Then you call the function from inside
puck.write()
. You will probably need to callload()
to get them from flash first.Also check out
Bluetooth.println()
. I seem to think that is a better function for sending your return data over BLE UART.Edited:
Bluetooth.write()
to correctBluetooth.println()