Using Serial Command
This section explains how to connect to AP by using serial command.
The module start by default in command mode. If the user inputs the AT commands below, WizFi250 will be connected to AP
by DHCP and run as TCP server.
In this example, the settings of AP will be created as below:
( SSID : WizFiDemoAP, Security : WPA2, Key : 12345678 )
AT(SentATcommandwith0x0d(HexofEnterbutton))
[OK](responsemeaningsuccessfulexecution)
AT+WSET=0,WizFiDemoAP(ATcommandforsettingWiFiassociation)
[OK]
AT+WSEC=0,,12345678(ATcommandforsettingWiFisecurity)
[OK]
AT+WNET=1(ATcommandforsettingDHCP)
[OK]
AT+WJOIN(ATcommandexecutingAPassociation)
Joining:WizFiDemoAP
Successfullyjoined:WizFiDemoAP
[Link‐UpEvent]
IPAddr:192.168.3.104
Gateway:192.168.3.1
[OK]
AT+SCON=SO,TSN,,,5000,1(ATcommandforsettingTCPServer)
[OK]
[CONNECT0](WhenTCPconnectionisdone,itshowsthismessage)
Now, the green mode LED is on, and data can be exchanged from Serial I/F to connected client and back. This mode is called
data mode.
To exit this data mode or to enter into command mode again you need to send a single '+++' string without CR or LF (0x0D,
0x0A) - just the three 0x2B = '+' characters.
Exchanging data with a peer system
This section explains how to exchange data between WizFi250 and Peer System.
This example describes the structure of data flow.