esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
esphome::api::EncryptionMismatchError Class Reference

The connection's encryption mode does not match the device: a plaintext client reached a device that requires Noise, or an encrypted client reached a plaintext-only device. More...

#include <exception.hpp>

Inheritance diagram for esphome::api::EncryptionMismatchError:
Inheritance graph
[legend]
Collaboration diagram for esphome::api::EncryptionMismatchError:
Collaboration graph
[legend]

Detailed Description

The connection's encryption mode does not match the device: a plaintext client reached a device that requires Noise, or an encrypted client reached a plaintext-only device.

A HandshakeError so callers that treat encryption setup failures uniformly still catch it, but its message is self-explanatory and names the corrective action (add or drop the PSK).


The documentation for this class was generated from the following file: