mirror of
https://github.com/esphome/esphome.git
synced 2026-09-12 07:47:33 +00:00
Note that the deflate offer is binding on both sides
This commit is contained in:
@@ -189,7 +189,9 @@ static constexpr uint8_t CLIENT_NOISE_FEATURES =
|
||||
static constexpr uint8_t SERVER_FEATURE_SUPPORTS_COMPRESSION = 0x01;
|
||||
static constexpr uint8_t SERVER_FEATURE_SUPPORTS_PARTITION_ACCESS = 0x02;
|
||||
static constexpr uint8_t SERVER_FEATURE_SUPPORTS_NOISE = 0x04;
|
||||
// The device inflates a raw deflate stream (window <= OTA_INFLATE_WINDOW_SIZE)
|
||||
// The device inflates a raw deflate stream (window <= OTA_INFLATE_WINDOW_SIZE).
|
||||
// The offer is binding: a client that asked for it must then send the inflated
|
||||
// size frame and a deflate stream, the device does not check again.
|
||||
static constexpr uint8_t SERVER_FEATURE_SUPPORTS_DEFLATE = 0x08;
|
||||
|
||||
inline bool ESPHomeOTAComponent::extended_proto_() const {
|
||||
|
||||
@@ -70,6 +70,8 @@ CLIENT_FEATURE_SUPPORTS_DEFLATE = 0x10
|
||||
SERVER_FEATURE_SUPPORTS_COMPRESSION = 0x01
|
||||
SERVER_FEATURE_SUPPORTS_PARTITION_ACCESS = 0x02
|
||||
SERVER_FEATURE_SUPPORTS_NOISE = 0x04
|
||||
# Binding once offered: the device then expects the image size frame and a
|
||||
# deflate stream, so there is no opting out per upload
|
||||
SERVER_FEATURE_SUPPORTS_DEFLATE = 0x08
|
||||
|
||||
# Window of the raw deflate stream sent to a device that inflates on the fly.
|
||||
|
||||
Reference in New Issue
Block a user