ESPHome  2024.7.2
api_noise_context.h
Go to the documentation of this file.
1 #pragma once
2 #include <cstdint>
3 #include <array>
4 #include "esphome/core/defines.h"
5 
6 namespace esphome {
7 namespace api {
8 
9 #ifdef USE_API_NOISE
10 using psk_t = std::array<uint8_t, 32>;
11 
13  public:
14  void set_psk(psk_t psk) { psk_ = psk; }
15  const psk_t &get_psk() const { return psk_; }
16 
17  protected:
19 };
20 #endif // USE_API_NOISE
21 
22 } // namespace api
23 } // namespace esphome
const psk_t & get_psk() const
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
std::array< uint8_t, 32 > psk_t