esp8266 test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
fookies
Date:
Mon May 04 07:58:52 2015 +0000
Commit message:
wifitest

Changed in this revision

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 b90de1798fe6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 04 07:58:52 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+ 
+Serial pc(USBTX, USBRX); // tx, rx
+Serial wifi(D8, D2);  // tx, rx
+ 
+int main() {
+    while(1) {
+        if(pc.readable()) {
+            wifi.putc(pc.getc());
+        }
+        if(wifi.readable()) {
+            pc.putc(wifi.getc());
+        }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r b90de1798fe6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon May 04 07:58:52 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058
\ No newline at end of file