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 HttpServer OLEDDisplay mbed-rtos mbed
Fork of RPCHTTPServerSimple by
Revision 14:ab5b22ac6b42, committed 2016-09-10
- Comitter:
- stefan1691
- Date:
- Sat Sep 10 07:01:44 2016 +0000
- Parent:
- 13:b7380bc60ad2
- Commit message:
- Minimalistischer Remote Procedure Call (RPC) HTTP Server V2
Changed in this revision
diff -r b7380bc60ad2 -r ab5b22ac6b42 EthernetInterface.lib --- a/EthernetInterface.lib Wed May 27 12:08:18 2015 +0000 +++ b/EthernetInterface.lib Sat Sep 10 07:01:44 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#65b0d840274c +http://mbed.org/users/mbed_official/code/EthernetInterface/#4d7bff17a592
diff -r b7380bc60ad2 -r ab5b22ac6b42 OLEDDisplay.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OLEDDisplay.lib Sat Sep 10 07:01:44 2016 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/smdiotkitch/code/OLEDDisplay/#1dee22d82bd2
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>();
diff -r b7380bc60ad2 -r ab5b22ac6b42 mbed-rtos.lib --- a/mbed-rtos.lib Wed May 27 12:08:18 2015 +0000 +++ b/mbed-rtos.lib Sat Sep 10 07:01:44 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#63988a2238f7 +http://mbed.org/users/mbed_official/code/mbed-rtos/#bdd541595fc5
