Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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");
