RPC over HTTP to control mbed application

Dependencies:   EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed

Fork of RPC_HTTP by Sarah Marsh

Revision:
6:15e566d10c16
Parent:
5:5322cbfd7c01
--- a/HTTP_RPC.cpp	Mon Jun 15 16:52:53 2015 +0000
+++ b/HTTP_RPC.cpp	Tue Feb 13 06:17:07 2018 +0000
@@ -25,13 +25,15 @@
 #include "mbed_rpc.h"
 
 RpcDigitalOut led1(LED1,"led1");
+RpcDigitalOut led2(p21,"led2");
 
 EthernetInterface eth;  
 HTTPServer svr;
 
 int main() {
   //Turn the LEDs off
-  led1.write(1);
+  led1.write(0);
+  led2.write(0);
   
   RPC::add_rpc_class<RpcDigitalOut>();