I noticed that i get from time to time the following error in the console on the EspruinoWifi:
"New interpreter error: FIFO_FULL"
It happens, when i send socket data (small junk of JSON data) after a setWatch of a button is triggered.
It is very difficult to reproduce.
I use the following pins with setWatch:
A1, A5, A6, A7, B9, B8, B4
I think it's not dedicated to a special pin i used.
FIFO_FULL means that the input buffer (the one that receives data from WiFi) got so full it couldn't handle any more data and ended up losing some bytes. It almost certainly happened before, but it wasn't reported - 1v94 turned it on because it's something that'll almost certainly cause instability or broken data.
Do you have some functions that could take a long time to execute? That's usually the problem.
However, the input FIFO is shared with watch events, so I guess if you're:
... then you could potentially have some problems.
So it might be you can fix it just by trying to find some functions that take a long time to execute and splitting them up.
Otherwise it is possible to turn on hardware flow control for the ESP8266. It's something I haven't enabled by default yet, but we could try that?
Thanks Gorden for the answer.
It could be a button with bounces.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem