PN 1001933 rev 2
© NimbeLink Corp. 2022. All rights reserved.
17
To open the SSL socket, issue the command below. Make sure to replace the device
endpoint in the AT command below with the endpoint that is unique to the AWS account
being used for this example and the red 1 with a 3 if using the QBG95 with Verizon.
AT+QSSLOPEN=
1
,1,1,"a272...amazonaws.com",8443,0
The first three "
1
" specify the PDP context, SSL configuration profile and the socket
index, respectively. The endpoint URL is the unique URL associated with the AWS
account, the “
8443
” specifies the port connected to, and the “
0
” specifies “
Buffer
access mode
”, which is similar to command mode.
After issuing this command, the modem will attempt to connect to the AWS endpoint. If
the connection is successful, the modem will return the following:
+QSSLOPEN: 1,0
The above text indicates that the SSL handshake was successful and that the socket has
been opened. If the modem responds with anything other than the above text, issue the
following command to get more information about the error:
AT+QIGETERROR
The above command will return something similar to this:
+QIGETERROR: x, <error message>
Where "
x
" is replaced with the error code, and "
<error message>"
is replaced with a
relevant error message.
After the SSL socket has been successfully been opened. Proceed to
4.2 Sending an HTTP Request
After successfully opening an SSL socket, use the following command to send an HTTP
request to the AWS endpoint:
AT+QSSLSEND=1
Where "
1
" is the number of the socket used for the SSL connection.
After issuing this AT command, the modem will wait for text to be entered into the
terminal. This text can either be pasted or typed into the terminal. After all of the text
has been entered or pasted in, press "
CTRL-Z
" to finalize the transmission. See the text
below for a sample HTTP POST request using the "
AT+QSSLSEND
" command.
Also, take note of the text in red in the table on the next page. Any of the red text
indicates key presses, and are not to be typed explicitly. These key press sequences
are crucial in order to format the POST command properly. Finally, bold text signifies
commands issued to the modem, and text pasted into the terminal.