10#include <espectre_sdk.h>
12#ifdef USE_BINARY_SENSOR
27 void setup()
override;
35 this->
runtime_.config().detection_algorithm = value;
38 this->
runtime_.config().csi_capture_policy = value;
41 this->
runtime_.config().traffic_generator_mode = value;
44 this->
runtime_.config().traffic_generator_target_ip = value;
47 this->
runtime_.config().csi_traffic_multicast_group = value;
61#ifdef USE_BINARY_SENSOR
62 SUB_BINARY_SENSOR(motion)
63 SUB_BINARY_SENSOR(calibrating)
69 const ::espectre::RuntimeDiagnosticsSample *diagnostics_sample()
const {
return this->
runtime_.diagnostics_sample(); }
73 void on_live_telemetry(const ::espectre::RuntimeSnapshot &snapshot)
override { this->
movement_pending_ =
true; }
74 void on_calibration_finished(const ::espectre::RuntimeSnapshot &snapshot,
bool success)
override;
88 ::espectre::RuntimeFrontendController
runtime_;
BedjetMode mode
BedJet operating mode.
void set_csi_capture_profile(::espectre::CsiCapturePolicy value)
void set_motion_on_hits(uint8_t value)
uint32_t restart_requested_ms_
void set_traffic_mode_select(select::Select *value)
SUB_BINARY_SENSOR(motion) SUB_BINARY_SENSOR(calibrating) SUB_SENSOR(movement) const void on_runtime_fault(const char *message) override
Latest one-second runtime diagnostics sample, or nullptr before the runtime starts.
void request_traffic_generator_mode(::espectre::TrafficGeneratorMode mode)
optional<::espectre::TrafficGeneratorMode > pending_traffic_mode_
void set_traffic_generator_target_ip(const std::string &value)
void dump_config() override
bool recalibrate_pending_
void apply_pending_traffic_mode_()
void restore_traffic_mode_()
void set_wifi_band_policy(::espectre::WifiBandPolicy value)
void on_shutdown() override
void invalidate_sensing_()
ESPPreferenceObject traffic_mode_pref_
void set_csi_traffic_multicast_group(const std::string &value)
float get_setup_priority() const override
void set_traffic_generator_mode(::espectre::TrafficGeneratorMode value)
void set_detection_algorithm(::espectre::DetectionAlgorithm value)
bool calibrating_published_
void publish_traffic_mode_()
void set_motion_off_hits(uint8_t value)
static constexpr uint32_t RESTART_DELAY_MS
::espectre::RuntimeFrontendController runtime_
select::Select * traffic_mode_select_
Base-class for all selects.
const LogString * message