STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ota_upload.py File Reference

Go to the source code of this file.

Classes

class  ota_upload.OtaError
class  ota_upload.ConnectError

Namespaces

namespace  ota_upload

Functions

bytes ota_upload.parse_mac (str mac)
str ota_upload.recovery_address (str mac)
tuple ota_upload.board_from_config (str name, Path config)
list ota_upload.candidate_addresses (Optional[str] ip, Optional[str] mac)
str ota_upload.firmware_sha256 (bytes data)
Optional[str] ota_upload.board_reported_sha256 (bytes data)
str ota_upload.upload (bytes data, str ip, int port=DEFAULT_PORT, Optional[ProgressFn] on_progress=None, float connect_timeout=CONNECT_TIMEOUT, float transfer_timeout=TRANSFER_TIMEOUT)
str ota_upload.upload_to_first (bytes data, list hosts, int port=DEFAULT_PORT, **kwargs)
str ota_upload.find_pio ()
Path ota_upload.build (Path project, Optional[str] env=None, Optional[str] message=None)
ProgressFn ota_upload._progress_printer ()
int ota_upload.main (argv=None)
None ota_upload._self_test ()

Variables

int ota_upload.MAX_IMAGE_BYTES = 0x200000
 ota_upload.ProgressFn = Callable[[int, int], None]
 ota_upload.REPO_ROOT = Path(__file__).resolve().parents[2]
str ota_upload.DEFAULT_CONFIG = REPO_ROOT / "daq-server" / "config" / "config.toml"