9.15.1.12 +SOCKC

This command is used to read or set the socket configuration. This command is a configuration command which supports setting and getting parameter values. The behaviour of configuration commands is described in general in the Configuration Commands section.

Security – Default security for the command is: GGGG

Table 9-165. Command Syntax

Command

Description

Security

AT+SOCKC

Query range of SOCK_ID

GGGG

AT+SOCKC=<SOCK_ID>

Query all configuration elements

GGGG

AT+SOCKC=<SOCK_ID>,<ID>

Query a single element

GGGG

AT+SOCKC=<SOCK_ID>,<ID>,<VAL>

Set a single element

GGGG

Table 9-166. Command Parameter Syntax

Parameter Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-167. Response Syntax

Response

Description

+SOCKC:<ID>,<VAL>

Read response

Table 9-168. Response Element Syntax

Element Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-169. Configuration Parameters

ID

Name

Type

Description

Security

1

<SO_LINGER>

Bool

Socket linger enable/disable (TCP)

GGGG

2

<SO_NODELAY>

Bool

Socket no delay (TCP)

GGGG

3

<SO_KEEPALIVE>

Unsigned Integer

Socket keep alive timeout (TCP)

GGGG

4

<SO_RCVBUF>

Unsigned Integer

Socket receive buffer size (TCP). Valid range is 1460-11680

GGGG

32

<IP_TOS>

Unsigned Integer

Socket Type of Service (TCP/UDP)
  • 0x00 – Normal
  • 0x04 – Reliability
  • 0x08 – Throughput
  • 0x10 – Low delay

GGGG