Siobrultech-protocols

Latest version: v0.14.0

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

Scan your dependencies

Page 1 of 3

0.14.0

What's Changed
* Be API compatible for `set_packet_send_interval` by sdwilsh in https://github.com/sdwilsh/siobrultech-protocols/pull/236


**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.13.0...v0.14.0

0.13.0

Breaking Changes
* Temperature values can now be `None` when the packet contains an invalid temperature (205)

**Full Changelog**: https://github.com/sdwilsh/siobrultech-protocols/compare/v0.12.0...v0.13.0

0.12.0

New Features
- The `close` method has been restored to `PacketProtocol`. It was removed in v0.10 based on a misunderstanding of how `asyncio.Server` keeps track of connections.

0.11.0

New features
- API helper methods now have a `timeout` parameter to control the timeout

Fixes
- `call_api` now honors the `serial_number` parameter again

0.10.0

New Features
* ECM-1240 API support
* `get_serial_number`
* `set_packet_send_interval`
* `ApiCall` can be used to add support for more APIs outside of this library
* Ability to make GEM API calls without pausing packet sending, making them vastly faster than before. This is experimental for now; pass `send_packet_delay=True` to `BidirectionalProtocol`'s constructor to enable.
* Support for API calls that have no response (pass `None` for the `parser` parameters to `ApiCall`)

Fixes
* ECM-1240 serial numbers are now parsed correctly

Breaking Changes
* `PacketProtocol` no longer has a `close()` method. Users should close the transports directly. For example, if `self._server` is an `asyncio.Server`:
python
for s in self._server.sockets:
s.shutdown(socket.SHUT_RDWR)
s.close()

* `BidirectionalProtocol` no longer has `send_api_request` and `receive_api_response` methods. Instead, there is now an `invoke_api` method that takes a `Future` which will be completed as soon as the API response comes in. See `README.md` for more details on its use. This change allows API responses to be returned to the caller much faster.
* The `serial_number` field for ECM-1240 packets is now treated as a 16-bit little-endian value. Previous versions treated it as a big-endian value. ECM-1240 packets received with this version of the library will thus have a serial number field that is in the opposite byte order from those returned by the previous verson.

0.9.0

New Features
* Added packet helper functions for ECM-1240 aux values

Fixes
* Fixed protocol behavior when devices ignore API calls
* Avoid divide by zero if no time has elapsed between packets

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.