eclipse-uprotocol / up-transport-zenoh-cpp

C++ client library to connect to the zenoh implementation of uProtocol
Apache License 2.0
5 stars 15 forks source link

Source URI is missing in RpcClient Implementation #31

Open stevenhartley opened 7 months ago

stevenhartley commented 7 months ago

uPClient needs to know the source UEntity and UAuthority of the uE that is instantiating RpcClient interface such that when InvokeMethod() is called (and we generate a request), we can populate the source in the request so the message can be sent back to the requester, otherwise the message cannot be routed back across systems. This will only be a bug when the communication is not P2P but between devices. Issue is line https://github.com/eclipse-uprotocol/up-client-zenoh-cpp/blob/main/lib/src/zenohRpcClient.cpp#L151 .

for examples of setting the URI in the constructor, please see https://github.com/eclipse-uprotocol/up-client-zenoh-rust/blob/main/src/lib.rs#L55