Tutorial Code for working with RPC Functions
Dependencies: RPCInterface mbed
Fork of RPC_Tutorial by
Revision 1:50a40baa79bf, committed 2016-03-12
- Comitter:
- nambvarun
- Date:
- Sat Mar 12 02:39:07 2016 +0000
- Parent:
- 0:74f2764b636b
- Commit message:
- RPC Function Example;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 74f2764b636b -r 50a40baa79bf main.cpp --- a/main.cpp Fri Mar 11 23:42:52 2016 +0000 +++ b/main.cpp Sat Mar 12 02:39:07 2016 +0000 @@ -6,16 +6,6 @@ * This example demonstrates using RPC over serial */ - -// These are examples of some variable types that can be modified through RPC. -int wheelsOn; -char lcdBannerMessage; -float speed; - -RPCVariable<int> rpcLights(&wheelsOn, "wheels"); -RPCVariable<char> rpcBanner(&lcdBannerMessage, "banner"); -RPCVariable<float> rpcSpeed(&speed, "speed"); - Serial pc(USBTX, USBRX); void moveTo(Arguments *in, Reply *out); RPCFunction rpcMove(&moveTo, "moveTo");