8 years, 7 months ago.

RPCFunction won't compile.

I am testing the RPC Function with a standard demo snippet and can't make it compile....

Error: No instance of constructor "mbed::RPCFunction::RPCFunction" matches the argument list in "main.cpp", Line: 15, Col: 26

The line that won't compile is as follows:

the failing line

RPCFunction RangeFinder(&ReadRange, "RangeFinder");

-- the function that it calls does nothing at the moment...

void ReadRange(char * input, char * output){
    //Dummy function for now. 
}

From reading around the Forums, it appears that several changes have been made to the RPC API - even to the extent that the "name" isn't required now to make the call to the RPCFunction. I have tried to remove this, and still can't get it to compile. The target mbed is the LPC1768. Any ideas - have I loaded the wrong libs?

The top of my program has the following includes

#include "mbed.h"
#include "mbed_rpc.h"

You're using an older board for which the mbed library has been stable for a long time, you could try using an older version of the mbed library. From memory I think you need to go back to about release 87.

posted by Andy A 02 Sep 2015

Thanks Andy - tried switching to v87 of the mbed libs, but no joy. Also tried to roll back to an earlier version of RPC, to no avail. I'm sure that I have seen something somewhere that points to a solution. Does this mean that RPC is no longer supported or at least used?

posted by Jim Gilbey 02 Sep 2015
Be the first to answer this question.