Library to provide a mechanism to make it easier to add RPC to custom code by using RPCFunction and RPCVariable objects. Also includes a class to receive and process RPC over serial.

Dependencies:   mbed-rpc

Dependents:   GSL_10-Pololu_A4983_STEPMOTORDRIVER Protodrive RPC_HTTP RPC_TestHack ... more

Revision:
9:bcc2e05e5da4
Parent:
8:682c65afe534
Child:
10:9d82e28ffaea
--- a/SerialRPCInterface.cpp	Sat Jan 28 19:12:00 2012 +0000
+++ b/SerialRPCInterface.cpp	Sat Jan 23 22:28:00 2016 +0000
@@ -24,6 +24,8 @@
 * @section DESCRIPTION
 *
 *This class sets up RPC communication. This allows objects on mbed to be controlled. Objects can be created or existing objects can be used
+*
+* Substantially updated Jan 2016 to work with the updated RPC system
 */
 #include "SerialRPCInterface.h"
 
@@ -38,6 +40,7 @@
 }
 
 void SerialRPCInterface::_RegClasses(void){
+    /*
     //Register classes with base 
     Base::add_rpc_class<AnalogIn>();
     Base::add_rpc_class<DigitalIn>();
@@ -54,6 +57,7 @@
     #if !defined(TARGET_LPC11U24) 
     Base::add_rpc_class<AnalogOut>();
     #endif
+    */
 }
 
 void SerialRPCInterface::Disable(void){
@@ -64,7 +68,7 @@
 }
 void SerialRPCInterface::_MsgProcess(void) {
     if(_enabled == true){
-        rpc(_command, _response);
+        RPC::call(_command, _response);
     }
 }