This is WizFi310 HelloWorld Example using legacy library for mbed OS2

Dependencies:   WizFi310Interface_Legacy mbed

Prerequisite

This example shows that WIZwiki-W7500 and WizFi310 connects to AP.

To implement this function, you need a Platform board and Wi-Fi board. Below are what we used.

  • WIZwiki-W7500 from WIZnet (Platform board)
  • WizFi310 from WIZnet (Wi-Fi board)

Hardware Configuration

WIZwiki-W7500 Pin map

pin map

  • D0 is for RXD, D1 is for TXD
  • D6 is for CTS, D7 is for RTS
  • D9 is for RESET

WizFi310 Pin map

pin map

  • J1 is for RXD, J3 is for TXD
  • SW6-1 is connected to D6 for RTS, SW6-2 is connected to D7 for CTS
  • SW5-3 is connected to D9 for RESET

Software

Connect to Wi-Fi

main.cpp

if ( wizfi310.connect(SECURE, SSID, PASS))      return -1;

Caution

Input a SSID/PW to connect to an AP.

Revision:
1:54253aea3391
Parent:
0:851ac97c4b05
--- a/main.cpp	Wed Apr 19 00:30:02 2017 +0000
+++ b/main.cpp	Wed Apr 19 00:50:36 2017 +0000
@@ -21,16 +21,13 @@
 #include "mbed.h"
 #include "WizFi310Interface.h"
 
-
 #define SECURE WizFi310::SEC_AUTO
 #define SSID "DIR-815_Wiznet"
 #define PASS "12345678"
 
-#define TARGET_NUCLEO_F411RE
-
 #if defined(TARGET_NUCLEO_F411RE)
-WizFi310Interface wizfi310(D8,D2,D7,D6,D9,NC,115200);
-Serial pc(USBTX, USBRX);
+    WizFi310Interface wizfi310(D8,D2,D7,D6,D9,NC,115200);
+    Serial pc(USBTX, USBRX);
 #endif
 
 #if defined(TARGET_WIZwiki_W7500)