9.15.1.6 +SOCKWR

This command is used to send data over a socket that is bound to a remote address and port number.

Security – Default Security for the command is: GGGG

Table 9-147. Command Syntax

Command

Description

Security

AT+SOCKWR=<SOCK_ID>,<LENGTH>,<DATA>

Socket write with data

GGGG

AT+SOCKWR=<SOCK_ID>,<LENGTH>

Socket write, data to follow

GGGG

Table 9-148. Command Parameter Syntax

Parameter Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535

<LENGTH>

Integer

The length of the data to send. Valid range is 0-1460

<DATA>

String Byte Array

The data to send in either ASCII or hexadecimal string format. If omitted the DCE will enter Raw Binary mode and will remain in that mode until the specified length of binary data has been received from the DTE