ESPHome 2026.10.0
Loading...
Searching...
No Matches
esphome::api::SwitchStateResponse Class Referencefinal

#include <api_pb2.h>

Inheritance diagram for esphome::api::SwitchStateResponse:
esphome::api::StateResponseProtoMessage esphome::api::ProtoMessage

Public Member Functions

const LogString * message_name () const override
 
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 

Static Public Member Functions

static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 
- Static Public Member Functions inherited from esphome::api::ProtoMessage
static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 

Data Fields

bool state {false}
 
bool missing_state {false}
 
- Data Fields inherited from esphome::api::StateResponseProtoMessage
uint32_t key {0}
 
uint32_t device_id {0}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 26
 
static constexpr uint8_t ESTIMATED_SIZE = 13
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::api::StateResponseProtoMessage
 ~StateResponseProtoMessage ()=default
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 1220 of file api_pb2.h.

Member Function Documentation

◆ calc_size_msg()

uint32_t esphome::api::SwitchStateResponse::calc_size_msg ( const void * self)
static

Definition at line 1000 of file api_pb2.cpp.

◆ calculate_size()

uint32_t esphome::api::SwitchStateResponse::calculate_size ( ) const
inline

Definition at line 1234 of file api_pb2.h.

◆ dump_to()

const char * esphome::api::SwitchStateResponse::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1440 of file api_pb2_dump.cpp.

◆ encode()

uint8_t * esphome::api::SwitchStateResponse::encode ( ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
inline

Definition at line 1230 of file api_pb2.h.

◆ encode_msg()

uint8_t * esphome::api::SwitchStateResponse::encode_msg ( const void * self,
uint8_t *pos PROTO_ENCODE_DEBUG_PARAM )
static

Definition at line 990 of file api_pb2.cpp.

◆ message_name()

const LogString * esphome::api::SwitchStateResponse::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1225 of file api_pb2.h.

Field Documentation

◆ ESTIMATED_SIZE

uint8_t esphome::api::SwitchStateResponse::ESTIMATED_SIZE = 13
staticconstexpr

Definition at line 1223 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::SwitchStateResponse::MESSAGE_TYPE = 26
staticconstexpr

Definition at line 1222 of file api_pb2.h.

◆ missing_state

bool esphome::api::SwitchStateResponse::missing_state {false}

Definition at line 1228 of file api_pb2.h.

◆ state

bool esphome::api::SwitchStateResponse::state {false}

Definition at line 1227 of file api_pb2.h.


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