-
-
@jumjum implemented this, the number of jsvars is determined at startup by looking at the available heap.
-
-
-
-
-
What do you want to update with ota? A. the firware the espruino version, or b. the currenly running software? If it's b, then this is something you can do with what is already available. You could read a new programme update from a hosted page and save to the flashfs file system. You could then bootstrap this in to be the active code - save to eepprom, and reboot.
-
-
-
-
Yes. We updated to the latest esp-idf v3.1 and it seems to use more memory. We've not been able to establish what is taking up more space - I suspect buffers used for wifi and ble. @JumJum
-
-
-
-
The default espruino build for this model only has 1 spi defined:
https://github.com/espruino/Espruino/blob/master/boards/MDBT42Q.py#L60
Support could be added for SP2 and SP3 in hardware.
https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L1072-L1123
Pins are checked to see if they can be used:
https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L1164-L1169 -
-
-
-
I've manager to reproduce one of these issues using a current build on linux.
vue native sockets in chrome browser -> Backend Espruino WS server.
If protocol is specified, then all is well:
const ws = new WebSocket('ws://192.168.1.203:8000', 'protocolOne');
However, if this is defaulted, ws.js on the espruino sends as a header:
Sec-WebSocket-Protocol: undefined
this test seems to be failing:
https://github.com/espruino/EspruinoDocs/blob/master/modules/ws.js#L196-L197if (this.protocol) socketHeader.push("Sec-WebSocket-Protocol: "+this.protocol);
in the constructor we have:
https://github.com/espruino/EspruinoDocs/blob/master/modules/ws.js#L76-L86
this.protocol = options.protocol;
So it seems this is setting
this.protocol=undefined
.What is the cleanest way to fix?
if ( typeof(this.protocol) != 'undefined' )
-
-
-
If you are on 64 bit Windows the best bet is to install WSL. Windows subsystem for Linux. It's in the Windows shop app.
This gives you an Ubuntu shell window without needing to install Linux in a virtual machine.
Once you are in the shell - do the
apt-get
to install the build tools as per the Linux instructions. Then you can just amake
and build the Linux version of espruino, which you can then run with./esprunio --telnet
In your ide, you can then connect to
localhost:2323
to connect to this install running in Linux on top of Windows.