Skip to content

compatibility issue with TinyGSM #31

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

Open
mcr-ksh opened this issue Jul 17, 2017 · 2 comments
Open

compatibility issue with TinyGSM #31

mcr-ksh opened this issue Jul 17, 2017 · 2 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@mcr-ksh
Copy link

mcr-ksh commented Jul 17, 2017

When using TinyGSM, the request is seen on the server side but the client side will receive a timeout when using httpclient->responseStatusCode().

After a lot of debugging I found that the issue might be due to the way the library slowly transmits the request:

CONNECT OK

OK
AT+CIPSEND=1,4

>POST
OK
AT+CIPSEND=1,1

> 
OK
AT+CIPSEND=1,7

>/test/
OK
AT+CIPSEND=1,9

> HTTP/1.1
OK
AT+CIPSEND=1,2

>

OK
AT+CIPSEND=1,10

>Connection
OK
AT+CIPSEND=1,2

>: 
OK
AT+CIPSEND=1,5

>close
OK
AT+CIPSEND=1,2

>

OK
AT+CIPSEND=1,4

>Host
OK
AT+CIPSEND=1,2

>: 
OK
AT+CIPSEND=1,20

Finally the timeout is occurring when calling httpclient->endRequest() does not seem to send "\r\n\r\n".

If I add:

httpclient->write((const byte*)"\r\n", 2);

the server reply is received.

@shanedoolane
Copy link

@mcr-ksh did you ever find a fix for this?

@mcr-ksh
Copy link
Author

mcr-ksh commented Jan 8, 2024

cant remember. it's been too long. afaik the code that I provided before did send an additional termination request:
httpclient->write((const byte*)"\r\n", 2);

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants