ESPHome
2024.11.1
|
#include <commands.h>
Public Member Functions | |
virtual | ~Command ()=default |
virtual uint8_t | execute (DfrobotSen0395Component *parent) |
virtual uint8_t | on_message (std::string &message)=0 |
Protected Attributes | |
DfrobotSen0395Component * | parent_ {nullptr} |
std::string | cmd_ |
bool | cmd_sent_ {false} |
int8_t | retries_left_ {2} |
uint32_t | cmd_duration_ms_ {1000} |
uint32_t | timeout_ms_ {1500} |
Definition at line 16 of file commands.h.
|
virtualdefault |
|
virtual |
Reimplemented in esphome::dfrobot_sen0395::ReadStateCommand.
Definition at line 14 of file commands.cpp.
|
pure virtual |
Implemented in esphome::dfrobot_sen0395::SensitivityCommand, esphome::dfrobot_sen0395::UartOutputCommand, esphome::dfrobot_sen0395::LedModeCommand, esphome::dfrobot_sen0395::SaveCfgCommand, esphome::dfrobot_sen0395::ResetSystemCommand, esphome::dfrobot_sen0395::FactoryResetCommand, esphome::dfrobot_sen0395::SensorCfgStartCommand, esphome::dfrobot_sen0395::SetLatencyCommand, esphome::dfrobot_sen0395::DetRangeCfgCommand, esphome::dfrobot_sen0395::PowerCommand, and esphome::dfrobot_sen0395::ReadStateCommand.
|
protected |
Definition at line 24 of file commands.h.
|
protected |
Definition at line 27 of file commands.h.
|
protected |
Definition at line 25 of file commands.h.
|
protected |
Definition at line 23 of file commands.h.
|
protected |
Definition at line 26 of file commands.h.
|
protected |
Definition at line 28 of file commands.h.