-->
Page 1 of 1

nterrupt GET esp8266

PostPosted: Mon Jul 20, 2015 9:03 am
by entozoon
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.

Re: nterrupt GET esp8266

PostPosted: Mon Jul 20, 2015 9:59 am
by TerryE
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. :)