ESPHome
2024.9.2
esphome
esphome
components
api
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
12
class
APINoiseContext
{
13
public
:
14
void
set_psk
(
psk_t
psk) {
psk_
= psk; }
15
const
psk_t
&
get_psk
()
const
{
return
psk_
; }
16
17
protected
:
18
psk_t
psk_
;
19
};
20
#endif // USE_API_NOISE
21
22
}
// namespace api
23
}
// namespace esphome
defines.h
esphome::api::APINoiseContext::get_psk
const psk_t & get_psk() const
Definition:
api_noise_context.h:15
esphome::api::APINoiseContext::set_psk
void set_psk(psk_t psk)
Definition:
api_noise_context.h:14
esphome::api::APINoiseContext
Definition:
api_noise_context.h:12
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::api::APINoiseContext::psk_
psk_t psk_
Definition:
api_noise_context.h:18
esphome::api::psk_t
std::array< uint8_t, 32 > psk_t
Definition:
api_noise_context.h:10
Generated by
1.8.13