updated RPC command to match javascripting language

Dependencies:   EthernetInterface HTTPServerExample mbed-rpc mbed-rtos mbed

Fork of EthHTTPServer by Henry Leinen

Revision:
0:28a67716dfec
Child:
1:6cbd17e628f1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jun 22 15:50:41 2013 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+#include "HTTPServer.h"
+#include "FsHandler.h"
+#include "LocalFileSystem.h"
+
+
+DigitalOut myled(LED1);
+
+Serial pc(USBTX, USBRX, "pc");
+
+HTTPServer  svr;
+
+LocalFileSystem local("local");
+
+int main() {
+
+    pc.baud(460800);
+    HTTPFsRequestHandler::mount("/local/", "/");
+    svr.addHandler<HTTPFsRequestHandler>("/");
+
+    if (!svr.start()) {
+        error("Server not starting !");
+        exit(0);
+    }
+    
+    while(1) {
+        svr.poll();
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}