diff -r 03df7946c2fa -r b217fb367574 erpc_interface/erpc_PLCObject/client.py --- a/erpc_interface/erpc_PLCObject/client.py Tue Nov 19 23:52:04 2024 +0100 +++ b/erpc_interface/erpc_PLCObject/client.py Fri Nov 22 16:31:51 2024 +0100 @@ -1,5 +1,5 @@ # -# Generated by erpcgen 1.12.0 on Mon May 20 17:53:37 2024. +# Generated by erpcgen 1.13.0 on Fri Nov 8 11:06:24 2024. # # AUTOGENERATED - DO NOT EDIT # @@ -292,4 +292,28 @@ _result = codec.read_uint32() return _result - + def ExtendedCall(self, method, argument, answer): + assert type(answer) is erpc.Reference, "out parameter must be a Reference object" + + # Build remote function invocation message. + request = self._clientManager.create_request() + codec = request.codec + codec.start_write_message(erpc.codec.MessageInfo( + type=erpc.codec.MessageType.kInvocationMessage, + service=self.SERVICE_ID, + request=self.EXTENDEDCALL_ID, + sequence=request.sequence)) + if method is None: + raise ValueError("method is None") + codec.write_string(method) + if argument is None: + raise ValueError("argument is None") + codec.write_binary(argument) + + # Send request and process reply. + self._clientManager.perform_request(request) + answer.value = codec.read_binary() + _result = codec.read_uint32() + return _result + +