HTTP POST AT command

Hello,

I'm working on the nrf9160 devkit. I'm working only on AT command and I don't understand why I have to send +++ after each message I send :

> AT#XHTTPCREQ="POST","/todos","User-Agent: slm\r\naccept: */*\r\n","text",5

OK

#XHTTPCREQ: 1
>tests+++

#XDATAMODE: 0

#XHTTPCREQ: 0
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Thu, 04 Jan 2024 15:51:47 GMT
Vary: Accept-Encoding
X-Beeceptor-Rule-Id: defaultpst
Transfer-Encoding: chunked

4

#XHTTPCRSP:207,1
test
0


#XHTTPCRSP:11,1

If I don't put the +++ after tests the chip send the http request but don't print the response of the server and keep stuck waiting for the +++

Parents
  • Hello, 

    Could you please elaborate more on what you are trying to achieve? Are you trying to use the Serial LTE Modem in data mode? From the documentation:

    When running in data mode, the application does the following:

    • It considers all the data received from the MCU over the UART bus as arbitrary data to be streamed through the LTE network by various service modules.

    • It considers all the data streamed from a remote service as arbitrary data to be sent to the MCU over the UART bus.

     SLM data mode is applied automatically while using HTTP request. Please see the documentation for more info. 

    Kind regards,
    Øyvind

Reply
  • Hello, 

    Could you please elaborate more on what you are trying to achieve? Are you trying to use the Serial LTE Modem in data mode? From the documentation:

    When running in data mode, the application does the following:

    • It considers all the data received from the MCU over the UART bus as arbitrary data to be streamed through the LTE network by various service modules.

    • It considers all the data streamed from a remote service as arbitrary data to be sent to the MCU over the UART bus.

     SLM data mode is applied automatically while using HTTP request. Please see the documentation for more info. 

    Kind regards,
    Øyvind

Children
Related