Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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); } }