trying to get mbed-rpc to work..

22 Jun 2013

I'm having trouble getting RPC to work. I've downloaded the latest mbed-rpc library (3 weeks old) and am using TeraTerm as my terminal. I try to pass a new value for the variable alphaF thusly /alphF/write 7.2 but no joy at all. I'm sure that I've missed something simple. Anybody see it? Thanks in advance...

#include "mbed.h"
#include "RPCVariable.h"

Serial pc(USBTX, USBRX);

float alphaF=44.061;

RPCVariable<float> RPCalphaF(&alphaF, "alphaF");

int main()
{
    pc.baud(38400);

    while(1) {
        pc.printf("alphaF = %f \n", alphaF);
        wait(10);
    }
}