Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface_2 HTTPServer mbed-rpc_2 mbed-rtos mbed
Fork of EthHTTPServer by
Diff: main.cpp
- Revision:
- 6:d71683e80eb3
- Parent:
- 5:c5c2f7026638
diff -r c5c2f7026638 -r d71683e80eb3 main.cpp
--- a/main.cpp Sat Aug 17 17:00:35 2013 +0000
+++ b/main.cpp Thu Nov 17 16:25:08 2016 +0000
@@ -1,7 +1,7 @@
#include "mbed.h"
#include "HTTPServer.h"
#include "FsHandler.h"
-#include "LocalFileSystem.h"
+//#include "LocalFileSystem.h"
#include "RpcHandler.h"
#include "mbed_rpc.h"
@@ -15,7 +15,7 @@
// Instantiate a HTTPServer to handle incoming requests
HTTPServer svr;
// Instantiate a local file system handler named 'local' which will be used later to access files on the mbed.
-LocalFileSystem local("local");
+//LocalFileSystem local("local");
#ifdef ALTERNATIVE
@@ -26,7 +26,7 @@
int main() {
- pc.baud(460800);
+ pc.baud(9600);
RPC::add_rpc_class<RpcDigitalOut>();
HTTPFsRequestHandler::mount("/local/", "/");
svr.addHandler<HTTPFsRequestHandler>("/");
