Each of your pixels is represented as 15 characters. You could make this shorter by:
a. Removing spaces
b. Converting to hex - e.g send FFEEDD, And send without a delimiter. You can send 40 or so of these in your 260 char packet.
c. Send as binary - perhaps use the Dataview classes
The problem wasn't the data being sent, the problem was WebSockets being slow as hell. I can do this probably faster than 20ms now using raw TCP socket.
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.
Each of your pixels is represented as 15 characters. You could make this shorter by:
a. Removing spaces
b. Converting to hex - e.g send FFEEDD, And send without a delimiter. You can send 40 or so of these in your 260 char packet.
c. Send as binary - perhaps use the Dataview classes