ESPHome 2025.6.0
Loading...
Searching...
No Matches
esphome::api::CoverCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::CoverCommandRequest:
esphome::api::ProtoMessage

Public Member Functions

void encode (ProtoWriteBuffer buffer) const override
 
void calculate_size (uint32_t &total_size) const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
virtual ~ProtoMessage ()=default
 
void decode (const uint8_t *buffer, size_t length)
 
std::string dump () const
 

Static Public Member Functions

static constexpr const char * message_name ()
 

Data Fields

uint32_t key {0}
 
bool has_legacy_command {false}
 
enums::LegacyCoverCommand legacy_command {}
 
bool has_position {false}
 
float position {0.0f}
 
bool has_tilt {false}
 
float tilt {0.0f}
 
bool stop {false}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 30
 
static constexpr uint16_t ESTIMATED_SIZE = 25
 

Protected Member Functions

bool decode_32bit (uint32_t field_id, Proto32Bit value) override
 
bool decode_varint (uint32_t field_id, ProtoVarInt value) override
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
virtual bool decode_length (uint32_t field_id, ProtoLengthDelimited value)
 
virtual bool decode_64bit (uint32_t field_id, Proto64Bit value)
 

Detailed Description

Definition at line 592 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

void esphome::api::CoverCommandRequest::calculate_size ( uint32_t & total_size) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1507 of file api_pb2.cpp.

◆ decode_32bit()

bool esphome::api::CoverCommandRequest::decode_32bit ( uint32_t field_id,
Proto32Bit value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1479 of file api_pb2.cpp.

◆ decode_varint()

bool esphome::api::CoverCommandRequest::decode_varint ( uint32_t field_id,
ProtoVarInt value )
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1453 of file api_pb2.cpp.

◆ dump_to()

void esphome::api::CoverCommandRequest::dump_to ( std::string & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1518 of file api_pb2.cpp.

◆ encode()

void esphome::api::CoverCommandRequest::encode ( ProtoWriteBuffer buffer) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1497 of file api_pb2.cpp.

◆ message_name()

static constexpr const char * esphome::api::CoverCommandRequest::message_name ( )
inlinestaticconstexpr

Definition at line 597 of file api_pb2.h.

Field Documentation

◆ ESTIMATED_SIZE

uint16_t esphome::api::CoverCommandRequest::ESTIMATED_SIZE = 25
staticconstexpr

Definition at line 595 of file api_pb2.h.

◆ has_legacy_command

bool esphome::api::CoverCommandRequest::has_legacy_command {false}

Definition at line 600 of file api_pb2.h.

◆ has_position

bool esphome::api::CoverCommandRequest::has_position {false}

Definition at line 602 of file api_pb2.h.

◆ has_tilt

bool esphome::api::CoverCommandRequest::has_tilt {false}

Definition at line 604 of file api_pb2.h.

◆ key

uint32_t esphome::api::CoverCommandRequest::key {0}

Definition at line 599 of file api_pb2.h.

◆ legacy_command

enums::LegacyCoverCommand esphome::api::CoverCommandRequest::legacy_command {}

Definition at line 601 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::CoverCommandRequest::MESSAGE_TYPE = 30
staticconstexpr

Definition at line 594 of file api_pb2.h.

◆ position

float esphome::api::CoverCommandRequest::position {0.0f}

Definition at line 603 of file api_pb2.h.

◆ stop

bool esphome::api::CoverCommandRequest::stop {false}

Definition at line 606 of file api_pb2.h.

◆ tilt

float esphome::api::CoverCommandRequest::tilt {0.0f}

Definition at line 605 of file api_pb2.h.


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