Thank you to @carlrowan for help on an earlier problem:
However, I am now encountering an error with AWS. I am able to connect and send a POST, but in return I receive a 400. The AWS API Gateway should just send back “Hello from Lambda!” I am afraid I have configured my request incorrectly and am not sure what to change about it. Please advise on what changes I should make. Currently the endpoint expects no parameters, but I cant get a post or get to work
Here are my commands:
at+version
2022/03/18 15:23:16: at+version
Firmware Version: RUI v3.0.0.15
OK
2022/03/18 15:24:25: at+set_config=cellular:(AT+CFUN?)
+QHTTPREAD: 0
+CFUN: 1
OK
at+set_config=cellular:(AT+QRFTESTMODE=0)
2022/03/18 15:24:35:
OK
at+set_config=cellular:(AT+CFUN=1)
2022/03/18 15:24:51:
OK
at+set_config=cellular:(AT+QSIMDET=1,1)
2022/03/18 15:25:02:
OK
at+set_config=cellular:(AT+CPIN?)
2022/03/18 15:25:11:
+CPIN: READY
OK
set at+set_config=cellular:(AT+COPS=?)
2022/03/18 15:25:57:
+COPS: (1,"T-Mobile","T-Mobile","310260",0),(2,"T-Mobile","T-Mobile","310260",8),(1,"313 100","313 100","313100",8),(3,"Verizon","Verizon","311480",8),(1,"AT&T","AT&T","310410",8),(3,"311 490","311 490","311490",8),,(0,1,2,3,4),(0,1,2)
OK
at+set_config=cellular:(AT+COPS=0)
2022/03/18 15:26:20:
OK
at+set_config=cellular:(AT+QHTTPCF=?)
2022/03/18 15:26:33:
OK
at+set_config=cellular:(AT+QHTTPCFG="contextid",1)
2022/03/18 15:26:49:
OK
at+set_config=cellular:(AT+QHTTPCFG="requestheader",1)
2022/03/18 15:26:56:
OK
at+set_config=cellular:(AT+QHTTPCFG="responseheader",1)
2022/03/18 15:27:05:
OK
at+set_config=cellular:(AT+QHTTPCFG="sslctxid",1)
2022/03/18 15:27:11:
OK
at+set_config=cellular:(AT+QHTTPCFG="contenttype",0)
2022/03/18 15:27:17:
OK
at+set_config=cellular:(AT+QICSGP=1,1,"TM","","",1)
2022/03/18 15:27:39:
+QIURC: "pdpdeact",1
OK
at+set_config=cellular:(AT+QICSGP=1,1,"TM","","",1)
2022/03/18 15:27:58:
OK
at+set_config=cellular:(AT+QIACT=1)
2022/03/18 15:28:02:
OK
at+set_config=cellular:(AT+QIACT?)
2022/03/18 15:28:13:
+QIACT: 1,1,1,"10.109.255.92"
OK
at+set_config=cellular:(AT+QHTTPURL=71,80)
2022/03/18 15:29:32:
CONNECT
2022/03/18 15:30:03: at+set_config=cellular:(https://uzboo8w0yk.execute-api.us-west-2.amazonaws.com/default/ChipEcho)
OK
at+set_config=cellular:(AT+QHTTPPOST=20,80,80)
2022/03/18 15:30:54:
CONNECT
2022/03/18 15:31:09: at+set_config=cellular:(Message=HelloQuectel)
OK
at+set_config=cellular:(AT+QHTTPREAD=80)
2022/03/18 15:31:22:
+QHTTPPOST: 0,400,122
CONNECT
HTTP/1.1 400 Bad Request
Server: awselb/2.0
Date: Fri, 18 Mar 2022 21:31:11 GMT
Content-Type: text/html
Content-Length: 122
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
</body>
</html>
OK
One other question: I eventually want to be able to pass multiple parameters to the endpoint through the body of the post. How would I pass multiple?