MBED wifi code from oxford repo

Dependencies:   mbed

Fork of SerialPassthroughcjsESP8266 by chris stevens

Revision:
9:b1344ca3497d
Parent:
8:34cc66421054
Child:
10:146515fc16f7
--- a/main.cpp	Wed Jun 08 09:14:56 2016 +0000
+++ b/main.cpp	Wed Jun 08 10:07:11 2016 +0000
@@ -19,6 +19,7 @@
     led1 = !led1;
     while(dev.readable()) {
         pc.putc(dev.getc());
+        //wait_us(1);
     }
 }
 // subroutine to service the serial interrupt on the pc connection
@@ -54,8 +55,9 @@
     dev.attach(&dev_recv, Serial::RxIrq);
     
     
-
+int i=0;
     while(1) {
-        sleep(); // so for KL25z this is probably wrong.... but not yet tested 07-06-2016
+        
+       (i++)%10; // THIS USED TO BE A SLEEP COMMAND BUT IT WAS CAUSING SOME TROUBLE.
     }
 }