RPC over HTTP example.

Dependencies:   EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed

Fork of RPC_HTTP by Michael Walker

This is a working example of using RPC over HTTP. This uses an ethernet connection. The program attaches an RPC handler to LED1. You can use a client program to send commands to this LED, addressing it as "led1".

Files at this revision

API Documentation at this revision

Comitter:
sarahmarshy
Date:
Mon Jun 15 16:52:53 2015 +0000
Parent:
4:a1b6651dd2ae
Commit message:
Led1;

Changed in this revision

HTTP_RPC.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HTTP_RPC.cpp	Mon Jun 15 16:33:43 2015 +0000
+++ b/HTTP_RPC.cpp	Mon Jun 15 16:52:53 2015 +0000
@@ -26,13 +26,12 @@
 
 RpcDigitalOut led1(LED1,"led1");
 
-
 EthernetInterface eth;  
 HTTPServer svr;
 
 int main() {
-  //Turn the LED off
-  led1.write(1)
+  //Turn the LEDs off
+  led1.write(1);
   
   RPC::add_rpc_class<RpcDigitalOut>();