WA_DEV_W228_UGD_002 Rev 003 Page 59 of 78
WISMO228 TCP/IP AT Commands
Manual
7. Examples of Application
TCP Socket
TCP Server Socket
Using GPRS Bearer
AT+WIPBR=2,6,11,”APN name”
OK
//set APN name of GPRS bearer
AT+WIPBR=2,6,0,”user name”
OK
//set user name (<login>)
AT+WIPBR=2,6,1,”passwd”
OK
//set password (<password>)
AT+WIPCREATE=3,1,80,5,8
OK
//create the server on port 80, idx = 1. The server is
// listening for connection request on port 80.
//Spawned sockets will be given the index 5, 6, 7 and 8.
//It will accept connection request until it has no more
//sockets left.
//unsolicited: the server accepted a connection resulting
//TCP client on idx 5.
//exchange data on socket index 5
//close the TCP client socket index 5
Comments to this Manuals