Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving big buffer data with gsm_gprs_httpRead #40

Open
RoyaGhaennezhad opened this issue Dec 11, 2021 · 0 comments
Open

Receiving big buffer data with gsm_gprs_httpRead #40

RoyaGhaennezhad opened this issue Dec 11, 2021 · 0 comments

Comments

@RoyaGhaennezhad
Copy link

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; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant