I've been using building an android app to communicate with my puck over UART and that has been going quite well.
However, it is too slow and unreliable for sending large scripts.
Due to the limitations of writing to Bluetooth characteristics, I have to write them in this way (excuse the pseudo-code):
The problems with this are:
- It often takes longer to send (especially compared to the Espruino WebIDE).
- If the puck is in the middle of outputting something, the channel gets very confused.
Is there a way to write these longer scripts without using the UART?