WA_DEV_W228_UGD_002 Rev 003 Page 66 of 78
WISMO228 TCP/IP AT Commands
Manual
Creating a TCP Server, Spawning the Maximum
TCP Sockets (for the Configured Server)
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,1,80,5,6
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 or 6. It will accept
//connection request until it has no more socket left.
//unsolicited: the server accepted a connection
//resulting TCP client on idx 5.
//unsolicited: the server accepted a connection
//resulting TCP client on idx 6.
//close the spawned TCP client socket index 5.
//now if the peer device try to connect to the server it
//shall receive an accept () immediately followed by an
shutdown() (connection reset by peer)
Comments to this Manuals