ESPHome 2025.5.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
 

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}
 

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 500 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 1502 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 1474 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 1448 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 1513 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1492 of file api_pb2.cpp.

Field Documentation

◆ has_legacy_command

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

Definition at line 503 of file api_pb2.h.

◆ has_position

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

Definition at line 505 of file api_pb2.h.

◆ has_tilt

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

Definition at line 507 of file api_pb2.h.

◆ key

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

Definition at line 502 of file api_pb2.h.

◆ legacy_command

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

Definition at line 504 of file api_pb2.h.

◆ position

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

Definition at line 506 of file api_pb2.h.

◆ stop

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

Definition at line 509 of file api_pb2.h.

◆ tilt

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

Definition at line 508 of file api_pb2.h.


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