From 308a19bff2ea7d4b2c9f0b354001405ad2ea5572 Mon Sep 17 00:00:00 2001 From: Twirre Meulenbelt <43213592+TwirreM@users.noreply.github.com> Date: Thu, 16 Oct 2025 15:02:01 +0200 Subject: [PATCH] fix: correct negotiate endpoint name Was previously "negotiation/", but the API document described it as "negotiate/". It is now "negotiate/" in the implementation as well. ref: N25B-168 --- src/robot_interface/endpoints/main_receiver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/robot_interface/endpoints/main_receiver.py b/src/robot_interface/endpoints/main_receiver.py index befa617..0ebd01a 100644 --- a/src/robot_interface/endpoints/main_receiver.py +++ b/src/robot_interface/endpoints/main_receiver.py @@ -27,7 +27,7 @@ class MainReceiver(ReceiverBase): def _handle_port_negotiation(message): endpoints = [socket.endpoint_description() for socket in state.sockets] - return {"endpoint": "negotiation/ports", "data": endpoints} + return {"endpoint": "negotiate/ports", "data": endpoints} @staticmethod def _handle_negotiation(message): @@ -42,10 +42,10 @@ class MainReceiver(ReceiverBase): """ # In the future, the sender could send information like the robot's IP address, etc. - if message["endpoint"] == "negotiation/ports": + if message["endpoint"] == "negotiate/ports": return MainReceiver._handle_port_negotiation(message) - return {"endpoint": "negotiation/error", "data": "The requested endpoint is not implemented."} + return {"endpoint": "negotiate/error", "data": "The requested endpoint is not implemented."} def handle_message(self, message): if "endpoint" not in message: