RobT's fork of RPCInterface
Fork of RPCInterface by
Diff: SerialRPCInterface.cpp
- Revision:
- 9:bcc2e05e5da4
- Parent:
- 8:682c65afe534
diff -r 682c65afe534 -r bcc2e05e5da4 SerialRPCInterface.cpp --- 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); } }