Merge new implementation of robot ri api with unit tests into dev. #6

Merged
9828273 merged 39 commits from feat/cb2ui-robot-connections into dev 2025-10-28 13:49:41 +00:00
Showing only changes of commit 63590bd5a3 - Show all commits

View File

@@ -65,6 +65,7 @@ class RICommunicationAgent(Agent):
logger.info("Setting up %s", self.jid)
retries = 0
# Let's try a certain amount of times before failing connection
while retries < max_retries:
# Bind request socket
@@ -105,7 +106,11 @@ class RICommunicationAgent(Agent):
id = port_data["id"]
port = port_data["port"]
bind = port_data["bind"]
addr = f"tcp://localhost:{port}"
if not bind:
addr = f"tcp://localhost:{port}"
else:
addr = f"tcp://*:{port}"
match id:
case "main":