ESPHome  2022.9.1
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::FanCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::FanCommandRequest:
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_state {false}
 
bool state {false}
 
bool has_speed {false}
 
enums::FanSpeed speed {}
 
bool has_oscillating {false}
 
bool oscillating {false}
 
bool has_direction {false}
 
enums::FanDirection direction {}
 
bool has_speed_level {false}
 
int32_t speed_level {0}
 

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 436 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1310 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1264 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 1334 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1320 of file api_pb2.cpp.

Field Documentation

◆ direction

enums::FanDirection esphome::api::FanCommandRequest::direction {}

Definition at line 446 of file api_pb2.h.

◆ has_direction

bool esphome::api::FanCommandRequest::has_direction {false}

Definition at line 445 of file api_pb2.h.

◆ has_oscillating

bool esphome::api::FanCommandRequest::has_oscillating {false}

Definition at line 443 of file api_pb2.h.

◆ has_speed

bool esphome::api::FanCommandRequest::has_speed {false}

Definition at line 441 of file api_pb2.h.

◆ has_speed_level

bool esphome::api::FanCommandRequest::has_speed_level {false}

Definition at line 447 of file api_pb2.h.

◆ has_state

bool esphome::api::FanCommandRequest::has_state {false}

Definition at line 439 of file api_pb2.h.

◆ key

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

Definition at line 438 of file api_pb2.h.

◆ oscillating

bool esphome::api::FanCommandRequest::oscillating {false}

Definition at line 444 of file api_pb2.h.

◆ speed

enums::FanSpeed esphome::api::FanCommandRequest::speed {}

Definition at line 442 of file api_pb2.h.

◆ speed_level

int32_t esphome::api::FanCommandRequest::speed_level {0}

Definition at line 448 of file api_pb2.h.

◆ state

bool esphome::api::FanCommandRequest::state {false}

Definition at line 440 of file api_pb2.h.


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