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

#include <commands.h>

Inheritance diagram for esphome::dfrobot_sen0395::DetRangeCfgCommand:
esphome::dfrobot_sen0395::Command

Public Member Functions

 DetRangeCfgCommand (float min1, float max1, float min2, float max2, float min3, float max3, float min4, float max4)
 
uint8_t on_message (std::string &message) override
 
- Public Member Functions inherited from esphome::dfrobot_sen0395::Command
virtual ~Command ()=default
 
virtual uint8_t execute (DfrobotSen0395Component *parent)
 

Protected Attributes

float min1_
 
float max1_
 
float min2_
 
float max2_
 
float min3_
 
float max3_
 
float min4_
 
float max4_
 
- 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 55 of file commands.h.

Constructor & Destructor Documentation

◆ DetRangeCfgCommand()

esphome::dfrobot_sen0395::DetRangeCfgCommand::DetRangeCfgCommand ( float  min1,
float  max1,
float  min2,
float  max2,
float  min3,
float  max3,
float  min4,
float  max4 
)

Definition at line 112 of file commands.cpp.

Member Function Documentation

◆ on_message()

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

Implements esphome::dfrobot_sen0395::Command.

Definition at line 177 of file commands.cpp.

Field Documentation

◆ max1_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::max1_
protected

Definition at line 61 of file commands.h.

◆ max2_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::max2_
protected

Definition at line 61 of file commands.h.

◆ max3_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::max3_
protected

Definition at line 61 of file commands.h.

◆ max4_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::max4_
protected

Definition at line 61 of file commands.h.

◆ min1_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::min1_
protected

Definition at line 61 of file commands.h.

◆ min2_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::min2_
protected

Definition at line 61 of file commands.h.

◆ min3_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::min3_
protected

Definition at line 61 of file commands.h.

◆ min4_

float esphome::dfrobot_sen0395::DetRangeCfgCommand::min4_
protected

Definition at line 61 of file commands.h.


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