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, powered by microcosm.
Report a problem