Smpclient

Latest version: v4.4.0

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

4.0.0

BREAKING
* `smp` dependency is updated to 3.0.1. The associated breaking changes are around the naming of SMP Versions. ErrorV0 is now named ErrorV1 and ErrorV1 is now named ErrorV2. This is reflected in error helpers. `error_v0()` is now `errov_v1()`, `error_v1()` is now `error_v2()`. See https://github.com/JPHutchins/smp/releases for more information.
* SMP Requests will now default to V2 instead of V1 (previously called V0)! Settable via the optional `version` kwarg on any SMP request.

Features
* File management Requests, thanks Maartenwn!
* File management convenience methods in the `SMPClient` class: `upload_file()` and `download_file()`. Thanks Maartenwn!

What's Changed
* Breaking/update smp to 3.0.0 by JPHutchins in https://github.com/intercreate/smpclient/pull/36
* File management by Maartenwn in https://github.com/intercreate/smpclient/pull/35

New Contributors
* Maartenwn made their first contribution in https://github.com/intercreate/smpclient/pull/35

**Full Changelog**: https://github.com/intercreate/smpclient/compare/3.2.1...4.0.0

3.2.1

What's Changed
* mypy: BleakClientWinRT TypeGuard by JPHutchins in https://github.com/intercreate/smpclient/pull/32
* Fix 31/image upload match by JPHutchins in https://github.com/intercreate/smpclient/pull/33


**Full Changelog**: https://github.com/intercreate/smpclient/compare/3.2.0...3.2.1

3.2.0

Features
* Serial (USB) transport can specify line_length, line_buffers, and size (e.g. line_length * buffers). These correspond to SMP Server UART buffer settings:
Zephyr (application)

CONFIG_UART_MCUMGR_RX_BUF_SIZE=512 line length
CONFIG_UART_MCUMGR_RX_BUF_COUNT=8 buffers
CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=4096 total

Zephyr (mcuboot)

CONFIG_BOOT_MAX_LINE_INPUT_LEN=4096 line length
CONFIG_BOOT_LINE_BUFS=2 buffers
CONFIG_BOOT_SERIAL_MAX_RECEIVE_SIZE=8192 total


What's Changed
* feat: add serial transport line_length (default 128) and line_bufs (d… by JPHutchins in https://github.com/intercreate/smpclient/pull/25


**Full Changelog**: https://github.com/intercreate/smpclient/compare/3.1.0...3.2.0

3.1.0

Features
* request adds an optional timeout_s argument that defaults to 120s.
* upload adds an optional first_timeout_s argument that defaults to 40s. This long timeout allows time for SMP servers to erase the destination image slot if they do not have "erase progressively" enabled.
* upload adds an option subsequent_timeout_s argument that defaults to 2.5s. This should cause an image upload to fail fast if the SMP server stops responding to image upload write requests during the upload routine.

Fixes
* The Bleak BLE transport will cancel requests if the peripheral disconnects instead of hanging.

What's Changed
* Fix/client disconnect by JPHutchins in https://github.com/intercreate/smpclient/pull/28 - thanks tomaszduda23!
* feature: add timeout to requests (fixes 26) by JPHutchins in https://github.com/intercreate/smpclient/pull/29 - thanks tomaszduda23!


**Full Changelog**: https://github.com/intercreate/smpclient/compare/3.0.1...3.1.0

3.0.1

Fixes
* Uses the _acquire_mtu() workaround on Linux - thanks tomaszduda23!

What's Changed
* Fix/ble mtu by JPHutchins in https://github.com/intercreate/smpclient/pull/24


**Full Changelog**: https://github.com/intercreate/smpclient/compare/3.0.0...3.0.1

3.0.0

BREAKING CHANGES
* The flattened `SMPError` class is removed. The `error()` `TypeGuard` will return a union of SMP error versions and the user must check the version to handle the errors correctly. For convenience, `error_v0()` and `error_v1()` guards are added.

Features
* Client connections can now take a timeout that defaults to 5 seconds.

Fixes
* smp is updated to 1.0.3: https://github.com/JPHutchins/smp/releases/tag/1.0.3

What's Changed
* Feature/connect timeout by JPHutchins in https://github.com/intercreate/smpclient/pull/23


**Full Changelog**: https://github.com/intercreate/smpclient/compare/2.0.1...3.0.0

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.