ESPHome  2024.10.2
Public Member Functions | Data Fields | Protected Member Functions
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 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 468 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1340 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 1314 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 1369 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1358 of file api_pb2.cpp.

Field Documentation

◆ has_legacy_command

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

Definition at line 471 of file api_pb2.h.

◆ has_position

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

Definition at line 473 of file api_pb2.h.

◆ has_tilt

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

Definition at line 475 of file api_pb2.h.

◆ key

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

Definition at line 470 of file api_pb2.h.

◆ legacy_command

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

Definition at line 472 of file api_pb2.h.

◆ position

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

Definition at line 474 of file api_pb2.h.

◆ stop

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

Definition at line 477 of file api_pb2.h.

◆ tilt

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

Definition at line 476 of file api_pb2.h.


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