![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ECE4180 Lab 4
Dependencies: 4DGL-uLCD-SE NTPClient WiflyInterface mbed
Fork of Wifly_HelloWorld by
Diff: main.cpp
- Revision:
- 5:867d16e948eb
- Parent:
- 4:fd030db1a6f4
- Child:
- 6:9e564d0336a8
diff -r fd030db1a6f4 -r 867d16e948eb main.cpp --- a/main.cpp Fri Aug 17 11:31:32 2012 +0000 +++ b/main.cpp Fri Aug 24 13:52:40 2012 +0000 @@ -9,12 +9,13 @@ * - p26 is for the connection status * - "mbed" is the ssid of the network * - "password" is the password -* - true means that the security of the network is WPA +* - WPA is the security */ -WiflyInterface wifly(p9, p10, p25, p26, "mbed", "password", true); +WiflyInterface wifly(p9, p10, p25, p26, "mbed", "password", WPA); int main() { wifly.init(); // use DHCP while (!wifly.connect()); // join the network printf("IP Address is %s\n\r", wifly.getIPAddress()); + wifly.disconnect(); } \ No newline at end of file