My chip resets if it receives more data and if it didn't exit the espconn_regist_recvcb callback function just yet.
For example:
Code: Select all
// somewhere I declare callback for receiving TCP data...
espconn_regist_recvcb(pespconn, ctrl_platform_recv_cb);
Code: Select all
// this is the function that uses received data
static void ICACHE_FLASH_ATTR ctrl_platform_recv_cb(void *arg, char *pdata, unsigned short len)
{
struct espconn *pespconn = arg;
// Here I do stuff with data I received...
// The WDT RESET happens when chip receives more data before exiting this function :(
}
Is that normal? If not, how can I fix it?
If that is normal, how can I do some long-lasting work with the chip (such as forwarding data to GSM modem and waiting for a GSM modem reply) while ESP is receiving next data? Perhaps you have an example for me

Thanks!