bpod_core.ipc.discover

bpod_core.ipc.discover(service_type, properties=None, timeout=10) tuple[str, dict[bytes, bytes | None]]

Discover a Zeroconf device/service on the local network matching given properties.

Parameters:
  • service_type (str) – The Zeroconf service type to discover, e.g., ‘_zmq._tcp.local.’

  • properties (dict, optional) – Dictionary of expected service properties to match.

  • timeout (float, optional) – How many seconds to wait for a matching service before timing out. Default is 10.

Return type:

tuple[str, dict[bytes, bytes | None]]

Returns:

Raises:

TimeoutError – If no matching device/service is found within the timeout period.