ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::dfrobot_sen0395::ReadStateCommand Class Reference

#include <commands.h>

Inheritance diagram for esphome::dfrobot_sen0395::ReadStateCommand:
esphome::dfrobot_sen0395::Command

Public Member Functions

uint8_t execute (DfrobotSen0395Component *parent) override
 
uint8_t on_message (std::string &message) override
 
- Public Member Functions inherited from esphome::dfrobot_sen0395::Command
virtual ~Command ()=default
 

Protected Attributes

uint32_t timeout_ms_ {500}
 
- Protected Attributes inherited from esphome::dfrobot_sen0395::Command
DfrobotSen0395Componentparent_ {nullptr}
 
std::string cmd_
 
bool cmd_sent_ {false}
 
int8_t retries_left_ {2}
 
uint32_t cmd_duration_ms_ {1000}
 
uint32_t timeout_ms_ {1500}
 

Detailed Description

Definition at line 31 of file commands.h.

Member Function Documentation

◆ execute()

uint8_t esphome::dfrobot_sen0395::ReadStateCommand::execute ( DfrobotSen0395Component parent)
overridevirtual

Reimplemented from esphome::dfrobot_sen0395::Command.

Definition at line 65 of file commands.cpp.

◆ on_message()

uint8_t esphome::dfrobot_sen0395::ReadStateCommand::on_message ( std::string &  message)
overridevirtual

Implements esphome::dfrobot_sen0395::Command.

Definition at line 85 of file commands.cpp.

Field Documentation

◆ timeout_ms_

uint32_t esphome::dfrobot_sen0395::ReadStateCommand::timeout_ms_ {500}
protected

Definition at line 37 of file commands.h.


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