Open RoyaGhaennezhad opened 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; }
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; }