PN 1001933 rev 2
© NimbeLink Corp. 2022. All rights reserved.
26
5.3 HTTP GET Example
After properly initializing the modem in
, enter the commands below to
execute an HTTP GET request.
Note:
the text in red indicates CTRL key sequences, and are not to be typed into the
terminal verbatim. Instead, press these CTRL key sequences in the order listed. Bold
text indicates commands, as well as text that was pasted into the terminal.
AT+QSSLSEND=1
>
GET /things/AWS_TEST_THING/shadow HTTP/1.1
"CTRL+M, CTRL+J, CTRL+M, CTRL+J, CTRL-Z"
SEND OK
+QSSLURC: "recv",1
AT+QSSLRECV=1
+QSSLRECV: 572
HTTP/1.1 200 OK
content-type: application/json
content-length: 383
date: Tue, 24 Jul 2018 20:15:08 GMT
x-amzn-RequestId: d60d0ee6-0b59-7647-4aa6-b8d50ef05a84
connection: keep-alive
{"state":{"desired":{"string1":"TLS Connect to AWS","string2":"Using
the built-in stack","string3":"of the BG96"},"delta":{"string1":"TLS
Connect to AWS","string2":"Using the built-in stack","string3":"of the
BG96"}},"metadata":{"desired":{"string1":{"timestamp":1532463231},"str
ing2":{"timestamp":1532463231},"string3":{"timestamp":1532463231}}},"v
ersion":19,"timestamp":1532463308}
OK
As per the HTTP POST example, be sure to replace the "
AWS_TEST_THING
" string with
whatever unique name was assigned to the AWS "thing" in