mirror of
https://github.com/esphome/esphome.git
synced 2024-11-02 08:40:55 +01:00
Revert ESP32 BLE Tracker defaults (#863)
Fixes https://github.com/esphome/issues/issues/824 Fixes https://github.com/esphome/issues/issues/851
This commit is contained in:
parent
b55544b860
commit
cfd42ea162
@ -82,7 +82,7 @@ CONFIG_SCHEMA = cv.Schema({
|
|||||||
cv.Optional(CONF_SCAN_PARAMETERS, default={}): cv.All(cv.Schema({
|
cv.Optional(CONF_SCAN_PARAMETERS, default={}): cv.All(cv.Schema({
|
||||||
cv.Optional(CONF_DURATION, default='5min'): cv.positive_time_period_seconds,
|
cv.Optional(CONF_DURATION, default='5min'): cv.positive_time_period_seconds,
|
||||||
cv.Optional(CONF_INTERVAL, default='320ms'): cv.positive_time_period_milliseconds,
|
cv.Optional(CONF_INTERVAL, default='320ms'): cv.positive_time_period_milliseconds,
|
||||||
cv.Optional(CONF_WINDOW, default='200ms'): cv.positive_time_period_milliseconds,
|
cv.Optional(CONF_WINDOW, default='30ms'): cv.positive_time_period_milliseconds,
|
||||||
cv.Optional(CONF_ACTIVE, default=True): cv.boolean,
|
cv.Optional(CONF_ACTIVE, default=True): cv.boolean,
|
||||||
}), validate_scan_parameters),
|
}), validate_scan_parameters),
|
||||||
|
|
||||||
|
@ -442,8 +442,8 @@ const optional<ESPBTUUID> &ESPBTDevice::get_service_data_uuid() const { return t
|
|||||||
void ESP32BLETracker::dump_config() {
|
void ESP32BLETracker::dump_config() {
|
||||||
ESP_LOGCONFIG(TAG, "BLE Tracker:");
|
ESP_LOGCONFIG(TAG, "BLE Tracker:");
|
||||||
ESP_LOGCONFIG(TAG, " Scan Duration: %u s", this->scan_duration_);
|
ESP_LOGCONFIG(TAG, " Scan Duration: %u s", this->scan_duration_);
|
||||||
ESP_LOGCONFIG(TAG, " Scan Interval: %u ms", this->scan_interval_);
|
ESP_LOGCONFIG(TAG, " Scan Interval: %.1f ms", this->scan_interval_ * 0.625f);
|
||||||
ESP_LOGCONFIG(TAG, " Scan Window: %u ms", this->scan_window_);
|
ESP_LOGCONFIG(TAG, " Scan Window: %.1f ms", this->scan_window_ * 0.625f);
|
||||||
ESP_LOGCONFIG(TAG, " Scan Type: %s", this->scan_active_ ? "ACTIVE" : "PASSIVE");
|
ESP_LOGCONFIG(TAG, " Scan Type: %s", this->scan_active_ ? "ACTIVE" : "PASSIVE");
|
||||||
}
|
}
|
||||||
void ESP32BLETracker::print_bt_device_info(const ESPBTDevice &device) {
|
void ESP32BLETracker::print_bt_device_info(const ESPBTDevice &device) {
|
||||||
|
Loading…
Reference in New Issue
Block a user