From 1acc929a1088684a60e4c3793701351d4aaf440c Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 18 Jan 2024 20:55:23 +0200 Subject: [PATCH] Fix https://github.com/OpenCyphal/pycyphal/issues/323 --- pycyphal/transport/udp/_udp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycyphal/transport/udp/_udp.py b/pycyphal/transport/udp/_udp.py index 20965946..dc5d10de 100644 --- a/pycyphal/transport/udp/_udp.py +++ b/pycyphal/transport/udp/_udp.py @@ -64,7 +64,7 @@ class UDPTransport(pycyphal.transport.Transport): def __init__( self, local_ip_address: IPAddress | str, - local_node_id: typing.Optional[int] = 0, + local_node_id: typing.Optional[int], *, # The following parameters are keyword-only. mtu: int = MTU_DEFAULT, service_transfer_multiplier: int = 1, @@ -85,7 +85,7 @@ def __init__( :param local_node_id: As explained previously, the node-ID is part of the UDP Frame. - - If the value is None, an anonymous instance will be constructed. + - If the value is None (default), an anonymous instance will be constructed. Emitted UDP frames will then report its :attr:`source_node_id` as None. - If the value is a non-negative integer, then we can setup both input and output sessions.