GSwifiInterface (interface for GainSpan Wi-Fi GS1011 modules) see https://mbed.org/users/gsfan/notebook/GSwifiInterface/
Dependencies: GSwifiInterface mbed
Fork of Wifly_HelloWorld by
Revision 7:3644ae697c52, committed 2013-01-30
- Comitter:
- gsfan
- Date:
- Wed Jan 30 05:53:39 2013 +0000
- Parent:
- 6:2e3441cd9128
- Commit message:
- fix
Changed in this revision
GSwifiInterface.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2e3441cd9128 -r 3644ae697c52 GSwifiInterface.lib --- a/GSwifiInterface.lib Sun Jan 27 14:37:15 2013 +0000 +++ b/GSwifiInterface.lib Wed Jan 30 05:53:39 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/gsfan/code/GSwifiInterface/#78943b3945b5 +http://mbed.org/users/gsfan/code/GSwifiInterface/#6a6396b56405
diff -r 2e3441cd9128 -r 3644ae697c52 main.cpp --- a/main.cpp Sun Jan 27 14:37:15 2013 +0000 +++ b/main.cpp Wed Jan 30 05:53:39 2013 +0000 @@ -12,12 +12,13 @@ * - SEC_WEP is the security */ //GSwifiInterface gs(p13, p14, p12, P0_22, p9, "SSID", "PHRASE", GSwifi::SEC_WPA_PSK); -GSwifiInterface gs(p13, p14, NC, NC, p9, "SSID", "PHRASE", GSwifi::SEC_WEP); +GSwifiInterface gs(p13, p14, NC, NC, p9, "SSID", "PHRASE", GSwifi::SEC_WPA_PSK); // TX, RX, CTS, RTS, RESET int main() { + pc.baud(115200); gs.init(); // use DHCP - if (gs.connect()) return -1; // join the network + if (gs.connect() == false) return -1; // join the network printf("IP Address is %s\n\r", gs.getIPAddress()); gs.disconnect(); }