Example Of Multi Socket Connection - Wiznet WizFi250 Programmer's Manual

Hide thumbs Also See for WizFi250:
Table of Contents

Advertisement

[CONNECT 0]
AT+SSEND=0,,,18
GET / HTTP/1.1{0x0d}{0x0a}
{0x0d}{0x0a}
[OK]
{0,173.194.33.38,443,990}HTTP/1.1 302 Found
Location: https://www.google.co.kr/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Set-Cookie:
PREF=ID=3e64d81fb97c7e6c:FF=0:TM=1371553236:LM=1371553236:S=H3NKySD63UwelF_z;
expires=Thu, 18-Jun-2015 11:00:36 GMT; path=/; domain=.google.com
Set-Cookie: NID=67=vtzYXz5msxRYzO-
KzH5EKgcnABE4_YOcbUG1RGXufiQM2PNc84gyr8O12VNkOOap8MUCmGNQfnfsGMarSS9Jlkb7MiZdIQxrJg
-FL1uKUqgSBA2CGIEqI5syrKnNW2YK; expires=Wed, 18-Dec-2013 11:00:36 GMT; path=/;
domain=.google.com; HttpOnly
P3P: CP="This is not a P3P policy! See
http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more
info."
Date: Tue, 18 Jun 2013 11:00:36 GMT
Server: gws
Content-Length: 222
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
<HTML><HEAD><meta http-equiv="content-type"
content="text/html;charset=utf-8"><TITLE>302 Moved</TITLE></HEAD><BODY><H1>302
Moved</H1>The document has moved<A HREF="https://www.google.co.kr/">here</A>.
</BODY></HTML>
[DISCONNECT 0]
2013/09/04 13:22 ·
jeonggw

Example of Multi Socket Connection

This section explains how to use <Multi Socket Connection> function. WizFi250 can use max 8 TCP or UDP
sockets. In order to use <Multi Socket Connection> function, you can use AT command as below. In this
example, the peer system was running a loop back program. So if peer system received data from WizFi250,
peer system will send received data to WizFi250.
AP Association
AT+SCON=O,TCN,192.168.12.23,5000,5001,0
[OK]
[CONNECT 0]
AT+SCON=O,TSN,,,6000,0
[OK]
[CONNECT 1]
AT+SCON=O,UCN,192.168.12.23,7000,7000,0
[OK]
2020/11/26 12:13
74/81
WizFi250 Programmer's Guide

Advertisement

Table of Contents
loading

Table of Contents