This commit is contained in:
Maxim Slipenko 2023-12-10 13:07:05 +03:00
parent fbb0c27ce6
commit 61f58a5963
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,10 @@ namespace esphome
roomsTopic = std::string(CHANNEL) + std::string("/rooms/") + _id; roomsTopic = std::string(CHANNEL) + std::string("/rooms/") + _id;
} }
void ESP32Presense::set_max_distance(float maxDistance) {
BleFingerprintCollection::maxDistance = maxDistance;
}
void ESP32Presense::setup() void ESP32Presense::setup()
{ {
BleFingerprintCollection::Setup(); BleFingerprintCollection::Setup();

View File

@ -34,6 +34,7 @@ namespace esphome
void set_room(std::string room); void set_room(std::string room);
bool reportBuffer(BleFingerprint *f); bool reportBuffer(BleFingerprint *f);
bool reportDevice(BleFingerprint *f); bool reportDevice(BleFingerprint *f);
void set_max_distance(float maxDistance);
//void set_base_topic(std::string base_topic) { base_topic_ = base_topic; } //void set_base_topic(std::string base_topic) { base_topic_ = base_topic; }
}; };
} // namespace esp32_nimble_tracker } // namespace esp32_nimble_tracker