ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::api::CoverCommandRequest Class Referencefinal

#include <api_pb2.h>

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

Public Member Functions

const LogString * message_name () const override
 
void decode (const uint8_t *buffer, size_t length)
 
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
 

Data Fields

bool has_position {false}
 
float position {0.0f}
 
bool has_tilt {false}
 
float tilt {0.0f}
 
bool stop {false}
 
bool stop_tilt {false}
 
bool toggle {false}
 
- Data Fields inherited from esphome::api::CommandProtoMessage
uint32_t key {0}
 
uint32_t device_id {0}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 30
 
static constexpr uint8_t ESTIMATED_SIZE = 29
 

Static Protected Member Functions

static void decode_field (void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 

Additional Inherited Members

- Public Types inherited from esphome::api::ProtoDecodableMessage
using DecodeFieldFn = void (*)(void *msg, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 Stores one decoded field into msg; generated per message type.
 
- Static Public Member Functions inherited from esphome::api::ProtoDecodableMessage
static void decode_fields (void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
 Walk buffer and hand every field to field.
 
static uint32_t count_repeated_field (const uint8_t *buffer, size_t length, uint32_t target_field_id)
 Count occurrences of a repeated field in a protobuf buffer.
 
- 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)
 
- Protected Member Functions inherited from esphome::api::CommandProtoMessage
 ~CommandProtoMessage ()=default
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 959 of file api_pb2.h.

Member Function Documentation

◆ decode()

void esphome::api::CoverCommandRequest::decode ( const uint8_t * buffer,
size_t length )
inline

Definition at line 973 of file api_pb2.h.

◆ decode_field()

void esphome::api::CoverCommandRequest::decode_field ( void * self,
uint32_t tag,
const uint8_t * data,
proto_varint_value_t scalar )
staticprotected

Definition at line 540 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 1263 of file api_pb2_dump.cpp.

◆ message_name()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 964 of file api_pb2.h.

Field Documentation

◆ ESTIMATED_SIZE

uint8_t esphome::api::CoverCommandRequest::ESTIMATED_SIZE = 29
staticconstexpr

Definition at line 962 of file api_pb2.h.

◆ has_position

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

Definition at line 966 of file api_pb2.h.

◆ has_tilt

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

Definition at line 968 of file api_pb2.h.

◆ MESSAGE_TYPE

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

Definition at line 961 of file api_pb2.h.

◆ position

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

Definition at line 967 of file api_pb2.h.

◆ stop

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

Definition at line 970 of file api_pb2.h.

◆ stop_tilt

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

Definition at line 971 of file api_pb2.h.

◆ tilt

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

Definition at line 969 of file api_pb2.h.

◆ toggle

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

Definition at line 972 of file api_pb2.h.


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