7namespace dfrobot_sen0395 {
 
    9static const char *
const TAG = 
"dfrobot_sen0395";
 
   14  ESP_LOGCONFIG(TAG, 
"Dfrobot Mmwave Radar:");
 
   15#ifdef USE_BINARY_SENSOR 
   19  LOG_SWITCH(
"  ", 
"Sensor Active Switch", this->sensor_active_switch_);
 
   20  LOG_SWITCH(
"  ", 
"Turn on LED Switch", this->turn_on_led_switch_);
 
   21  LOG_SWITCH(
"  ", 
"Presence via UART Switch", this->presence_via_uart_switch_);
 
   22  LOG_SWITCH(
"  ", 
"Start after Boot Switch", this->start_after_boot_switch_);
 
   26void DfrobotSen0395Component::loop() {
 
   39int8_t DfrobotSen0395Component::enqueue(std::unique_ptr<Command> cmd) {
 
   51    ESP_LOGVV(TAG, 
"Buffer pos: %u %d", this->
read_pos_, 
byte);
 
 
   77    if (message.rfind(
"leapMMW:/>") != std::string::npos) {
 
 
   97#ifdef USE_BINARY_SENSOR 
 
  105    ESP_LOGE(TAG, 
"Command queue is full");
 
 
virtual void dump_config()
void publish_state(bool new_state)
Publish a new state to the front-end.
std::unique_ptr< Command > commands_[COMMAND_QUEUE_SIZE]
std::unique_ptr< Command > dequeue()
int8_t enqueue(std::unique_ptr< Command > cmd)
uint8_t process(DfrobotSen0395Component *parent)
char read_buffer_[MMWAVE_READ_BUFFER_LENGTH]
CircularCommandQueue cmd_queue_
binary_sensor::BinarySensor * detected_binary_sensor_
uint32_t ts_last_cmd_sent_
void set_detected_(bool detected)
uint8_t send_cmd_(const char *cmd, uint32_t duration)
void write_str(const char *str)
bool read_byte(uint8_t *data)
const uint8_t MMWAVE_READ_BUFFER_LENGTH
Providing packet encoding functions for exchanging data with a remote host.
uint32_t IRAM_ATTR HOT millis()