ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::dfrobot_sen0395::SetLatencyCommand Class Reference

#include <commands.h>

Inheritance diagram for esphome::dfrobot_sen0395::SetLatencyCommand:
esphome::dfrobot_sen0395::Command

Public Member Functions

 SetLatencyCommand (float delay_after_detection, float delay_after_disappear)
 
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 delay_after_detection_
 
float delay_after_disappear_
 
- 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 65 of file commands.h.

Constructor & Destructor Documentation

◆ SetLatencyCommand()

esphome::dfrobot_sen0395::SetLatencyCommand::SetLatencyCommand ( float  delay_after_detection,
float  delay_after_disappear 
)

Definition at line 199 of file commands.cpp.

Member Function Documentation

◆ on_message()

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

Implements esphome::dfrobot_sen0395::Command.

Definition at line 207 of file commands.cpp.

Field Documentation

◆ delay_after_detection_

float esphome::dfrobot_sen0395::SetLatencyCommand::delay_after_detection_
protected

Definition at line 71 of file commands.h.

◆ delay_after_disappear_

float esphome::dfrobot_sen0395::SetLatencyCommand::delay_after_disappear_
protected

Definition at line 72 of file commands.h.


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