Seeed wifi shield hello world program
Dependencies: WiflyInterface mbed
Fork of Wifly_HelloWorld by
Diff: main.cpp
- Revision:
- 0:90ba0f51aa64
- Child:
- 1:49e1e9ed6e39
diff -r 000000000000 -r 90ba0f51aa64 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Nov 06 11:59:55 2011 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "Wifly.h" + + Wifly wifly(p9, p10, p20, "network", "password", true); + Serial pc(USBTX, USBRX); + + int main() + { + if(wifly.join()) + pc.printf("network joined!\r\n"); + else + pc.printf("join failed!\r\n"); + } \ No newline at end of file