Sending an index.html file that contains a link to a stylesheet with pipe()without a chunk size, works fine. If the stylesheet is sent using pipe()with a chunk size, all ok.
However, if you send the index.html with a chunk size, the http request for the stylesheet never arrives at the Espruino even though the browser sends it. I think what is happening is that the connection is held open during the pipe, and when another request arrives, the ESP is too busy sending to deal with the arrival.
Also +Gordon, while you're looking, can you give me any more info on https://www.espruino.com/Reference#l_SPI_setup with regards to the "baud" rate? What is the unit there? I see a default of baud:integer=100000. Can you give some wild guesses what I can increase that to in order to speed up the SD card reads?
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.
Hmm, interesting.
Sending an index.html file that contains a link to a stylesheet with
pipe()
without a chunk size, works fine. If the stylesheet is sent usingpipe()
with a chunk size, all ok.However, if you send the index.html with a chunk size, the http request for the stylesheet never arrives at the Espruino even though the browser sends it. I think what is happening is that the connection is held open during the
pipe
, and when another request arrives, the ESP is too busy sending to deal with the arrival.Also +Gordon, while you're looking, can you give me any more info on https://www.espruino.com/Reference#l_SPI_setup with regards to the "baud" rate? What is the unit there? I see a default of
baud:integer=100000
. Can you give some wild guesses what I can increase that to in order to speed up the SD card reads?