Skip to content

pb_client.service.Service.download async

download(program, *, hub_id=None, slot=None)

Send a compiled program to a hub without starting it.

Parameters:

Name Type Description Default
program bytes

The compiled program.

required
hub_id str | None

Which hub, or None for the current one.

None
slot int | None

The slot it is expected to land in, or None to accept whichever the hub has selected. The hub decides where a program goes, so naming one that is not selected is refused rather than quietly ignored.

None

Returns:

Type Description
Downloaded

What was written and where.