pylabrobot.hamilton.transport.text_tcp.discover_instruments#

async pylabrobot.hamilton.transport.text_tcp.discover_instruments(timeout: float = 0.5) → List[HamiltonInstrumentInfo]#

Find the Hamilton machines on the networks this computer is on.

The broadcast goes to x.y.z.255 for each IPv4 address of this computer, assuming a /24, and to the limited broadcast address. A machine on a network of another size, or one that answers slowly, may be missed: widen timeout or connect by IP address.

Parameters:

timeout (float) – Seconds to wait for answers.

Returns:

One entry per machine, in the order they answered. A machine that answers on more than one network is listed once.

Return type:

List[HamiltonInstrumentInfo]