12 #ifdef USE_BINARY_SENSOR 27 namespace esp32_improv {
29 using namespace esp32_ble_server;
34 void dump_config()
override;
36 void setup()
override;
37 void setup_characteristics();
38 void on_client_disconnect()
override;
40 float get_setup_priority()
const override;
41 void start()
override;
45 #ifdef USE_BINARY_SENSOR 58 bool should_start_{
false};
59 bool setup_complete_{
false};
61 uint32_t identify_start_{0};
63 uint32_t authorized_start_{0};
66 uint32_t wifi_timeout_{};
78 #ifdef USE_BINARY_SENSOR 88 bool status_indicator_state_{
false};
89 void set_status_indicator_state_(
bool state);
93 void send_response_(std::vector<uint8_t> &response);
94 void process_incoming_data_();
95 void on_wifi_connect_timeout_();
96 bool check_identify_();
BLECharacteristic * capabilities_
BLECharacteristic * rpc_response_
BLECharacteristic * error_
void set_authorized_duration(uint32_t authorized_duration)
void set_identify_duration(uint32_t identify_duration)
wifi::WiFiAP connecting_sta_
uint32_t identify_duration_
void set_authorizer(binary_sensor::BinarySensor *authorizer)
uint32_t authorized_duration_
ESP32ImprovComponent * global_improv_component
std::vector< uint8_t > incoming_data_
void set_status_indicator(output::BinaryOutput *status_indicator)
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
void set_wifi_timeout(uint32_t wifi_timeout)
BLECharacteristic * status_
uint32_t get_wifi_timeout() const