WiFly hello world example

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Nathan
Date:
Fri Aug 26 14:02:42 2011 +0000
Commit message:

Changed in this revision

Wifly.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r d4e85ed5363b Wifly.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Wifly.lib	Fri Aug 26 14:02:42 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/samux/code/Wifly/#cf1a7a5cc8d6
diff -r 000000000000 -r d4e85ed5363b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 26 14:02:42 2011 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "Wifly.h"   
+
+ Wifly * wifly;
+ Serial pc(USBTX, USBRX);
+ 
+ int main()
+ {
+   wifly = new Wifly(p9, p10, p20, "network", "password", true);
+   
+   if(wifly->Join())
+       pc.printf("network joined!\r\n");
+   else
+       pc.printf("join failed!\r\n");
+       
+ }
\ No newline at end of file
diff -r 000000000000 -r d4e85ed5363b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Aug 26 14:02:42 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912