Minimalistischer Remote Procedure Call (RPC) HTTP Server V2

Dependencies:   EthernetInterface HttpServer OLEDDisplay mbed-rtos mbed

Fork of RPCHTTPServerSimple by smd.iotkit2.ch

Revision:
11:43e28c85fd75
Parent:
10:f92d1e679fea
Child:
12:e55991dab543
diff -r f92d1e679fea -r 43e28c85fd75 main.cpp
--- a/main.cpp	Wed Mar 11 18:52:34 2015 +0000
+++ b/main.cpp	Wed Apr 08 12:31:41 2015 +0000
@@ -25,8 +25,9 @@
     RPC::construct<RpcDigitalOut, PinName, const char*>(D10, "led1");
     RPC::construct<RpcDigitalOut, PinName, const char*>(D11, "led2");
     RPC::construct<RpcPwmOut, PinName, const char*>(D12, "led3");
-    RPC::construct<RpcDigitalIn, PinName, const char*>(PTC9, "b1");
-    //RPC::construct<RpcAnalogIn, PinName, const char*>(A0, "light");
+    RPC::construct<RpcAnalogIn, PinName, const char*>(A0, "poti");
+    RPC::construct<RpcAnalogIn, PinName, const char*>(A1, "light");
+    RPC::construct<RpcDigitalIn, PinName, const char*>(A2, "b1");
 
     // Handler
     HTTPServerAddHandler<RPCHandler>("/rpc");