Datasheet
Sample Application Demonstrations
2013 Microchip Technology Inc. Preliminary DS52108A-page 51
4.7 RUNNING TCP/IP – DEMO APP
This is applicable only for Explorer 16 and PICDEM.net2 Development Boards as the
PIC32 starter kit does not use the EEPROM. Due to this, you may notice situations
where you have made changes in the code that are not reflected during the
demonstration (for example, you changed the SSID name, but do not see it is being
used), and user must erase the EEPROM, refer to 5.3 “Erasing EEPROM”.
For the first time demonstration, perform these actions. The user must setup hardware
and software before the WiFi demonstration.
1. Download web server code into the EEPROM of the development board. To
download web server code, from the browser navigate to a special page that will
allow you to upload image files. More information on uploading image files are
provided in the later section. It is recommended to define
MY_DEFAULT_WIFI_SECURITY_MODE as WF_SECURITY_OPEN.
2. After the development board is connected to the AP (or it has created the net-
work in Ad hoc mode), the LCD panel will display the IP address that is being
used. Alternately, the serial output should display the same information.
4.7.1 Network Type: CFG_WF_INFRASTRUCTURE
1. CFG_WF_INFRASTRUCTURE is the default network type with the MLA release.
Ensure that SSID and Security mode is set to match with the APs configurations.
In the WF_Config.h, perform these actions:
a) Define the MY_DEFAULT_NETWORK_TYPE as
CFG_WF_INFRASTRUCTURE.
b) Define the MY_DEFAULT_WIFI_SECURITY_MODE as
WF_SECURITY_OPEN.
c) Define the MY_DEFAULT_SSID_NAME to be same as the AP or router’s
SSID.
FIGURE 4-23: INFRASTRUCTURE NETWORK ENVIRONMENT SETUP
2. After the development board is connected to the AP, the LCD panel displays the
IP address that is being used. Alternately, the serial output should display similar
informations, see Figure 4-24.