Minimalistischer Remote Procedure Call (RPC) HTTP Server V2
Dependencies: EthernetInterface HttpServer OLEDDisplay mbed-rtos mbed
Fork of RPCHTTPServerSimple by
Diff: main.cpp
- Revision:
- 14:ab5b22ac6b42
- Parent:
- 12:e55991dab543
diff -r b7380bc60ad2 -r ab5b22ac6b42 main.cpp --- a/main.cpp Wed May 27 12:08:18 2015 +0000 +++ b/main.cpp Sat Sep 10 07:01:44 2016 +0000 @@ -1,19 +1,27 @@ -/** Minimalistischer Remote Procedure Call (RPC) HTTP Server +/** Minimalistischer Remote Procedure Call (RPC) HTTP Server V2 */ #include "mbed.h" #include "rtos.h" #include "EthernetInterface.h" #include "HTTPServer.h" #include "mbed_rpc.h" +#include "OLEDDisplay.h" EthernetInterface eth; +OLEDDisplay oled; + int main() { + // OLED Display + oled.clear(); + oled.printf( "Sensoren Demo\r\n" ); + printf("RPC HTTP Server\n"); eth.init(); //Use DHCP eth.connect(); printf("IP Address is %s\n\r", eth.getIPAddress()); + oled.printf("IP Address is %s\n\r", eth.getIPAddress()); // Klassen RPC::add_rpc_class<RpcDigitalOut>();