AT Command

Description

Get the status of the current socket.

AT#SS[=]

The response format is:
#SS: <connId>,<state>,<locIP>,<locPort>,<remIP>,<remPort>

- socket connection identifier

- actual state of the socket:

0 - Socket Closed.
1 - Socket with an active data transfer connection.
2 - Socket suspended.
3 - Socket suspended with pending data.
4 - Socket listening.
5 - Socket with an incoming connection. Waiting for the user accept or shutdown command.
- IP address associated by the context activation to the socket.
- two meanings:
- the listening port if we put the socket in listen mode.
- the local port for the connection if we use the socket to connect to a remote machine.
- when we are connected to a remote machine this is the remote IP address.
- it is the port we are connected to on the remote machine.


Support

Telit Module Tutorial

Examples

AT#SS
#SS: 1,3,91.80.90.162,61119,88.37.127.146,10510
#SS: 2,4,91.80.90.162,1000
#SS: 3,0
#SS: 4,0
#SS: 5,3,91.80.73.70,61120,88.37.127.146,10509
#SS: 6,0
OK

KeywordsAT#SS syntax, examples, parameters, error, input, response.

Test AT#SS command with AT Command Tester