Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By hughanderson
#22578 Thanks WiFifofum,
Thats a pretty interesting link. I will try it out.
Actually - for the application that needs memory, I will be using WiFi. I just used an example without to demonstrate the effect.
I have various projects underway, but the one with that requires memory is this: I am receiving a video stream at 115200bps, and I need to buffer about 50K of it. I have tried buffering the stream, and writing out via WiFi as I go, but I tend to lose parts of the image - the hardware serial buffer fills to 255 bytes, and I drop bytes. It seems that the call "client.write" can take longer than about 26mS, and when that happens, my code does not get back to read the serial port, and characters get lost.
I have attempted to use a Ticker, but it did not seem to help (I wondered if perhaps large parts of the WiFi software (for write) are uninterruptible. In any case I have not yet found a reliable way to buffer the stream. Close, but no cigar yet :)

Cheers Hugh