ESPHome  2024.3.1
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 443 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 1261 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 1235 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 1290 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1279 of file api_pb2.cpp.

Field Documentation

◆ has_legacy_command

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

Definition at line 446 of file api_pb2.h.

◆ has_position

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

Definition at line 448 of file api_pb2.h.

◆ has_tilt

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

Definition at line 450 of file api_pb2.h.

◆ key

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

Definition at line 445 of file api_pb2.h.

◆ legacy_command

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

Definition at line 447 of file api_pb2.h.

◆ position

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

Definition at line 449 of file api_pb2.h.

◆ stop

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

Definition at line 452 of file api_pb2.h.

◆ tilt

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

Definition at line 451 of file api_pb2.h.


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