WA_DEV_W228_UGD_002 Rev 003 Page 67 of 78
WISMO228 TCP/IP AT Commands
Manual
Creating a Server and Trying to Create a TCP
Client/Server on a Reserved Index (reserved by
the Server) will Fail
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 request on port 80. Spawned
//sockets will be given the index 1 or 2.It will accept
//connection request until has nor more socket 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
//exchange data on socket index 1
//send unescaped ETX character
Comments to this Manuals