WA_DEV_W228_UGD_002 Rev 003 Page 74 of 78
WISMO228 TCP/IP AT Commands
Manual
Creating TCP Client and Server Sockets in the Same WISMO
®
AT+WIPBR=2,6,11,”APN name”
OK
//set APN name of GPRS bearer
AT+WIPBR=2,6,0,”user name”
OK
AT+WIPBR=2,6,1,”passwd”
OK
AT+WIPCREATE=3,2,80,1,2
OK
//create the server on port 80, idx=2. The server is
//listening for connection requests on port 80.
//Spawned sockets will be given the index 1 or 2. It
//will accept connection request until it has nor more
//sockets left.
AT+WIPCREATE=2,3,”198.168.0.1”,80
//create a TCP client towards peer IP device @
//“198.168.0.1”, port 80,
//all parameters and IP stack behavior are OK.
//unsolicited: the TCP client socket is connected to the
//peer.
//unsolicited: the server index accepted a connection;
//resulting TCP client on idx 1
//exchange data on socket index 3
//data sent to socket index 1 and switched to AT
//mode by giving +++
//exchange data on socket index 1
Comments to this Manuals