RPC over HTTP example.
Dependencies: EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed
Fork of RPC_HTTP by
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".
Revision 3:6cfcccfe3995, committed 2015-06-15
- Comitter:
- sarahmarshy
- Date:
- Mon Jun 15 16:31:27 2015 +0000
- Parent:
- 2:33d3bcad6a90
- Child:
- 4:a1b6651dd2ae
- Commit message:
- Took out 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:29:24 2015 +0000
+++ b/HTTP_RPC.cpp Mon Jun 15 16:31:27 2015 +0000
@@ -24,7 +24,6 @@
#include "HTTPServer.h"
#include "mbed_rpc.h"
-DigitalOut led1(LED1);
RpcDigitalOut led2(LED2,"led2");
RpcDigitalOut led3(LED3,"led3");
RpcDigitalOut led4(LED4, "led4");
@@ -35,7 +34,6 @@
int main() {
//Turn the LEDs off
- led1.write(1);
led2.write(1);
led3.write(1);
led4.write(1);
@@ -66,7 +64,6 @@
svr.poll();
if(tm.read()>.5)
{
- //led1=!led1; //Show that we are alive
tm.start();
}
}
