ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::microphone_http_stream::ClientSlot Struct Reference

#include <microphone_http_stream.h>

Public Member Functions

void set_stop_reason (StopReason reason)
 Record the first reason the stream stops; later reasons are ignored.
 

Data Fields

std::unique_ptr< ring_buffer::RingBuffer > ring
 
AsyncStreamResponse * stream {nullptr}
 
void * chunk_data {nullptr}
 
uint32_t last_audio_ms {0}
 
uint16_t chunk_len {0}
 
uint16_t chunk_sent {0}
 
char chunk_header [web_server_base::CHUNK_HDR_LEN]
 
std::atomic< StopReason > stop_reason {StopReason::STOP_REASON_NONE}
 
std::atomic< StreamState > state {StreamState::STREAM_STATE_IDLE}
 
std::atomic< uint8_t > writers {0}
 

Detailed Description

Definition at line 47 of file microphone_http_stream.h.

Member Function Documentation

◆ set_stop_reason()

void esphome::microphone_http_stream::ClientSlot::set_stop_reason ( StopReason reason)
inline

Record the first reason the stream stops; later reasons are ignored.

Definition at line 61 of file microphone_http_stream.h.

Field Documentation

◆ chunk_data

void* esphome::microphone_http_stream::ClientSlot::chunk_data {nullptr}

Definition at line 51 of file microphone_http_stream.h.

◆ chunk_header

char esphome::microphone_http_stream::ClientSlot::chunk_header[web_server_base::CHUNK_HDR_LEN]

Definition at line 55 of file microphone_http_stream.h.

◆ chunk_len

uint16_t esphome::microphone_http_stream::ClientSlot::chunk_len {0}

Definition at line 53 of file microphone_http_stream.h.

◆ chunk_sent

uint16_t esphome::microphone_http_stream::ClientSlot::chunk_sent {0}

Definition at line 54 of file microphone_http_stream.h.

◆ last_audio_ms

uint32_t esphome::microphone_http_stream::ClientSlot::last_audio_ms {0}

Definition at line 52 of file microphone_http_stream.h.

◆ ring

std::unique_ptr<ring_buffer::RingBuffer> esphome::microphone_http_stream::ClientSlot::ring

Definition at line 48 of file microphone_http_stream.h.

◆ state

std::atomic<StreamState> esphome::microphone_http_stream::ClientSlot::state {StreamState::STREAM_STATE_IDLE}

Definition at line 57 of file microphone_http_stream.h.

◆ stop_reason

std::atomic<StopReason> esphome::microphone_http_stream::ClientSlot::stop_reason {StopReason::STOP_REASON_NONE}

Definition at line 56 of file microphone_http_stream.h.

◆ stream

AsyncStreamResponse* esphome::microphone_http_stream::ClientSlot::stream {nullptr}

Definition at line 49 of file microphone_http_stream.h.

◆ writers

std::atomic<uint8_t> esphome::microphone_http_stream::ClientSlot::writers {0}

Definition at line 58 of file microphone_http_stream.h.


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