Skip to content

Commit

Permalink
multipleanalogsensorclient: Always use tcp carrier for rpc as done in…
Browse files Browse the repository at this point in the history
… other nwc
  • Loading branch information
traversaro committed Oct 25, 2024
1 parent 1912393 commit 37e1aab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ bool MultipleAnalogSensorsClient::open(yarp::os::Searchable& config)

// Connect ports
if (!m_externalConnection) {
ok = yarp::os::Network::connect(localRPCPortName, remoteRPCPortName, m_carrier);
// RPC port needs to be tcp, therefore no carrier option is added here
ok = yarp::os::Network::connect(localRPCPortName, remoteRPCPortName);
if (!ok) {
yCError(MULTIPLEANALOGSENSORSCLIENT,
"Failure connecting port %s to %s.",
Expand Down

0 comments on commit 37e1aab

Please sign in to comment.