9.15.1.1 +SOCKO

This command is used to open a new socket.

Security – Default Security for the command is: GGGG

Table 9-121. Command Syntax

Command

Description

Security

AT+SOCKO=<PROTOCOL>

Open a socket

GGGG

AT+SOCKO=<PROTOCOL>,<PROTOCOL_VERSION>

Open a socket (specifying IP protocol)

GGGG

Table 9-122. Command Parameter Syntax

Parameter Name

Type

Description

<PROTOCOL>

Integer

The protocol to use
  • 1 – UDP
  • 2 – TCP

<PROTOCOL_VERSION>

Integer

IP protocol version
  • 4 – IPv4
Table 9-123. Response Syntax

Response

Description

+SOCKO:<SOCK_ID>

Socket open response

Table 9-124. Response Element Syntax

Element Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535