AT response (+IPD) adding linebreaks?

aferran
Posts: 3
Joined: Fri Dec 22, 2017 9:36 am

AT response (+IPD) adding linebreaks?

Postby aferran » Fri Dec 22, 2017 9:41 am

Hello,

I'm using an esp32 on custom board based on a TI am335x uC, and I'm using AT commands to control it.

Everything seems to work fine, but when I'm sending a http request using AT+CIPSEND, and read the response after +IPD, it seems that there is an extra line break after each lines, which prevent curl to parse the answer properly (see example below.). Is there a way to prevent that?
I'm using:

AT version:1.0.0.0(870285c - Nov 14 2017 07:26:38)
SDK version:v2.1-65-g8bca703
compile time:Nov 17 2017 07:53:25
Bin version(Wroom32):1.0.0

Thanks,

Antoine

HTTP response example:

Code: Select all

HTTP/1.1 200 OK

X-Powered-By: Express

Access-Control-Allow-Origin: *

Content-Type: application/json; charset=utf-8

Content-Length: 16

ETag: W/"10-c2PoX+nt7m8FOksxlYjAhg"

X-Response-Time: 0.544ms

Vary: Accept-Encoding

Date: Thu, 21 Dec 2017 17:15:24 GMT

Connection: keep-alive



{"success":true}
What I'm expecting:

Code: Select all

HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Content-Length: 16
ETag: W/"10-c2PoX+nt7m8FOksxlYjAhg"
X-Response-Time: 0.544ms
Vary: Accept-Encoding
Date: Thu, 21 Dec 2017 17:15:24 GMT
Connection: keep-alive

{"success":true}

Who is online

Users browsing this forum: No registered users and 63 guests