9.15.1.7 +SOCKWRTO

This command is used to send data to an arbitrary destination using the connectionless UDP protocol.

Security – Default Security for the command is: GGGG

Table 9-137. Command Syntax

Command

Description

Security

AT+SOCKWRTO=<SOCK_ID>,<RMT_ADDR>,<RMT_PORT>,<LENGTH>,<DATA>

Socket write to socket with data

GGGG

AT+SOCKWRTO=<SOCK_ID>,<RMT_ADDR>,<RMT_PORT>,<LENGTH>

Socket write to socket, data to follow

GGGG

Table 9-138. Command Parameter Syntax

Parameter Name

Type

Description

<SOCK_ID>

Integer

The socket ID. Valid range is 1-65535

<RMT_ADDR>

Integer String Byte Array

The address of the remote device

<RMT_PORT>

Integer

The port number on the remote device

<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