Skip to content

compatibility issue with TinyGSM #31

@mcr-ksh

Description

@mcr-ksh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy