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
--- /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
--- /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
--- /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