Module client

Module client 

Source

Structsยง

OtaClient
Downloads and deploys OTA updates from GitHub.

Enumsยง

ArtifactSource
Indicates where artifacts were expected but not found.
OtaError
Error types that can occur during OTA operations.

Constantsยง

INITIAL_CHUNK_SIZE ๐Ÿ”’
MAX_CHUNK_SIZE ๐Ÿ”’
MAX_RETRIES ๐Ÿ”’
Maximum number of retry attempts for failed chunks
MIN_CHUNK_SIZE ๐Ÿ”’
TARGET_CHUNK_SECS ๐Ÿ”’
Target 80% of the HTTP timeout to leave headroom for throughput variance.

Functionsยง

api_error ๐Ÿ”’
Maps a failed reqwest response to the appropriate OtaError.
check_disk_space ๐Ÿ”’
verify_scopes ๐Ÿ”’
Verifies that the GitHub token has all scopes required for OTA operations.