![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tutorial Code for working with RPC Functions
Dependencies: RPCInterface mbed
Fork of RPC_Tutorial by
Diff: main.cpp
- Revision:
- 1:50a40baa79bf
- Parent:
- 0:74f2764b636b
--- 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");