-
-
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):10: GetNextChunkToWrite(); SetTXCharacteristicToChunk(); WriteTXCharacteristic(); WaitForCharacteristicToBeWritten(); Goto 10;
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?
- It often takes longer to send (especially compared to the Espruino WebIDE).
-
-
Hello,
While trying to broadcast events between my pucks I have gotten into a strange situation where I can only see 1/3 devices.
I have flashed and reflashed all pucks to version 1.91 but while they all update successfully, only one of them broadcasts afterwards (Using its "Puck.js " format).
Even resets and hardresets (with the self-test) don't seem to fix this.Any ideas would be very helpful!
Thanks. -
In the documentation, it says:
digitalPulse is for SHORT pulses that need to be very accurate. If
you're doing anything over a few milliseconds, use setTimeout instead.How many milliseconds is too many milliseconds?
@Gordon Just coming back to say echo (0) and prepending char(16) has been VERY helpful!
Thanks again.