Closed nkbai closed 2 years ago
I can implement it on the master thread if you like, shouldn't be hard to reproduce
I checked in 3cd371cb on master for this. It is a wrapper around the request / response so it should not be complex.
@locka99 but session's send_request
is private function.
Can you clarify what the issue is with the implementation? Normally you would open a session and then call this function which would send the TranslateBrowsePathsToNodeIdsRequest and wait for the TranslateBrowsePathsToNodeIdsResponse. The send_request is private but it is used by all the other server calls so it should work pretty much the same.
as a user of opcua-client.
The patch though adds a public translate_browse_paths_to_node_ids() that calls the request so there should be no reason to call send_request directly.
yes,that's ok.
All I’m saying is add a function like this
I think if the client ever offers a sync / async API that issues like this will become more clear. I'm thinking when the tokio 0.2 update comes in that I could move to a more promise / futures based approach where send_request could be eliminated entirely. For the time being the API is synchronous and providing there is a method corresponding to every service request it should not be necessary to expose send_request although I could certainly make it public just in case the request needs to do something with diagnostics which isn't supported by the current api.
I'm closing since there is a solution for this in the interim
it seems that the client module miss this interface.