mbed RPC

Dependents:   WiFlyHTTPServerSample MultiThreadingHTTPServer HTTP-Server EthHTTPServer ... more

Issue: Unable to instantiate RpcAnalogIn objects

Dear developers,

I don't know if I should be posting this here, but I am having trouble instantiating RPC Analog Input objects on my FRDM-KL25Z mbed device.

The following line of code will not compile:

RpcAnalogIn ardA0(PTB0, "A0");

The compiler error is:

" Undefined symbol mbed::Reply::putData<unsigned short>(T1) (referred from main.cpp.KL25Z.o)." in file "/"

There are various other problems regarding mbed-rpc and python-interfacing. It would be much appreciated if experts, such as yourselves, could have a look at the Wiki comments and help us 'lesser-mortals' to get up and running!

KInd regards,

Stephen

1 comment:

24 Apr 2013

I have found that if I remove the following code {"read_u16", rpc_method_caller<unsigned short, RpcAnalogIn, &RpcAnalogIn::read_u16>} from line 117 of the RpcClasses.h file, objects can be instantiated. Hopefully, the developers will be able to discover the underlying problem.

I can now read analog input from Python but, presumably, not in unsigned 16-bit format!