diff --git a/src/rpcClient/pv/rpcClient.h b/src/rpcClient/pv/rpcClient.h index 3dcde89..36ac806 100644 --- a/src/rpcClient/pv/rpcClient.h +++ b/src/rpcClient/pv/rpcClient.h @@ -70,7 +70,7 @@ public: * @throws RPCRequestException exception thrown on error on timeout. */ static epics::pvData::PVStructure::shared_pointer sendRequest(const std::string & serviceName, - epics::pvData::PVStructure::shared_pointer const &request, double timeOut = RPCCLIENT_DEFAULT_TIMEOUT); + epics::pvData::PVStructure::shared_pointer const &request, double timeOut = RPCCLIENT_DEFAULT_TIMEOUT) EPICS_DEPRECATED; diff --git a/testApp/remote/rpcClientExample.cpp b/testApp/remote/rpcClientExample.cpp index 2d6c2f4..7d38b21 100644 --- a/testApp/remote/rpcClientExample.cpp +++ b/testApp/remote/rpcClientExample.cpp @@ -24,18 +24,6 @@ int main() request->getSubField("a")->put("3.14"); request->getSubField("b")->put("2.71"); - std::cout<<"simplest way\n"; - try - { - PVStructure::shared_pointer result = RPCClient::sendRequest("sum", request, TIMEOUT); - std::cout << "Error: " << *result << std::endl; - } catch (std::exception &e) - { - std::cout << e.what() << std::endl; - return 1; - } - - std::cout<<"simple sync way, allows multiple RPC calls on the client instance\n"; try {