nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

Receiving big buffer data with gsm_gprs_httpRead #40

Open RoyaGhaennezhad opened 2 years ago

RoyaGhaennezhad commented 2 years ago

I had issue for receiving 1kB data from http read request. we need to increase timeout for send at command for receive big buffer

sprintf(buf, "AT+HTTPREAD=%u,%d\r\n", gsm.gprs.dataCurrent, len); gsm.atc.http_read_start=1; if (gsm_command(buf, 3000 , (char*)gsm.buffer, sizeof(gsm.buffer), 2, "\r\n+HTTPREAD: ", "\r\nERROR\r\n") != 1) { gsm_printf("[GSM] gprs_httpRead() failed!\r\n"); gsm_unlock(); return 0; }