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

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

View File

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