AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page176of233
Read data from a SSL socket
-
#SSLRECV
#SSLRECV – Read data from a SSL socket
AT#SSLRECV=
<SSId>,<MaxNumBy
te>[,<TimeOut>]
This command allows receiving data from a secure socket.
Parameters:
<SSId> - Secure Socket Identifier
1 - Until now SSL block manage only one socket.
<MaxNumByte> - max number of bytes to read
1..1000
< Timeout > - time-out in 100 ms units
10..5000 - hundreds of ms (factory default is 100)
If no data are received the device responds:
#SSLRECV: 0<CR><LF>
TIMEOUT<CR><LF>
<CR><LF>
OK
If the remote host closes the connection the device responds:
#SSLRECV: 0<CR><LF>
DISCONNECTED<CR><LF>
<CR><LF>
OK
If data are received the device responds:
#SSLRECV: NumByteRead<CR><LF>
...(Data read)... <CR><LF>
<CR><LF>
OK
Note: if secure socket is not enabled using AT#SSLEN only test requests can be
made.
Note: if timeout is not set for SSL connection the default timeout value, set through
AT#SSLCFG, is used.
Note: before receiving data from the SSL connection it has to be established using
AT#SSLD.
AT#SSLRECV=?
Test command returns the range of supported values for all the parameters:
#SSLRECV: (1),(1-1000),(10-5000)