22.03.2013 Views

AT+i Programmer's Manual - SE Spezial-Electronic AG

AT+i Programmer's Manual - SE Spezial-Electronic AG

AT+i Programmer's Manual - SE Spezial-Electronic AG

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.2 +iSUDP — Open A Connectionless UDP Socket<br />

Syntax: <strong>AT+i</strong>SUDP:,[,]<br />

Parameters:<br />

Command Options:<br />

Direct Socket Interface<br />

Opens a UDP (User Datagram Protocol) socket and sets the<br />

remote system‘s : address.<br />

Logical name of the target server or a host IP address, or<br />

0.0.0.0 to open a non-connected socket.<br />

Remote port number to send to, or 0 to open a non-connected<br />

socket.<br />

Optional local UDP port to use.<br />

The remote system‘s name may be any legal Internet server<br />

name that can be resolved by iChip‘s DNS (Domain Name<br />

Server) settings. The server name may also be specified as an<br />

absolute IP address given in DOT form. When the is<br />

defined, the resulting UDP socket is created and connected. If<br />

=0.0.0.0, the socket is created but remains unconnected.<br />

The first UDP packet to arrive automatically latches the<br />

sender‘s IP port, in effect connecting the socket.<br />

Specifies the remote system‘s port.<br />

Specifies the local port to use. If unspecified, iChip allocates a<br />

port from its internal pool.<br />

Result Code:<br />

I/ Upon successfully opening and connecting the UDP socket to<br />

:, a socket handle is returned. The socket handle<br />

is in the range 0..9 and used to reference the<br />

socket in all following socket commands.<br />

I/ERROR Otherwise<br />

The Socket Command Abort may be used to abort prematurely.<br />

<strong>AT+i</strong> Programmer‘s <strong>Manual</strong> Version 8.21 13-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!