Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By entozoon
#23709 Is it possible to interrupt a get? For example if it is currently receiving lot of data, is it possible to run
node.restart() or wifi.sta.disconnect() so as to free it up?

Currently my ESP8266 just hangs until the data is finished being received. I'd rather not have to reset the chip and have it reconnect to wifi all over again.
User avatar
By TerryE
#23727 I think that this is a Lua Q so should be in the Lua forum, however the ESP8266 TCP stack doesn't do marshalling across IP packets and so the longest TCP receive that you get will be 1400 odd bytes at say 56Mbaud will be ~0.2 mSec.

The reason that your ESP8266 hangs is that you have structured your application incorrectly. The issue is nothing to do with anything hanging other than your own code.

Read my FAQ where I explain all this. See my link below. :)